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

Closed

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 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 bug fix Contains bug fix(es) labels Jun 7, 2023
@fl4via
Copy link
Member Author

fl4via commented Jun 7, 2023

Same issue that happened with #1449 is happening with this PR. It doesn't update after I push changes to the branch. Not sure what is going on, but I'll have to open a new PR :-(

@fl4via fl4via closed this Jun 7, 2023
@fl4via fl4via added duplicate Duplicates other pull request(s) and removed 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicates other pull request(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant