Giampaolo Rodola' added the comment:

After digging a bit further it seems EAGAIN occurs in case a timeout was 
previously set against the socket as in ftplib.FTP(..., timeout=2) (at least on 
Linux, FWICT).

As such, we can debate whether avoid using select/poll if timeout was not set.
I'll that a look at the man pages of the other POSIX platforms and figure 
whether EAGAIN is interpreted as on Linux.

Other than that, the patch is reasonably ok to me and can be committed as-is 
and blocksize argument tuning can be discussed in a separate ticket.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13564>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to