Martin Panter added the comment:

I don’t like the sound of improvement 2. I think it would break existing use 
cases, e.g. HTTPConnection(timeout=...), urlopen(timeout=...). If you want a 
HTTP request to abort if it takes a long time, how is that behaviour broken?

Regarding improvement 1, I think Victor’s 3.5 documentation explains how the 
timeout works fairly well. Perhaps you meant for this bug to be about pre-3.5 
versions?

Also, see Issue 7322 for discussion of how to handle exceptions when reading 
from sockets and other streams. E.g. what should readline() do when it has read 
half a line and then gets an exception, and should you be allowed to read again 
after handling an exception? In my mind the readline() and sendall() cases are 
somewhat complementary.

----------
nosy: +martin.panter

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

Reply via email to