Replies: 1 comment
-
If you mean for your server, hyper has a header read timeout value: https://docs.rs/hyper/latest/hyper/server/conn/http1/struct.Builder.html#method.header_read_timeout. However, that default is 30 seconds. At 60 seconds, it's more likely that is terminated above, either by something like nginx, an ALB, or even the client's own pool idle timeout. Note that setting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm observing in my axum server that connections are dropped 1 minute after I get a spike of requests. I already set
/proc/sys/net/ipv4/tcp_keepalive_time
to 300 seconds from its former value of 60 seconds, but I'm still seeing connections dropped after just 60 seconds.Is there a way to set this time in hyper and ideally via axum, but right now I'm sort of feeling desperate, as I'm not even sure how to tell whether the timeout is being set in my rust code versus in my system or somehow in the load balancer.
Beta Was this translation helpful? Give feedback.
All reactions