[issue11181] TLS end connection not detected properly in retrbinary

Adi Roiban report at bugs.python.org
Fri Feb 11 03:47:00 CET 2011


New submission from Adi Roiban <adi at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11181>
_______________________________________


More information about the Python-bugs-list mailing list