-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add options to set h2 keepalive_timeout? #826
Comments
h2 doesn't use Tokio's runtime types, like the timer, so that it can be portable to other runtimes. We could probably scope out how to add it to hyper, which has a generic timer type. |
But how to add keepalive timeout where we don't rely on hyper, just use h2? |
maybe we could find the way without use tokio? |
I think it can be done almost entirely outside of |
when sleep wake up? I don't know where to setup sleep. |
if timeout is 60s, we should only time start when there no.active streams. but there no callback to me to start |
I have implement active prototype |
We want close non-active connection to avoid fd run out. https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_timeout
I can open a PR if you accept.
The text was updated successfully, but these errors were encountered: