]> granicus.if.org Git - python/commit
asyncio: Close transports on error
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 10:02:18 +0000 (11:02 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 10:02:18 +0000 (11:02 +0100)
commit2596dd08949f530c97bb6a2eda506594840d9726
tree51bc5ec700e6fbd726545bfb6ec132364732f61e
parent21d7533c4c13489b4b3baae59f9e25cd038fb16b
asyncio: Close transports on error

Fix create_datagram_endpoint(), connect_read_pipe() and connect_write_pipe():
close the transport if the task is cancelled or on error.
Lib/asyncio/base_events.py