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

Fix HTTP/1.1 server connection close header processing that close the connection too early #4804

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

vietj
Copy link
Member

@vietj vietj commented Aug 9, 2023

The implementation of HTTP/1.x connection close immediately close the HTTP connection when the response has been sent regargless of the request status.

The responsibility of closing the connection has been moved from Http1xServerResponse to Http1xServerConnection which now computes and maintains the keep alive status of the connection and becomes responsible to close the connection when it should not be kept alive at the appropriate lifecycle of the connection (that is when the response has been sent and the corresponding request received).

@vietj vietj added this to the 4.4.5 milestone Aug 9, 2023
@vietj vietj self-assigned this Aug 9, 2023
@vietj vietj added the bug label Aug 9, 2023
… HTTP connection when the response has been sent regargless of the request status.

The responsibility of closing the connection has been moved from Http1xServerResponse to Http1xServerConnection which now computes and maintains the keep alive status of the connection and becomes responsible to close the connection when it should not be kept alive at the appropriate lifecycle of the connection (that is when the response has been sent and the corresponding request received).
@vietj vietj force-pushed the server-connection-close-4.x branch from 623dc44 to a404b55 Compare August 9, 2023 13:35
@vietj vietj merged commit b76ddef into 4.x Aug 9, 2023
6 checks passed
@vietj vietj deleted the server-connection-close-4.x branch August 9, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant