Message128024
| 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:07 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, loewis, pitrou, anacrolix, rosslagerwall |
| 2011年02月05日 20:44:05 | giampaolo.rodola | set | messageid: <1296938645.53.0.54197243873.issue10882@psf.upfronthosting.co.za> |
| 2011年02月05日 20:44:04 | giampaolo.rodola | link | issue10882 messages |
| 2011年02月05日 20:44:04 | giampaolo.rodola | create |
|