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

Only call destroyContext() when LastHttpContent was received and sent #11

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

normanmaurer
Copy link
Member

Motivation:

We need to ensure destroyContext() is only called when the whole request / response pair is handled as otherwise we might run into issues while decoding / encoding messages.

Modifications:

Keep track of receiving and sending LastHttpContent and only destroy the context once both is done.

Result:

Correctly handle lifecycle of context

Motivation:

We need to ensure destroyContext() is only called when the whole request / response pair is handled as otherwise we might run into issues while decoding / encoding messages.

Modifications:

Keep track of receiving and sending LastHttpContent and only destroy the context once both is done.

Result:

Correctly handle lifecycle of context
@normanmaurer
Copy link
Member Author

/cc @thomdev

@normanmaurer normanmaurer added this to the 0.0.2.Final milestone Dec 14, 2023
Copy link
Collaborator

@thomdev thomdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@normanmaurer normanmaurer merged commit fd8c1c8 into main Dec 14, 2023
5 checks passed
@normanmaurer normanmaurer deleted the destroy branch December 14, 2023 17:53
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