homepage

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 giampaolo.rodola
Recipients anacrolix, giampaolo.rodola, loewis, pitrou, rosslagerwall
Date 2011年02月05日.20:44:01
SpamBayes Score 3.5611516e-05
Marked as misclassified No
Message-id <1296938645.53.0.54197243873.issue10882@psf.upfronthosting.co.za>
In-reply-to
Content
Patch in attachment provides a complete test suite.
It also fixes a problem which occurred on BSD platforms when using non-blocking sockets: EAGAIN/EBUSY are now raised if the transmitted data == 0 bytes reflecting socket's send() behavior:
+ if (ret < 0) {
+ if ((errno == EAGAIN) || (errno == EBUSY)) {
+ if (sbytes != 0) {
+ // some data has been sent
+ goto done;
+ }
+ else {
+ // no data has been sent; upper application is supposed
+ // to retry on EAGAIN or EBUSY
+ return posix_error();
+ }
+ }
+ return posix_error();
+ }
+ goto done;
The test suite shows that "trailer" argument does not work.
I couldn't manage to figure out what's wrong though.
History
Date User Action Args
2011年02月05日 20:44:07giampaolo.rodolasetrecipients: + giampaolo.rodola, loewis, pitrou, anacrolix, rosslagerwall
2011年02月05日 20:44:05giampaolo.rodolasetmessageid: <1296938645.53.0.54197243873.issue10882@psf.upfronthosting.co.za>
2011年02月05日 20:44:04giampaolo.rodolalinkissue10882 messages
2011年02月05日 20:44:04giampaolo.rodolacreate

AltStyle によって変換されたページ (->オリジナル) /