[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

Antoine Pitrou report at bugs.python.org
Sat May 7 12:00:05 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

A solution could be to use overlapped I/O on the named pipe handles.
The first poll() would call ReadFile() with a tiny value (1?) and store an object wrapping the OVERLAPPED structure. Subsequent poll() or recv() would re-use that structure until the overlapped read succeeds.
The hEvent in the OVERLAPPED structure should be usable in WFMO fine.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11668>
_______________________________________


More information about the Python-bugs-list mailing list