logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Idle Timeout mod_http2
Author
frankstolle



Joined: 02 Dec 2015
Posts: 1

PostPosted: Wed 02 Dec '15 13:05    Post subject: Idle Timeout mod_http2 Reply with quote

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

PostPosted: Wed 02 Dec '15 20:25    Post subject: Reply with quote

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

PostPosted: Mon 14 Dec '15 15:08    Post subject: Reply with quote

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

PostPosted: Fri 18 Dec '15 20:29    Post subject: Reply with quote

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


Reply to topic   Topic: Idle Timeout mod_http2 View previous topic :: View next topic
Post new topic   Forum Index -> Apache