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 amaury.forgeotdarc, pitrou, sbt
Date 2012-03-14.14:43:28
SpamBayes Score 3.9925272e-08
Marked as misclassified No
Message-id <1331736209.77.0.611982373721.issue14300@psf.upfronthosting.co.za>
In-reply-to
Content
pitrou wrote:
> Are you sure this is desired? Nowhere can I think of a place in the
> stdlib where we use overlapped I/O on sockets.

multiprocessing.connection.wait() does overlapped zero length reads on sockets.  It's documentation currently claims that it works with sockets.

Also it would seem strange if some sockets (created with socket()) have the overlapped attribute, but some others (created with WSASocket()) don't.

amaury.forgeotdarc wrote:
> Which problem are you trying to solve?

For one thing, the fact that socketmodule.c does not obey the word "must" in the quote from Microsoft's documentation.

> Can this change be tested somehow?

An additional test could be added to test_multiprocessing.TestWait.

Slightly surprisingly, in the testing I have done so far, using wait() with a duplicated socket seems to work without the patch.  However, I would be rather wary of just assuming that it works in all cases and on all versions of Windows.
History
Date User Action Args
2012-03-14 14:43:29sbtsetrecipients: + sbt, amaury.forgeotdarc, pitrou
2012-03-14 14:43:29sbtsetmessageid: <1331736209.77.0.611982373721.issue14300@psf.upfronthosting.co.za>
2012-03-14 14:43:29sbtlinkissue14300 messages
2012-03-14 14:43:28sbtcreate