Message128360
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) |
|
Date |
User |
Action |
Args |
2011-02-11 02:47:00 | adiroiban | set | recipients:
+ adiroiban |
2011-02-11 02:47:00 | adiroiban | set | messageid: <1297392420.85.0.207002171629.issue11181@psf.upfronthosting.co.za> |
2011-02-11 02:46:58 | adiroiban | link | issue11181 messages |
2011-02-11 02:46:58 | adiroiban | create | |
|