]> granicus.if.org Git - python/commit
bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)
authorVlad Starostin <drtyrsa@yandex.ru>
Mon, 21 May 2018 08:13:45 +0000 (11:13 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 21 May 2018 08:13:45 +0000 (11:13 +0300)
commita84d0b361a26c05c6fadc6640591ec3feee5bfb5
treefb5b5ad67a0122a5094af74d0b5ff43a6c768ca9
parent4054b172ab59054715a2aaf4979bd84ac23e3ada
bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)

* bpo-33263 Fix FD leak in _SelectorSocketTransport. (GH-6450)

Under particular circumstances _SelectorSocketTransport can try to add a reader
even the transport is already being closed. This can lead to FD leak and
invalid stated of the following connections. Fixed the SelectorSocketTransport
to add the reader only if the trasport is still active.
Lib/asyncio/selector_events.py
Lib/test/test_asyncio/test_selector_events.py
Misc/NEWS.d/next/Library/2018-04-11-20-29-19.bpo-33263.B56Hc1.rst [new file with mode: 0644]