mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #20505: Oops, only print debug info if selector.select(timeout) took less
than timeout
This commit is contained in:
		
							parent
							
								
									8425bf817f
								
							
						
					
					
						commit
						7c4bd39a1f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -639,7 +639,7 @@ def _run_once(self):
 | 
			
		|||
            event_list = self._selector.select(timeout)
 | 
			
		||||
            dt = time.perf_counter() - t0
 | 
			
		||||
            dt_monotonic = time.monotonic() - t0_monotonic
 | 
			
		||||
            if not event_list and timeout: # and dt < timeout:
 | 
			
		||||
            if not event_list and timeout and dt < timeout:
 | 
			
		||||
                selector = self._selector.__class__.__name__
 | 
			
		||||
                if (selector.startswith(("Poll", "Epoll", "Iocp"))
 | 
			
		||||
                or timeout > 1e-3 or dt > 1e-3):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue