Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.6] bpo-35017, socketserver: don't accept request after shutdown (GH-9952)#10126

Merged
miss-islington merged 1 commit into
python:3.6python/cpython:3.6from
miss-islington:backport-10cb376-3.6miss-islington/cpython:backport-10cb376-3.6Copy head branch name to clipboard
Oct 26, 2018
Merged

[3.6] bpo-35017, socketserver: don't accept request after shutdown (GH-9952)#10126
miss-islington merged 1 commit into
python:3.6python/cpython:3.6from
miss-islington:backport-10cb376-3.6miss-islington/cpython:backport-10cb376-3.6Copy head branch name to clipboard

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 26, 2018

Copy link
Copy Markdown
Contributor

Prior to this revision, after the shutdown of a BaseServer,
the server accepted a last single request
if it was sent between the server socket polling
and the polling timeout.

This can be problematic for instance for a server restart
for which you do not want to interrupt the service,
by not closing the listening socket during the restart.
One request failed because of this behavior.

Note that only one request failed,
following requests were not accepted, as expected.
(cherry picked from commit 10cb376)

Co-authored-by: Denis Ledoux be.ledoux.denis@gmail.com

https://bugs.python.org/issue35017

…H-9952)

Prior to this revision, after the shutdown of a `BaseServer`,
the server accepted a last single request
if it was sent between the server socket polling
and the polling timeout.

This can be problematic for instance for a server restart
for which you do not want to interrupt the service,
by not closing the listening socket during the restart.
One request failed because of this behavior.

Note that only one request failed,
following requests were not accepted, as expected.
(cherry picked from commit 10cb376)

Co-authored-by: Denis Ledoux <be.ledoux.denis@gmail.com>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@beledouxdenis and @vstinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 8b1f52b into python:3.6 Oct 26, 2018
@miss-islington miss-islington deleted the backport-10cb376-3.6 branch October 26, 2018 14:10
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.