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

conn_pool: unifying status codes #10854

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

alyssawilk
Copy link
Contributor

@alyssawilk alyssawilk commented Apr 20, 2020

Risk Level: Medium (minor HTTP/TCP refactor)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@@ -89,6 +89,7 @@ class ConnPoolImplBase : public ConnectionPool::Instance,
Stats::TimespanPtr conn_length_;
Event::TimerPtr connect_timer_;
bool resources_released_{false};
bool timed_out_{true};
Copy link
Member

Choose a reason for hiding this comment

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

Should this be initialized false? (I don't see anything that clears, so I think every failure in onConnectionEvent will report a time out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

gack, that was not supposed to be part of the commit. That's the ASSERT-fail moral equivalent of "surely tests will fail if I set this wrong" which they surprisingly didn't. And now we have tests that will fail :-)

@mattklein123 mattklein123 removed their assignment Apr 21, 2020
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Member

@zuercher zuercher left a comment

Choose a reason for hiding this comment

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

Looks good!

@alyssawilk alyssawilk merged commit 6aee603 into envoyproxy:master Apr 21, 2020
penguingao pushed a commit to penguingao/envoy that referenced this pull request Apr 22, 2020
Risk Level: Medium (minor HTTP/TCP refactor)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Signed-off-by: pengg <pengg@google.com>
@alyssawilk alyssawilk deleted the unify_details branch August 27, 2020 16:33
alyssawilk added a commit that referenced this pull request Mar 3, 2021
#10854 inadvertently changed the behavior of connect timeouts. This reinstates prior behavior.

Risk Level: Low (reinstating prior behavior)
Testing: added regression test
Docs Changes: n/a
Release Notes: inline

Signed-off-by: Shikugawa <rei@tetrate.io>
Co-authored-by: alyssawilk <alyssar@chromium.org>
alyssawilk added a commit that referenced this pull request Mar 3, 2021
#10854 inadvertently changed the behavior of connect timeouts. This reinstates prior behavior.

Risk Level: Low (reinstating prior behavior)
Testing: added regression test
Docs Changes: n/a
Release Notes: inline

Signed-off-by: Shikugawa <rei@tetrate.io>
Co-authored-by: alyssawilk <alyssar@chromium.org>
alyssawilk pushed a commit that referenced this pull request Mar 3, 2021
#10854 inadvertently changed the behavior of connect timeouts. This reinstates prior behavior.

Risk Level: Low (reinstating prior behavior)
Testing: added regression test
Docs Changes: n/a
Release Notes: inline
Signed-off-by: Shikugawa <rei@tetrate.io>
Co-authored-by: alyssawilk <alyssar@chromium.org>
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