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

transport-stack: fix shutdown #420

Merged
merged 3 commits into from
Dec 16, 2024
Merged

transport-stack: fix shutdown #420

merged 3 commits into from
Dec 16, 2024

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Dec 16, 2024

log_transport_free() is responsible for shutdown, which requires an open fd.

log_transport_free() is responsible for shutdown, which requires an open
fd.

Signed-off-by: László Várady <[email protected]>
This tries to send out a close notify before destroying the transport.

> The shutdown procedure consists of 2 steps: the sending of the
> "close notify" shutdown alert and the reception of the peer's
> "close notify" shutdown alert.
>
> According to the TLS standard, it is acceptable for an application to
> only send its shutdown alert and then close the underlying connection
> without waiting for the peer's response (this way resources can be saved,
> as the process can already terminate or serve another connection).

Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
@bazsi bazsi merged commit 251cf98 into axoflow:main Dec 16, 2024
22 checks passed
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.

2 participants