[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: The consensus looks to be to reject this feature, so I close the issue. I already commits a compromise: log an error in debug mode. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-29 Thread STINNER Victor
STINNER Victor added the comment: I commited a simplified version of accept_connection_failed.patch, without the call to connection_failed(). -- ___ Python tracker ___

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4fd6df9aea6 by Victor Stinner in branch '3.4': asyncio: sync with Tulip https://hg.python.org/cpython/rev/c4fd6df9aea6 -- nosy: +python-dev ___ Python tracker ___

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-28 Thread STINNER Victor
STINNER Victor added the comment: > - connection_failed-2.patch: add Protocol.connection_failed() and call when > the creation of a transport failed because connection_made() was called Oops. "... *before* connection_made() was called". -- ___ Pytho

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-28 Thread STINNER Victor
STINNER Victor added the comment: I splitted connection_failed.patch in two parts: - connection_failed-2.patch: add Protocol.connection_failed() and call when the creation of a transport failed because connection_made() was called - accept_connection_failed.patch: Fix BaseSelectorEventLoop._ac

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-28 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file37902/accept_connection_failed.patch ___ Python tracker ___ ___ Python-bugs

[issue23333] asyncio: add a new Protocol.connection_failed() method

2015-01-28 Thread STINNER Victor
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 (avo