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: TLS HTTP server alert handling #3660

Merged
merged 1 commit into from Aug 10, 2023

Conversation

FAlbertDev
Copy link
Collaborator

@FAlbertDev FAlbertDev commented Aug 9, 2023

Discovery by TLS-Anvil. Prevents a bug where a session of the TLS HTTP server is not properly closed after receiving a fatal alert. When receiving a fatal alert, the ASIO loop of the client_read was not broken, so the session object continued to live and waited for further client data. This simple check breaks this ASIO loop.

Also, while looking into this with @reneme, we figured the TLS HTTP server is quite dated (see #3659) and feels messy. It may be sensible to invest some time in renewing this code someday.

(This PR is the fix mentioned in #3651)

Prevents a bug, where a session of the TLS HTTP server is not
properly closed after receiving a fatal alert.
@coveralls
Copy link

Coverage Status

coverage: 91.722% (+0.03%) from 91.688% when pulling fcc1191 on FAlbertDev:fix/tls-http-alert-handling into 702b9f6 on randombit:master.

@reneme reneme merged commit ee20e4a into randombit:master Aug 10, 2023
34 checks passed
@FAlbertDev FAlbertDev deleted the fix/tls-http-alert-handling branch August 10, 2023 07:30
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

4 participants