Skip to content

[3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)#7025

Merged
asvetlov merged 1 commit into
python:3.6from
asvetlov:backport-a84d0b3-3.6
May 21, 2018
Merged

[3.6] bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450)#7025
asvetlov merged 1 commit into
python:3.6from
asvetlov:backport-a84d0b3-3.6

Conversation

@asvetlov

@asvetlov asvetlov commented May 21, 2018

Copy link
Copy Markdown
Contributor

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)

https://bugs.python.org/issue33263

* 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)
@bedevere-bot

Copy link
Copy Markdown

@asvetlov: Please replace # with GH- in the commit message next time. Thanks!

@asvetlov asvetlov deleted the backport-a84d0b3-3.6 branch May 21, 2018 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants