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 James Campbell2
Recipients James Campbell2
Date 2018-08-31.18:00:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535738453.08.0.56676864532.issue34557@psf.upfronthosting.co.za>
In-reply-to
Content
When using the FTP library to transfer a binary file to a Microsoft FTP server using TLS, then the library will hang when unwinding the connection until it finally times out.

The storbinary method calls conn.unwind which seems to have an issue with SSL connections with a Microsoft server. If we terminate the connection early the file is successfully transferred so it's just the unwind procedure that crashes and hangs our server until it times out.


We are able to work around it by creating our own version of the storbinary method which just closes the connection and doesn't do the unwind step.

It's not clear why the library does this step since we never need to drop down to an unencrypted connection so it should be enough to just close it once done.

You can read more information on this by somebody else with Python 3.2
http://www.sami-lehtinen.net/blog/python-32-ms-ftps-ssl-tls-lockup-fix
History
Date User Action Args
2018-08-31 18:00:53James Campbell2setrecipients: + James Campbell2
2018-08-31 18:00:53James Campbell2setmessageid: <1535738453.08.0.56676864532.issue34557@psf.upfronthosting.co.za>
2018-08-31 18:00:53James Campbell2linkissue34557 messages
2018-08-31 18:00:52James Campbell2create