Skip to content

listener: create generic listener filter timeout#5231

Merged
mattklein123 merged 5 commits into
masterfrom
socket_stats_timeout
Dec 6, 2018
Merged

listener: create generic listener filter timeout#5231
mattklein123 merged 5 commits into
masterfrom
socket_stats_timeout

Conversation

@mattklein123

Copy link
Copy Markdown
Member

Move the hard-coded 15s timeout in TLS inspector into
the connection handler such that it covers all listener
filters. Also make it configurable as well as add useful
stats to see how many connections are currently undergoing
listener filter processing.

Fixes #5217

Risk Level: Medium
Testing: Unit tests
Docs Changes: Done
Release Notes: Done

Move the hard-coded 15s timeout in TLS inspector into
the connection handler such that it covers all listener
filters. Also make it configurable as well as add useful
stats to see how many connections are currently undergoing
listener filter processing.

Fixes #5217

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123

Copy link
Copy Markdown
Member Author

@ggreenway @PiotrSikora PTAL

Comment thread include/envoy/network/listener.h Outdated
Comment thread test/server/listener_manager_impl_test.cc Outdated
Signed-off-by: Matt Klein <mklein@lyft.com>

@alyssawilk alyssawilk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few nits on my end

to a response with empty body.
* listeners: all listener filters are now governed by the :ref:`listener_filters_timeout
<envoy_api_field_Listener.listener_filters_timeout>` setting. The hard coded 15s timeout in
the :ref:`TLS inspector listener filter <config_listener_filters_tls_inspector>` is superseded by

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The prior TLS inspector listener filter timeout is replaced, not the TLS inspector listener, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It reads: "The hard coded 15s timeout in the TLS inspector listener filter is superseded by..." I think that is OK?

Comment thread include/envoy/network/listener.h Outdated
COUNTER(connection_closed) \
COUNTER(client_hello_too_large) \
COUNTER(read_error) \
COUNTER(read_timeout) \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like there aren't docs to update here. Non-blocking but maybe file a bug against Greg or Piotr to doc up the stats we have?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Matt Klein <mklein@lyft.com>
@mattklein123 mattklein123 merged commit e96425a into master Dec 6, 2018
@mattklein123 mattklein123 deleted the socket_stats_timeout branch December 6, 2018 20:59
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
Move the hard-coded 15s timeout in TLS inspector into
the connection handler such that it covers all listener
filters. Also make it configurable as well as add useful
stats to see how many connections are currently undergoing
listener filter processing.

Fixes envoyproxy#5217

Signed-off-by: Matt Klein <mklein@lyft.com>
Signed-off-by: Fred Douglas <fredlas@google.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.

5 participants