Message152433
I have done an updated patch. (It does *not* switch to using bytes oriented pipes as I suggested in the previous message.)
The patch also adds a wait() function with signature
wait(object_list, timeout=None)
for polling multiple objects at once. On Unix it is just a wrapper for
select.select(object_list, [], [], timeout)
except that it retries when it gets EINTR. wait() works with "connected" sockets too, although on Windows it does not work for "listening" sockets.
The patch removes SentinelReady and changes concurrent.futures to use wait() instead.
Polling is now done by issuing zero length overlapped reads. This means that the pipe is not modified except possibly if a zero length message is removed.
I changed ReadFile(), WriteFile() and GetOverlappedResult() to return pairs, the second entry of which is zero or an "expected" error code. (Unexpected errors still raise an exception.) This avoids the need to ever use GetLastError(). |
|
Date |
User |
Action |
Args |
2012-02-01 14:50:32 | sbt | set | recipients:
+ sbt, pitrou, tim.golden, jnoller, brian.curtin, python-dev |
2012-02-01 14:50:32 | sbt | set | messageid: <1328107832.15.0.722854928738.issue12328@psf.upfronthosting.co.za> |
2012-02-01 14:50:31 | sbt | link | issue12328 messages |
2012-02-01 14:50:31 | sbt | create | |
|