-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
2773a2f
to
7839a80
Compare
source/common/http/conn_pool_base.h
Outdated
@@ -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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
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>
#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>
#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>
#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>
Risk Level: Medium (minor HTTP/TCP refactor)
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a