Martin Panter added the comment:

I guess you saying RemoteDisconnected effectively means the same thing as 
ConnectionResetError. Would it help if it was derived from 
ConnectionResetError, instead of the ConnectionError base class? Or are you 
also worried about the multiple inheritance or clutter of yet another type of 
exception?

I’m not really familiar with the “asyncio” 
streams/protocols/transports/thingies, but it looks like the code you pointed 
to is actually called when writing, via drain(), fails. Maybe the equivalent 
code for when reading hits EOF is 
<https://hg.python.org/cpython/file/041a27298cf3/Lib/asyncio/streams.py#l239>.

----------

_______________________________________
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