-
Notifications
You must be signed in to change notification settings - Fork 2k
#13849 ignore last writes done by the ResourceService used in ResourceServlet
#13914
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
#13849 ignore last writes done by the ResourceService used in ResourceServlet
#13914
Conversation
sbordet
left a comment
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.
The approach looks good to me, but can we write a test case?
|
@sbordet sure, I added a test for each environment. |
sbordet
left a comment
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.
The tests only test H1, for which we know there was not the problem.
Please move the test to jetty-eeN-test-client-transports so that we have a test for all transports about this.
|
@sbordet as I wrote here, the problem does happen with H1 too, it just doesn't have any visible effect. But doing two last writes is wrong and these tests catch that problem. I can write a H2-specific test too but would be more complex as it would involve flow control and would be somewhat redundant with these ones. |
|
@lorban can you clarify? If it does not have visible effects, then we cannot write a test case that would fail without the fix, which renders the test moot. I would really try hard to write a test for all the transports. |
|
I meant it doesn't have any visible effect for the client, there obviously are multiple way on the server to figure out that more than one last write was attempted. I'll add a transport test, just to be safe. |
… will perform the last write upon completion Signed-off-by: Ludovic Orban <[email protected]>
1a37e7f to
9ceda23
Compare
…849-ServletContextResponse-duplicate-last-write-alt
…849-ServletContextResponse-duplicate-last-write-alt
Let the
ServletChanneldo the last write upon completion.Fixes #13849