-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #1450
Conversation
24f51ae
to
09f3d49
Compare
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>
3bd90e1
to
62b575b
Compare
I"m closing for now, this requires further investigation. |
For the same reasons I had to close #1449 I'll have to close this one and open a new PR: updating the branch with force pushing is not updating the PR. The PR does not logs that the branch has been force pushed, but if I click at the link to the branch associated with this PR, I can see the updated commits in there. Closing this unfortunately :-( |
(github is also not showing options for reopening the PR) |
Duplicated by #1491 |
Jiras:
https://issues.redhat.com/browse/UNDERTOW-2241
https://issues.redhat.com/browse/UNDERTOW-2247
https://issues.redhat.com/browse/UNDERTOW-2248
Master PR: #1449