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

network: add tcp listener backlog config #12625

Merged
merged 2 commits into from
Aug 13, 2020

Conversation

florincoras
Copy link
Member

Signed-off-by: Florin Coras fcoras@cisco.com

Risk Level: Low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Florin Coras <fcoras@cisco.com>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/envoy/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/envoy/.

🐱

Caused by: #12625 was opened by florincoras.

see: more, trace.

@florincoras
Copy link
Member Author

cc @mattklein123 @antoniovicente

@mattklein123 mattklein123 self-assigned this Aug 13, 2020
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

/lgtm api

Copy link
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.

Awesome, thank you! LGTM with small comments.

/wait

Network::ListenerCallbacks& cb,
bool bind_to_port) PURE;
Network::ListenerCallbacks& cb, bool bind_to_port,
uint32_t backlog_size = ENVOY_TCP_BACKLOG_SIZE) PURE;
Copy link
Member

Choose a reason for hiding this comment

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

Can we not have a default param on this interface? I would prefer that we make sure we hit all call sites. How many other places need to change?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's definitely possible because the first version of the patch didn't use a default param :-). It's a decent amount of tests, but if you're okay with that, I can push an update.

Copy link
Member

Choose a reason for hiding this comment

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

Yes please.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

@@ -25,6 +25,7 @@ class ListenerImpl : public BaseListenerImpl {
void setupServerSocket(Event::DispatcherImpl& dispatcher, Socket& socket);

ListenerCallbacks& cb_;
uint32_t backlog_size_;
Copy link
Member

Choose a reason for hiding this comment

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

const

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

- const backlog_size in listener
- no default param in createListener

Signed-off-by: Florin Coras <fcoras@cisco.com>
Copy link
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.

Thank you!

@florincoras
Copy link
Member Author

Windows and arm seem to be failing consistently but with timeouts in unexpected places e.g., //test/extensions/filters/http/cache:cache_filter_integration_test. Are these known to be failing recently?

@mattklein123
Copy link
Member

There are various flakes that are being worked on. See #12527. I will rerun.

@florincoras
Copy link
Member Author

Thanks, @mattklein123!

@mattklein123 mattklein123 merged commit cf9b494 into envoyproxy:master Aug 13, 2020
mpuncel added a commit to mpuncel/envoy that referenced this pull request Aug 14, 2020
* master: (67 commits)
  logger: support log control in admin interface and command line option for Fancy Logger (envoyproxy#12369)
  test: fix http_timeout_integration_test flake (envoyproxy#12654)
  [fuzz]added an input check in writefilter fuzzer and added test cases (envoyproxy#12628)
  add 'explicit' restriction. (envoyproxy#12643)
  scoped_rds_integration_test migrate from api v2 to api v3. (envoyproxy#12633)
  fuzz: added fuzz test for listener filter tls_inspector (envoyproxy#12617)
  testing: fix multiple race conditions in simulated time tests (envoyproxy#12527)
  [tls] Move handshaking behavior into SslSocketInfo. (envoyproxy#12571)
  header: getting rid of exception-throwing behaviors in header files [the rest] (envoyproxy#12611)
  router: add new ratelimited retry backoff strategy (envoyproxy#12202)
  [redis_proxy] added a constraint for route.prefix().size() (envoyproxy#12637)
  network: add tcp listener backlog config (envoyproxy#12625)
  runtime: debug log that condition is always true when fractionalPercent numerator > denominator (envoyproxy#12068)
  WatchDog Extension hook (envoyproxy#12416)
  router: add dynamic metadata header formatter (envoyproxy#11858)
  statsd: revert visibility to public (envoyproxy#12621)
  Fix regression of /build_* in gitignore (envoyproxy#12630)
  Added a missing extension point to documentation. (envoyproxy#12620)
  Reverts proxy protocol test on windows (envoyproxy#12619)
  caching: Improved the tests and coverage of the CacheFilter tree (envoyproxy#12544)
  ...

Signed-off-by: Michael Puncel <mpuncel@squareup.com>
@florincoras florincoras deleted the backlog branch August 19, 2020 20:42
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