Message119669
Proper behavior for ftplib when sending is to send all desired data, then call "sock.shutdown(socket.SHUT_RDWR)". This indicates that no more data will be sent, and blocks until the receiver has acknowledged all their data.
"socketmodule.c" handles this right. "shutdown" is called on the socket, and the return value is checked. If the return value is negative, an error handler is returned. Compare the handling in "close".
FTP send is one of the few situations where this matters, because FTP uses the close of the data connection to indicate EOF. |
|
Date |
User |
Action |
Args |
2010-10-27 01:39:02 | nagle | set | recipients:
+ nagle, loewis, exarkun, pitrou, giampaolo.rodola |
2010-10-27 01:39:02 | nagle | set | messageid: <1288143542.6.0.0120996379651.issue10202@psf.upfronthosting.co.za> |
2010-10-27 01:39:00 | nagle | link | issue10202 messages |
2010-10-27 01:39:00 | nagle | create | |
|