This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients brian.curtin, jnoller, pitrou, python-dev, sbt, tim.golden
Date 2012-02-01.14:50:25
SpamBayes Score 2.4949232e-10
Marked as misclassified No
Message-id <1328107832.15.0.722854928738.issue12328@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2012-02-01 14:50:32sbtsetrecipients: + sbt, pitrou, tim.golden, jnoller, brian.curtin, python-dev
2012-02-01 14:50:32sbtsetmessageid: <1328107832.15.0.722854928738.issue12328@psf.upfronthosting.co.za>
2012-02-01 14:50:31sbtlinkissue12328 messages
2012-02-01 14:50:31sbtcreate