[New-bugs-announce] [issue34557] When sending binary file to a Microsoft FTP server over FTP TLS, the SSL unwind method hangs

James Campbell report at bugs.python.org
Fri Aug 31 14:00:53 EDT 2018


New submission from James Campbell <james at printtapp.com>:

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

----------
components: Library (Lib)
messages: 324440
nosy: James Campbell2
priority: normal
severity: normal
status: open
title: When sending binary file to a Microsoft FTP server over FTP TLS, the SSL unwind method hangs
type: crash
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34557>
_______________________________________


More information about the New-bugs-announce mailing list