mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Don't set passiveserver to 0 in connect(). See SF bug #495693.
This should definitely be backported to 2.2.1. I'll leave it to Jack to decide whether he wants to fix this in MacPython 2.2.
This commit is contained in:
		
							parent
							
								
									39960f6ec9
								
							
						
					
					
						commit
						2826fade49
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -114,7 +114,6 @@ def connect(self, host = '', port = 0):
 | 
				
			||||||
        - port: port to connect to (integer, default previous port)'''
 | 
					        - port: port to connect to (integer, default previous port)'''
 | 
				
			||||||
        if host: self.host = host
 | 
					        if host: self.host = host
 | 
				
			||||||
        if port: self.port = port
 | 
					        if port: self.port = port
 | 
				
			||||||
        self.passiveserver = 0
 | 
					 | 
				
			||||||
        msg = "getaddrinfo returns an empty list"
 | 
					        msg = "getaddrinfo returns an empty list"
 | 
				
			||||||
        for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM):
 | 
					        for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM):
 | 
				
			||||||
            af, socktype, proto, canonname, sa = res
 | 
					            af, socktype, proto, canonname, sa = res
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue