Skip to content

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

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

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

Conversation

@miss-islington

@miss-islington miss-islington 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)

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

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)

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

Copy link
Copy Markdown
Contributor Author

@drtyrsa and @asvetlov: Backport status check is done, and it's a failure ❌ .

@asvetlov asvetlov merged commit b8b8000 into python:3.7 May 21, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks, @asvetlov!

@bedevere-bot

Copy link
Copy Markdown

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

@miss-islington miss-islington deleted the backport-a84d0b3-3.7 branch May 21, 2018 08:35
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.

5 participants