[issue23333] asyncio: call protocol.connection_lost() when the creation of transport failed

STINNER Victor report at bugs.python.org
Wed Jan 28 00:26:04 CET 2015


STINNER Victor added the comment:

Oh, accept_error.patch causes issues with the new SSL implementation. SSLProtocol.feed_data() is called before SSLProtocol.connection_made() is called. _SelectorSocketTransport constructor calls loop.add_reader() immediatly, but it only schedules a call to protocol.connection_made() with loop.call_soon().

The call to loop.add_reader() should maybe be scheduled after the call to connection_made()? To ensure that protocol methods (feed_data) are not called before connection_made() has been called.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23333>
_______________________________________


More information about the Python-bugs-list mailing list