]> granicus.if.org Git - python/commit
Issue #21119: asyncio now closes sockets on errors
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:11:52 +0000 (00:11 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:11:52 +0000 (00:11 +0200)
commit223a624158254e2c907116a756f6ffe63c49fb7a
treec777076d19ecb165b487e1e6b0fd2b95d71b37b2
parentb9b965f6dd5be211a9ce047ac00070e51bc9b7a8
Issue #21119: asyncio now closes sockets on errors

Fix ResourceWarning: create_connection(), create_datagram_endpoint() and
create_unix_server() methods of event loop now close the newly created socket
on error.
Lib/asyncio/base_events.py
Lib/asyncio/unix_events.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_unix_events.py