Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split minimum idle timeout period #3847

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Split minimum idle timeout period #3847

merged 2 commits into from
Jul 14, 2020

Conversation

martinthomson
Copy link
Member

The text as written implied that the actual timeout period was
calculated using:

min(max_idle_timeout[client],
    max_idle_timeout[server],
    3 * PTO)

This is silly, as 3PTO is usually smaller than the other two values, and
connections would time out too fast.

Splitting the text regarding the 3PTO backstop makes this clearer.

The text as written implied that the actual timeout period was
calculated using:

```
min(max_idle_timeout[client],
    max_idle_timeout[server],
    3 * PTO)
```
This is silly, as 3PTO is usually smaller than the other two values, and
connections would time out too fast.

Splitting the text regarding the 3PTO backstop makes this clearer.
@martinthomson martinthomson added editorial An issue that does not affect the design of the protocol; does not require consensus. -transport labels Jul 8, 2020
@@ -2682,6 +2681,10 @@ ack-eliciting packet if no other ack-eliciting packets have been sent since last
receiving and processing a packet. Restarting this timer when sending a packet
ensures that connections are not closed after new activity is initiated.

There is no minimum value for max_idle_timeout. To avoid excessively small idle
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is like a major nitpick, but isn't the minimum value actually 1ms, because 0 means no timeout?

@marten-seemann
Copy link
Contributor

Wasn't the intended meaning

min(max_idle_timeout[client] + 3*PTO,
    max_idle_timeout[server] + 3*PTO)

@martinthomson
Copy link
Member Author

I can only speak about my intent, but I did not intend to always add 3PTO to the timeout. The text was clearly more confused than I thought.

@martinthomson martinthomson mentioned this pull request Jul 8, 2020
@ianswett
Copy link
Contributor

I actually wasn't sure what you meant before, but this is what I assumed.

@martinthomson martinthomson merged commit 5c4da19 into master Jul 14, 2020
@martinthomson martinthomson deleted the idle-3pto branch July 14, 2020 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-transport editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants