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 loewis
Recipients exarkun, giampaolo.rodola, loewis, nagle, pitrou
Date 2010-10-28.14:14:31
SpamBayes Score 0.002303619
Marked as misclassified No
Message-id <4CC98545.6090401@v.loewis.de>
In-reply-to <1288143542.6.0.0120996379651.issue10202@psf.upfronthosting.co.za>
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.

I think you misunderstand. Calling shutdown does *not* block
until the receiver has acknowledged all data. It just put a
FIN packet into the send queue.

> FTP send is one of the few situations where this matters, because FTP
> uses the close of the data connection to indicate EOF.

Not only. It also uses the server response on the control connection
to indicate that all data has been received. Relying on successful
shutdown is both insufficient and unnecessary.
History
Date User Action Args
2010-10-28 14:14:35loewissetrecipients: + loewis, exarkun, nagle, pitrou, giampaolo.rodola
2010-10-28 14:14:32loewislinkissue10202 messages
2010-10-28 14:14:31loewiscreate