-
Notifications
You must be signed in to change notification settings - Fork 10.3k
34411 HTTP/2 and HTTP/3: Response trailers collection not reset #37627
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
Conversation
- Resetting user set Trailers on H2 and H3 Stream's OnReset() methods - Adding a unit tests that covers if the stream is reset or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
Assert.NotNull(trailersFirst); | ||
Assert.NotNull(trailersSecond); | ||
Assert.NotSame(trailersFirst, trailersSecond); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this test be merged with ResponseTrailers_MultipleStreams_Reset
? It'd also be nice to get coverage in the HTTP/3 tests to verify that the built-in trailers dictionary is cleared if there isn't already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can merge the two. Not sure what you mean by the HTTP3 part though.
EDIT: I think I know what you mean, ack
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3ConnectionTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also like moving _userTrailers = null
up. Thanks @ladeak!
@ladeak Do you mind updating the PR with the suggestions? We'd like to merge this and appreciate your contribution! |
Yes, let me add the suggestion in the next few days. |
@shirhatti I have followed up on the comments and pushed an update. |
Thanks @ladeak! |
34411 HTTP/2 and HTTP/3: Response trailers collection not reset
This is a follow up on discussion: "would the trailers field get reset between requests"
Description
Fixes #34411