Skip to content

hcm: refactor idle_timeout arming#8475

Merged
snowp merged 1 commit intoenvoyproxy:masterfrom
snowp:idle-timeout-2
Oct 3, 2019
Merged

hcm: refactor idle_timeout arming#8475
snowp merged 1 commit intoenvoyproxy:masterfrom
snowp:idle-timeout-2

Conversation

@snowp
Copy link
Copy Markdown
Contributor

@snowp snowp commented Oct 3, 2019

Moves the check to re-arm closer to where active streams are removed
from streams_, making it easier to reason about correctness. Also
adds integration test coverage around HCM idle timeout handling.

Signed-off-by: Snow Pettersen snowp@squareup.com

Risk Level: Low
Testing: Existing tests, new IT
Docs Changes: n/a
Release Notes: n/a

Moves the check to re-arm closer to where active streams are removed
from streams_, making it easier to reason about correctness. Also
adds integration test coverage around HCM idle timeout handling.

Signed-off-by: Snow Pettersen <snowp@squareup.com>
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

Looks great, thanks very much for the cleanup.

One request - can you run 1k runs with the deflake instructions (test/integration/READ.md) just to make sure the timeout isn't too aggressive? I doubt it'd disconnect between connection and stream but better to find out before we merge :-)

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@snowp
Copy link
Copy Markdown
Contributor Author

snowp commented Oct 3, 2019

No failures after running it a bunch of times. I started off with 1ms timeout which was definitely flaky, 100ms seems ok.

@snowp snowp merged commit bd3b650 into envoyproxy:master Oct 3, 2019
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
Moves the check to re-arm closer to where active streams are removed
from streams_, making it easier to reason about correctness. Also
adds integration test coverage around HCM idle timeout handling.

Signed-off-by: Snow Pettersen <snowp@squareup.com>
nandu-vinodan pushed a commit to nandu-vinodan/envoy that referenced this pull request Oct 17, 2019
Moves the check to re-arm closer to where active streams are removed
from streams_, making it easier to reason about correctness. Also
adds integration test coverage around HCM idle timeout handling.

Signed-off-by: Snow Pettersen <snowp@squareup.com>
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.

3 participants