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

[UNDERTOW-2241][UNDERTOW-2247][UNDERTOW-2248] Handle write timeout properly so no chunk errors occur #1490

Merged
merged 6 commits into from
Jun 7, 2023

Conversation

fl4via
Copy link
Member

@fl4via fl4via commented Jun 7, 2023

fl4via added 6 commits June 7, 2023 00:55
Signed-off-by: Flavia Rainone <frainone@redhat.com>
…and clear the allocated buffer to prevent NPEs when ClosedChannelExceptions and broken pipe SocketExceptions occur.

Those NPEs can occur at the points where the buffer is closed and it is already null because the buffer was cleared by an inner recursive call as an attempt to deal with the exception.
The broken pipe can occur when a browser tab is closed during the response writing process.

Signed-off-by: Flavia Rainone <frainone@redhat.com>
…reset expireTime to -1, disabling future checks for write timeout at timeoutCommand runnable

Signed-off-by: Flavia Rainone <frainone@redhat.com>
…ore closing the connection to give a chance to outer channels wrap up. At ChunkedStreamSinkConduit create the last chunk and attempt to flush before truncating writes.

Signed-off-by: Flavia Rainone <frainone@redhat.com>
…ring and, instead, just fail the test if there is no header

Signed-off-by: Flavia Rainone <frainone@redhat.com>
…Windows, because it has failed on unrelated PR CIs we know it is a preexisting intermitent failure

Signed-off-by: Flavia Rainone <frainone@redhat.com>
@fl4via fl4via added bug fix Contains bug fix(es) next release This PR will be merged before next release or has already been merged (for payload double check) waiting CI check Ready to be merged but waiting for CI check labels Jun 7, 2023
@fl4via fl4via force-pushed the UNDERTOW-2241_2247_2248_master branch 3 times, most recently from 55a63e4 to 45ffe75 Compare June 7, 2023 18:09
@fl4via fl4via removed the waiting CI check Ready to be merged but waiting for CI check label Jun 7, 2023
@fl4via fl4via merged commit bd80f88 into undertow-io:master Jun 7, 2023
@fl4via fl4via deleted the UNDERTOW-2241_2247_2248_master branch June 7, 2023 18:35
@fl4via fl4via removed the next release This PR will be merged before next release or has already been merged (for payload double check) label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Contains bug fix(es)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant