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 nagle
Recipients exarkun, giampaolo.rodola, loewis, nagle, pitrou
Date 2010-10-27.01:39:00
SpamBayes Score 0.0001953439
Marked as misclassified No
Message-id <1288143542.6.0.0120996379651.issue10202@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-10-27 01:39:02naglesetrecipients: + nagle, loewis, exarkun, pitrou, giampaolo.rodola
2010-10-27 01:39:02naglesetmessageid: <1288143542.6.0.0120996379651.issue10202@psf.upfronthosting.co.za>
2010-10-27 01:39:00naglelinkissue10202 messages
2010-10-27 01:39:00naglecreate