mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	This fixes bug 5798 on OS X.
This should also fix disconnect behavior cross-platform.
This commit is contained in:
		
							parent
							
								
									8df921b46b
								
							
						
					
					
						commit
						a810bc736c
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -101,10 +101,16 @@ def readwrite(obj, flags): | |||
|             obj.handle_read_event() | ||||
|         if flags & select.POLLOUT: | ||||
|             obj.handle_write_event() | ||||
|         if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL): | ||||
|             obj.handle_close() | ||||
|         if flags & select.POLLPRI: | ||||
|             obj.handle_expt_event() | ||||
|         if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL): | ||||
|             obj.handle_close() | ||||
|     except socket.error, e: | ||||
|         if e.args[0] not in (EBADF, ECONNRESET, ENOTCONN, ESHUTDOWN, | ||||
| ECONNABORTED): | ||||
|             obj.handle_error() | ||||
|         else: | ||||
|             obj.handle_close() | ||||
|     except _reraised_exceptions: | ||||
|         raise | ||||
|     except: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Josiah Carlson
						Josiah Carlson