Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Idle Timeout mod_http2 |
|
Author |
|
frankstolle
Joined: 02 Dec 2015 Posts: 1
|
Posted: Wed 02 Dec '15 13:05 Post subject: Idle Timeout mod_http2 |
|
|
Hi,
I've tested the http/2 environment on basis of nghttp2 1.3.4 and apache 2.4.17. I did not found a way to configure the idle timeout of http2-connections. Some connections are hold over hours. Are there any possibilities to configure such a timeout?
Regards
frank |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 02 Dec '15 20:25 Post subject: |
|
|
There is H2MaxWorkerIdleSeconds but it has a caveat of only when then H2MinWorkers has been exceeded. |
|
Back to top |
|
icing
Joined: 22 Sep 2015 Posts: 41 Location: Münster, Germany
|
Posted: Mon 14 Dec '15 15:08 Post subject: |
|
|
Unfortunately, mod_http2 takes over the connection before mod_reqtimeout has a chance. So, for now, there is no way to configure a timeout that way.
I plan to add configurations specific to mod_http2, one when requests are underway, one when the connection really is idle. The usual read phases for mod_reqtimeout do not apply to http2, so something new is needed.
That will allow separate configuration for HTTP/1 and HTTP/2 which, I think, makes most sense when you want to support both sorts of clients well. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3094 Location: Hilversum, NL, EU
|
Posted: Fri 18 Dec '15 20:29 Post subject: |
|
|
mod_http2 v1.0.12 has now:
H2Timeout timeout of a http/2 connection (seconds), default 5
H2KeepAliveTimeout timeout of an idle http/2 connection (seconds), default 300
H2StreamTimeout timeout on individual streams (seconds), default 120
Available at https://www.apachelounge.com/viewtopic.php?p=32449 |
|
Back to top |
|
|
|
|
|
|