mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Merge - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
This commit is contained in:
		
							parent
							
								
									b6ffa7980f
								
							
						
					
					
						commit
						f64f9e9ec1
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -132,7 +132,8 @@ def poll(timeout=0.0, map=None):
 | 
			
		|||
            is_w = obj.writable()
 | 
			
		||||
            if is_r:
 | 
			
		||||
                r.append(fd)
 | 
			
		||||
            if is_w:
 | 
			
		||||
            # accepting sockets should not be writable
 | 
			
		||||
            if is_w and not obj.accepting:
 | 
			
		||||
                w.append(fd)
 | 
			
		||||
            if is_r or is_w:
 | 
			
		||||
                e.append(fd)
 | 
			
		||||
| 
						 | 
				
			
			@ -179,7 +180,8 @@ def poll2(timeout=0.0, map=None):
 | 
			
		|||
            flags = 0
 | 
			
		||||
            if obj.readable():
 | 
			
		||||
                flags |= select.POLLIN | select.POLLPRI
 | 
			
		||||
            if obj.writable():
 | 
			
		||||
            # accepting sockets should not be writable
 | 
			
		||||
            if obj.writable() and not obj.accepting:
 | 
			
		||||
                flags |= select.POLLOUT
 | 
			
		||||
            if flags:
 | 
			
		||||
                # Only check for exceptions if object was either readable
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -225,6 +225,8 @@ Core and Builtins
 | 
			
		|||
Library
 | 
			
		||||
-------
 | 
			
		||||
 | 
			
		||||
- Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
 | 
			
		||||
 | 
			
		||||
- Issue #4376: ctypes now supports nested structures in a endian different than
 | 
			
		||||
  the parent structure. Patch by Vlad Riscutia.
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue