Open randomairborne opened 1 month ago
I suspect it's not the upgrades part, but rather the auto
part. Since it's doing an initial read to detect the HTTP version before passing on to the http1 state machine which knows about the timeout.
after some further testing, that makes sense. Is this something that hyper-util concerns itself with? Is it not possible to do SlowLoris with HTTP/2.0 in some other way?
Sysinfo: Hyper 1.4.1 on
Darwin 23.6.0 root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64
While l was looking into tokio-rs/axum#2741
I tried this code:
I expected a TCP connection opened to the server terminated after not sending data within one second, however, the connection was persisted indefinitely, and only terminated after some amount of data was sent. However, if instead of
serve_connection_with_upgrades
,serve_connection
is used, andhttp1_only()
is also set, Hyper exhibits the correct behavior