tap: implement buffered data limiting for the tap transport socket (#5958)

Also optimize the buffering path to reduce copies.

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

Mirrored from https://github.com/envoyproxy/envoy @ 59d599981fc94d37485ee59b820c929560e25438
pull/620/head
data-plane-api(CircleCI) 6 years ago
parent f9291a310a
commit 1aa92c45c7
  1. 8
      envoy/data/tap/v2alpha/transport.proto

@ -67,4 +67,12 @@ message SocketTrace {
// Sequence of observed events.
repeated SocketEvent events = 2;
// Set to true if read events were truncated due to the :ref:`max_buffered_rx_bytes
// <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes>` setting.
bool read_truncated = 3;
// Set to true if write events were truncated due to the :ref:`max_buffered_tx_bytes
// <envoy_api_field_service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes>` setting.
bool write_truncated = 4;
}

Loading…
Cancel
Save