Martin Panter added the comment:

Yeah I’m happy to put a patch together, once I have an idea of the details.

I’d also like to understand your scenario that would mislead the user to 
believe that the connection has been closed when it actually hasn’t. Can you 
give a concrete example or demonstration?

Given your misbehaving flow:

1. Client connects to server or proxy (possibly through a tunnel) and sends 
request; server/proxy accepts connection and possibly reads request
2. Server/proxy intends to send a response, but doesn't for any number of 
reasons (bug, still in development, etc)
3. The connection is not closed and subsequent requests may succeed

I would expect the client would still be waiting to read the status line of the 
response that was never sent in step 2. Eventually the server _would_ probably 
drop the connection (so ConnectionClosed would not be misleading), or the 
client would time it out (a different error would be raised).

----------

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

Reply via email to