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 #1491

Merged
merged 5 commits into from Jun 7, 2023

Conversation

fl4via
Copy link
Member

@fl4via fl4via commented Jun 7, 2023

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>
…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 waiting CI check Ready to be merged but waiting for CI check maintenance branch Targeting maintainance branch labels Jun 7, 2023
@fl4via fl4via force-pushed the UNDERTOW-2241_2247_2248_2.2.x branch from 62b575b to c7cf4fd Compare June 7, 2023 18:12
@fl4via fl4via removed the waiting CI check Ready to be merged but waiting for CI check label Jun 7, 2023
@fl4via fl4via merged commit 9c57984 into undertow-io:2.2.x Jun 7, 2023
34 checks passed
@fl4via fl4via deleted the UNDERTOW-2241_2247_2248_2.2.x branch June 7, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance branch Targeting maintainance branch
Projects
None yet
1 participant