mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
test_asyncore: Optimize capture_server() (#93867)
Remove time.sleep(0.01) in test_asyncore capture_server(). The sleep was redundant and inefficient, since the loop starts with select.select() which also implements a sleep (poll for socket data with a timeout).
This commit is contained in:
parent
41fccd23e9
commit
46e455f21c
1 changed files with 0 additions and 1 deletions
|
@ -87,7 +87,6 @@ def capture_server(evt, buf, serv):
|
|||
break
|
||||
if n <= 0:
|
||||
break
|
||||
time.sleep(0.01)
|
||||
|
||||
conn.close()
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue