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 adiroiban
Recipients adiroiban
Date 2011-02-11.02:46:58
SpamBayes Score 8.67838e-07
Marked as misclassified No
Message-id <1297392420.85.0.207002171629.issue11181@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2011-02-11 02:47:00adiroibansetrecipients: + adiroiban
2011-02-11 02:47:00adiroibansetmessageid: <1297392420.85.0.207002171629.issue11181@psf.upfronthosting.co.za>
2011-02-11 02:46:58adiroibanlinkissue11181 messages
2011-02-11 02:46:58adiroibancreate