You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make proxy.config.http2.accept_no_activity_timeout and proxy.config.http2.no_activity_timeout_in overridable/reloadable #1663
I don't see how the http2 versions of these configs could be overridable. The documents mark them as overridable. That should be corrected.
proxy.config.http2.accept_no_activity_timeout is a characteristic of the session. It tracks how long you will keep the connection open if there is no activity on the connection. This means no activity on any of the potentially multiple streams(transactions) on the session.
The description for proxy.config.http2.no_activity_timeout_in seems to be the same. Need to dig into the implementation and update that as well. But in any case, it is session/connection oriented. The Http no_transaction_activity timeouts are transaction oriented and apply to transactions that originate from Http2 sessions as well as Http1 sessions. Thus it makes sense for them to allow per transaction overrides.
Right. I think it'd make sense to nuke proxy.config.http2.no_activity_timeout_in in favor of proxy.config.http.keep_alive_no_activity_timeout_in or at least, rename it as proxy.config.http2.keep_alive_no_activity_timeout_in if we really wanted to. But, given that we are happy to let proxy.config.http.transaction_no_activity_timeout_in apply to even HTTP2 streams, it'd be consistent and easier to just nuke proxy.config.http2.no_activity_timeout_in altogether in favor proxy.config.http.keep_alive_no_activity_timeout_in
I agree that the purpose of proxy.config.http2.no_activity_timeout_in is closer to proxy.config.http.keep_alive_no_activity_timeout_in for HTTP1.x. I like the renaming to proxy.config.http2.keep_alive_no_activity_timeout_in (and _out for the H2 to origin case). Looking at http3, I assume we would want to have the option to fiddle with each of those values on a session protocol type basis. @maskit do you have an opinion?
Note that "keep alive" only exists in HTTP/1.1. HTTP/2 and HTTP semantics do not use the term. It's a legacy concept. I'd rename it to session_no_activity_timeout_in/out if we can go more aggressively.
We should probably keep settings separated by protocols/versions. Keeping H2 sessions has more benefits than keeping H1 sessions, I think. H2 and H3 are very similar, so many people would have same setting values for those, but we might need to close inactive H3 sessions immediately as a counter-major for some bug/attack. Having separated settings enables it.
I don't see how the http2 versions of these configs could be overridable. The documents mark them as overridable. That should be corrected.
@maskit I like the session_no_activity_timeout_in/out naming for 10.x. Could change the existing documentation to reflect reality with the current names to get rid of the overridable reference.
I'll set up a PR to address the documentation issue without the name change, and open a new issue to track the name normalization for 10.
Activity
zwoop commentedon May 22, 2019
@mlibbey Can you prioritize / assign this please ?
shinrich commentedon Mar 1, 2021
I don't see how the http2 versions of these configs could be overridable. The documents mark them as overridable. That should be corrected.
proxy.config.http2.accept_no_activity_timeout is a characteristic of the session. It tracks how long you will keep the connection open if there is no activity on the connection. This means no activity on any of the potentially multiple streams(transactions) on the session.
The description for proxy.config.http2.no_activity_timeout_in seems to be the same. Need to dig into the implementation and update that as well. But in any case, it is session/connection oriented. The Http no_transaction_activity timeouts are transaction oriented and apply to transactions that originate from Http2 sessions as well as Http1 sessions. Thus it makes sense for them to allow per transaction overrides.
sudheerv commentedon Mar 1, 2021
Right. I think it'd make sense to nuke
proxy.config.http2.no_activity_timeout_inin favor ofproxy.config.http.keep_alive_no_activity_timeout_inor at least, rename it asproxy.config.http2.keep_alive_no_activity_timeout_inif we really wanted to. But, given that we are happy to letproxy.config.http.transaction_no_activity_timeout_inapply to even HTTP2 streams, it'd be consistent and easier to just nukeproxy.config.http2.no_activity_timeout_inaltogether in favorproxy.config.http.keep_alive_no_activity_timeout_inshinrich commentedon Mar 1, 2021
I agree that the purpose of proxy.config.http2.no_activity_timeout_in is closer to proxy.config.http.keep_alive_no_activity_timeout_in for HTTP1.x. I like the renaming to proxy.config.http2.keep_alive_no_activity_timeout_in (and _out for the H2 to origin case). Looking at http3, I assume we would want to have the option to fiddle with each of those values on a session protocol type basis. @maskit do you have an opinion?
maskit commentedon Mar 2, 2021
Note that "keep alive" only exists in HTTP/1.1. HTTP/2 and HTTP semantics do not use the term. It's a legacy concept. I'd rename it to
session_no_activity_timeout_in/outif we can go more aggressively.We should probably keep settings separated by protocols/versions. Keeping H2 sessions has more benefits than keeping H1 sessions, I think. H2 and H3 are very similar, so many people would have same setting values for those, but we might need to close inactive H3 sessions immediately as a counter-major for some bug/attack. Having separated settings enables it.
I completely agree. Those cannot be overridable.
shinrich commentedon Apr 19, 2021
@maskit I like the session_no_activity_timeout_in/out naming for 10.x. Could change the existing documentation to reflect reality with the current names to get rid of the overridable reference.
I'll set up a PR to address the documentation issue without the name change, and open a new issue to track the name normalization for 10.