Message128024
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. |
|
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 | |
|