Skip to content

Conversation

@agrawroh
Copy link
Member

Description

We clarified the max_connection_duration behavior as part of this but this change was never done for the docs we have on "How do I configure timeouts?" here.

This PR is making the same changes to the main doc.


Commit Message: docs: fix the timeout behavior explanation
Additional Description: Fix the main timeout docs to align with the proto docs.
Risk Level: N/A
Testing: CI
Docs Changes: Added
Release Notes: N/A

@repokitteh-read-only
Copy link

Docs for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/41783/docs/index.html

The docs are (re-)rendered each time the CI Envoy/Prechecks (docs) job completes.

🐱

Caused by: #41783 was opened by agrawroh.

see: more, trace.

@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #41783 was opened by agrawroh.

see: more, trace.

@agrawroh agrawroh marked this pull request as ready for review October 30, 2025 21:45
Copy link
Member

@phlax phlax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tiny literal nit but otherwise looks like a really nice cleanup/addition

would be good to get sign off from @adisuissa for what is being said

@adisuissa
Copy link
Contributor

@krajshiva can you PTAL, as you may have the most context

Co-authored-by: phlax <[email protected]>
Signed-off-by: Rohit Agrawal <[email protected]>
@agrawroh
Copy link
Member Author

agrawroh commented Nov 5, 2025

@adisuissa Is there anyone else who have expertise around this area?

Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
Left minor comments.
It would be good to have integration tests that validate the contents that is said here.

otherwise specified is *1 hour*. To modify the idle timeout for downstream connections use the
:ref:`common_http_protocol_options
cluster HTTP connections. The idle timeout is defined as the period in which there are no active
requests or streams. When the idle timeout is reached, the connection will be closed. For HTTP/2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure, the timeout will occur even if the underlying TCP connection is kept alive (using keepalive)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add clarification, Thanks!

cluster HTTP connections. The idle timeout is defined as the period in which there are no active
requests or streams. When the idle timeout is reached, the connection will be closed. For HTTP/2
downstream connections, a drain sequence will occur prior to closing the connection (see
:ref:`drain_timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.drain_timeout>`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clarify if the drain_timeout is added on top of the idle_timeout.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per what I see the drain_timeout seems to start immediately when idle_timeout triggers and is not added on top. I'll rephrase the text.

Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@agrawroh
Copy link
Member Author

agrawroh commented Nov 6, 2025

/retest

@agrawroh agrawroh enabled auto-merge (squash) November 6, 2025 16:43
@agrawroh agrawroh merged commit f3e9ece into envoyproxy:main Nov 6, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants