mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	The other half of the patches added to SF patch 555085 by A I
MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking socket returns errno==EISCONN to indicate success. This seems harmless on Unix.
This commit is contained in:
		
							parent
							
								
									22a97159cd
								
							
						
					
					
						commit
						12e3c710db
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1327,6 +1327,8 @@ internal_connect(PySocketSockObject *s, struct sockaddr *addr, int addrlen) | ||||||
| 		if (res < 0 && errno == EINPROGRESS) { | 		if (res < 0 && errno == EINPROGRESS) { | ||||||
| 			internal_select(s, 1); | 			internal_select(s, 1); | ||||||
| 			res = connect(s->sock_fd, addr, addrlen); | 			res = connect(s->sock_fd, addr, addrlen); | ||||||
|  | 			if (res < 0 && errno == EISCONN) | ||||||
|  | 				res = 0; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum