STINNER Victor added the comment:

New patch which adds a new Protocol.connection_failed() method.

The method is called when the creation of the transport failed, ie. when the 
connection failed, on SSL handshake failure for example.

The patch also closes the transport on connection failure (avoid a 
ResourceWarning with patch of the issue #23243).

----------
title: asyncio: call protocol.connection_lost() when the creation of transport 
failed -> asyncio: add a new Protocol.connection_failed() method
Added file: http://bugs.python.org/file37900/connection_failed.patch

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

Reply via email to