[issue4791] retrlines('LIST') and dir hang at end of listing in ftplib (python3.0)

Christopher Mahan report at bugs.python.org
Fri Jan 2 15:48:25 CET 2009

Christopher Mahan <chris.mahan at gmail.com> added the comment:

haypo writes:
>By default, the socket created to get the result of LIST has no 
>timeout (is blocking). So fp.readline() only returns an empty string 
>when the socket is closed (by the server).

Even if the server closed the socket and fp.readline() returned an empty
string, the prog should not hang, no?

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list