New submission from Adi Roiban <a...@roiban.ro>: FTP_TLS.retrybinary should detect the end of a TLS read in the same way as FTP.TLS_retryline does.
it should be something like this... catching ssl.ZeroReturnError as a valid expection for signaling EOF. try: data = conn.recv(blocksize) except ssl.ZeroReturnError: # pyOpenSSL does not return 0, but rather # SSL.ZeroReturnError pass if not data: break callback(data) ---------- components: Library (Lib) messages: 128360 nosy: adiroiban priority: normal severity: normal status: open title: TLS end connection not detected properly in retrbinary type: crash versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11181> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com