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 robr
Recipients Mark.Ribau, Stephen Ash, Ye.Wang, alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou, python-dev, robr, xiang.zhang
Date 2017-01-24.15:12:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485270737.62.0.809952021045.issue19500@psf.upfronthosting.co.za>
In-reply-to
Content
With this code in place, ftplib should / could also be updated to support session resumption. This would fix bugs with connections to FTP servers that require session resumption [1], [2]

In ftplib.FTP_TLS.ntransfercmd, just add a reference to the current session in the wrap_socket call (maybe make this an option to do session resumption or not; I don't know if it could break something)

Proposed patch is attached.

[1] http://stackoverflow.com/questions/14659154/ftpes-session-reuse-required
[2] https://forum.filezilla-project.org/viewtopic.php?t=36903
History
Date User Action Args
2017-01-24 15:12:17robrsetrecipients: + robr, janssen, pitrou, giampaolo.rodola, christian.heimes, alex, python-dev, dstufft, Ye.Wang, Mark.Ribau, xiang.zhang, Stephen Ash
2017-01-24 15:12:17robrsetmessageid: <1485270737.62.0.809952021045.issue19500@psf.upfronthosting.co.za>
2017-01-24 15:12:17robrlinkissue19500 messages
2017-01-24 15:12:17robrcreate