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
De117 opened this issue
Nov 9, 2024
· 0 comments
· May be fixed by #3781
Labels
A-errorArea: error handlingC-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
hyper = {version="1.5.0", features=["http1", "server"]}
# other dependencies
tokio = {version="1.41.1", features=["full"]}
hyper-util = {version = "0.1.10", features = ["full"]}
Platform
Output from uname --all:
Linux computer 6.7.11-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Mar 27 16:50:39 UTC 2024 x86_64 GNU/Linux
Description hyper::Error::is_timeout returns false on a HeaderTimeout.
On an HTTP/1.1 server, when I set a timeout with header_read_timeout, a slow client will cause a HeaderTimeout error.
Calling is_timeout on the error should return true, but it returns false.
Open a TCP socket (nc localhost 1234) and hold it open for a second. This triggers the timeout, and the program prints Is hyper::Error(HeaderTimeout) a timeout? false.
The text was updated successfully, but these errors were encountered:
A-errorArea: error handlingC-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
Version
Platform
Output from
uname --all
:Description
hyper::Error::is_timeout
returnsfalse
on aHeaderTimeout
.On an HTTP/1.1 server, when I set a timeout with
header_read_timeout
, a slow client will cause aHeaderTimeout
error.Calling
is_timeout
on the error should returntrue
, but it returnsfalse
.To reproduce:
Open a TCP socket (
nc localhost 1234
) and hold it open for a second. This triggers the timeout, and the program printsIs hyper::Error(HeaderTimeout) a timeout? false
.The text was updated successfully, but these errors were encountered: