Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to Hyper 1.0 #93

Merged
merged 2 commits into from
Dec 3, 2023
Merged

Migration to Hyper 1.0 #93

merged 2 commits into from
Dec 3, 2023

Conversation

abs0luty
Copy link
Collaborator

@abs0luty abs0luty commented Dec 3, 2023

No description provided.

@abs0luty abs0luty merged commit bb18fcc into master Dec 3, 2023
phlip9 added a commit to lexe-app/axum-server that referenced this pull request May 18, 2024
The hyper v1 migration PR (programatik29#93) accidentally (?) removed the call to
`serve_future.graceful_shutdown()`, which prevents the server from shutting
down until all client _connections_ close on their own (or we hit the hard
shutdown timeout).

In practice, this meant we always hit the hard shutdown timeout, since most
clients use connection pools with connection keepalive.

With this change, graceful shutdown will now correctly stop handling any
new requests after it's triggered, while letting existing requests
complete (within the timeout of course).

Fixes programatik29#114
phlip9 added a commit to lexe-app/axum-server that referenced this pull request May 20, 2024
The hyper v1 migration PR (programatik29#93) accidentally (?) removed the call to
`serve_future.graceful_shutdown()`, which prevents the server from shutting
down until all client _connections_ close on their own (or we hit the hard
shutdown timeout).

In practice, this meant we always hit the hard shutdown timeout, since most
clients use connection pools with connection keepalive.

With this change, graceful shutdown will now correctly stop handling any
new requests after it's triggered, while letting existing requests
complete (within the timeout of course).

Fixes programatik29#114
phlip9 added a commit to lexe-app/axum-server that referenced this pull request May 20, 2024
The hyper v1 migration PR (programatik29#93) accidentally (?) removed the call to
`serve_future.graceful_shutdown()`, which prevents the server from shutting
down until all client _connections_ close on their own (or we hit the hard
shutdown timeout).

In practice, this meant we always hit the hard shutdown timeout, since most
clients use connection pools with connection keepalive.

With this change, graceful shutdown will now correctly stop handling any
new requests after it's triggered, while letting existing requests
complete (within the timeout of course).

Fixes programatik29#114
phlip9 added a commit to lexe-app/axum-server that referenced this pull request May 20, 2024
The hyper v1 migration PR (programatik29#93) accidentally (?) removed the call to
`serve_future.graceful_shutdown()`, which prevents the server from shutting
down until all client _connections_ close on their own (or we hit the hard
shutdown timeout).

In practice, this meant we always hit the hard shutdown timeout, since most
clients use connection pools with connection keepalive.

With this change, graceful shutdown will now correctly stop handling any
new requests after it's triggered, while letting existing requests
complete (within the timeout of course).

Fixes programatik29#114
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.

None yet

1 participant