John Nagle <na...@users.sourceforge.net> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10202>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to