-
Notifications
You must be signed in to change notification settings - Fork 1.1k
UNDERTOW-1859 Fix WriteTimeoutTestCase not terminating #1474
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
base: main
Are you sure you want to change the base?
Conversation
ed5177d to
4e26a39
Compare
|
The WriteTimeoutTestCase now fails in the "proxy" profile with: |
|
On my laptop the failures don't happen always, but often enough. Running The "Caused by: java.lang.RuntimeException: ..." portion of the stack trace above shows where the leaking buffer was initialized, and this stack trace is different in various surefire executions, depending on which conduits are configured etc... So far I don't understand what's causing the leak. |
|
Yep, we will need to investigate this a little further. Basically, it seems this fix undecovered another underlying issue. |
https://issues.redhat.com/browse/UNDERTOW-1859
@fl4via for your consideration.
The test doesn't terminate because occasionally
int res = response.write(buffer)on line 94 returns 0, which causes the thread to return and not execute theexchange.endExchange();I think.