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 capture the first failure state in passport future listener #1347

Merged
merged 1 commit into from Oct 19, 2022

Conversation

gavinbunney
Copy link
Contributor

During large content streams, if a client cancels a request mid-stream, the ChannelPromise will fire failed events for each chunk queued to be written to the ChannelOutboundHandlerAdapter. This can cause a huge amount of PassportState.OUT_REQ_CONTENT_ERROR_SENDING to be added to the passport.

This PR will only add the first failure state for passport state listeners, which will ensure that only the first OUT_REQ_CONTENT_ERROR_SENDING is logged against the passport, with others being dropped.

@gavinbunney gavinbunney merged commit 10f787a into master Oct 19, 2022
@gavinbunney gavinbunney deleted the gavin/passport-failures branch October 19, 2022 16:48
Copy link
Contributor

@sullis sullis left a comment

Choose a reason for hiding this comment

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

LGTM

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

3 participants