mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #16955: Fix the poll() method for multiprocessing's socket
connections on Windows.
This commit is contained in:
commit
0ee84e04da
3 changed files with 15 additions and 1 deletions
|
@ -405,7 +405,7 @@ class Connection(_ConnectionBase):
|
|||
return self._recv(size)
|
||||
|
||||
def _poll(self, timeout):
|
||||
r = wait([self._handle], timeout)
|
||||
r = wait([self], timeout)
|
||||
return bool(r)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue