bpo-33263: Fix FD leak in _SelectorSocketTransport by drtyrsa · Pull Request #6450 · python/cpython

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.

asvetlov

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

May 21, 2018
* bpo-33263 Fix FD leak in _SelectorSocketTransport. (pythonGH-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.
(cherry picked from commit a84d0b3)

Co-authored-by: Vlad Starostin <drtyrsa@yandex.ru>

asvetlov pushed a commit that referenced this pull request

May 21, 2018
* 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.
(cherry picked from commit a84d0b3)

Co-authored-by: Vlad Starostin <drtyrsa@yandex.ru>

asvetlov pushed a commit to asvetlov/cpython that referenced this pull request

May 21, 2018
* bpo-33263 Fix FD leak in _SelectorSocketTransport. (pythonGH-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..
(cherry picked from commit a84d0b3)

asvetlov added a commit that referenced this pull request

May 21, 2018
…7025)

* 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..
(cherry picked from commit a84d0b3)