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

HttpServerConnection performs TLS shutdown without a timeout #9986

Open
julianbrost opened this issue Feb 1, 2024 · 0 comments · May be fixed by #10005
Open

HttpServerConnection performs TLS shutdown without a timeout #9986

julianbrost opened this issue Feb 1, 2024 · 0 comments · May be fixed by #10005
Assignees
Labels
area/api REST API bug Something isn't working ref/IP

Comments

@julianbrost
Copy link
Contributor

HttpServerConnection::Disconnect() calls async_shutdown() on the TLS stream:

m_Stream->next_layer().async_shutdown(yc[ec]);

This performs a TLS shutdown which involves network IO. There's no timeout implemented, so if this happens on a stale connection, this may result in the code waiting for this at least for a long time, maybe even indefinitely.

I think it's time to move the code for shutting down connections into a common function and do it right there once and using that everywhere as this is not the first time we encounter this problem.

ref/IP/48306

@julianbrost julianbrost added bug Something isn't working area/api REST API ref/IP labels Feb 1, 2024
@julianbrost julianbrost self-assigned this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api REST API bug Something isn't working ref/IP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant