You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When HttpClient uses h2c protocol with upgrade from HTTP/1.1 and specifies response timeout, HTTP connection is always closed after the timeout regardless of whether response was received or not.
Note the ReadTimeoutException caught after 10 seconds (response timeout) and a new connection (first connection is closed due to the exception) for the second request.
Output when only H2C is used (HTTP/2 prior knowledge) or when response timeout is not specified:
OS and version (eg. uname -a): Darwin MacBook.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin
The text was updated successfully, but these errors were encountered:
Actual Behavior
When HttpClient uses h2c protocol with upgrade from HTTP/1.1 and specifies response timeout, HTTP connection is always closed after the timeout regardless of whether response was received or not.
Steps to Reproduce
Server:
Client:
Output when both H2C and HTTP11 are specified:
Note the
ReadTimeoutException
caught after 10 seconds (response timeout) and a new connection (first connection is closed due to the exception) for the second request.Output when only H2C is used (HTTP/2 prior knowledge) or when response timeout is not specified:
This is expected behavior for both cases.
Your Environment
java -version
): 1.8.0_275uname -a
): Darwin MacBook.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 DarwinThe text was updated successfully, but these errors were encountered: