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 jpe
Recipients jnoller, jpe, ocean-city
Date 2009-03-31.18:53:55
SpamBayes Score 2.9125474e-10
Marked as misclassified No
Message-id <1238525639.25.0.440108564398.issue3551@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a patch, though I have mixed feelings about it.  The OS
error can still occur even if a smaller amount is written in each
WriteFile call; I think an internal OS buffer fills up and the error is
returned if that buffer is full because the other process hasn't read
yet.  The patch just ignores ERROR_NO_SYSTEM_RESOURCES and writes again.
 I don't know though if ERROR_NO_SYSTEM_RESOURCES can mean something
else is wrong and the write will never succeed.  The message is also
broken up into 32K parts and a recv_bytes on the other end must be
called multiple times to read it all.

The patch is one option.  Another might be to let the application decide
to continue or not and essentially treat the pipes as nonblocking.
History
Date User Action Args
2009-03-31 18:54:00jpesetrecipients: + jpe, ocean-city, jnoller
2009-03-31 18:53:59jpesetmessageid: <1238525639.25.0.440108564398.issue3551@psf.upfronthosting.co.za>
2009-03-31 18:53:57jpelinkissue3551 messages
2009-03-31 18:53:57jpecreate