Skip to content

Make proxy.config.http2.accept_no_activity_timeout and proxy.config.http2.no_activity_timeout_in overridable/reloadable #1663

Closed

Description

@mlibbey

These 2 http configs are overridable:

proxy.config.http.transaction_no_activity_timeout_in
proxy.config.http.transaction_no_activity_timeout_out

but, the corresponding http2 configs

proxy.config.http2.accept_no_activity_timeout and 
proxy.config.http2.no_activity_timeout_in 

are not. Seems like we should be consistent. (or, do we really need these as separate configs? it's a bit annoying to think to keep them in sync.

Activity

  1. added this to the milestone on May 24, 2017
  2. modified the milestones: , 8.0.1, 8.1.0 on Jun 7, 2018
  3. modified the milestones: 8.1.0, 10.0.0 on May 22, 2019
  4. zwoop commented on May 22, 2019

    @zwoop
    Contributor

    @mlibbey Can you prioritize / assign this please ?

  5. modified the milestones: 10.0.0, 9.0.0 on May 22, 2019
  6. modified the milestones: 9.0.0, 10.0.0 on Aug 21, 2019
  7. shinrich commented on Mar 1, 2021

    @shinrich
    Member

    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.

  8. sudheerv commented on Mar 1, 2021

    @sudheerv
    Contributor

    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

  9. shinrich commented on Mar 1, 2021

    @shinrich
    Member

    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?

  10. maskit commented on Mar 2, 2021

    @maskit
    Member

    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.

    I completely agree. Those cannot be overridable.

  11. shinrich commented on Apr 19, 2021

    @shinrich
    Member

    @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.

  12. removed this from the 10.0.0 milestone on May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions