From 86e5dcea19913aaf05c04a08fe7354806313c70d Mon Sep 17 00:00:00 2001 From: David Levanon Date: Wed, 13 Apr 2022 11:17:37 +0300 Subject: [PATCH] Tap TCP connections even if the handshake was missed (#988) Support long-living connections. This commit improves support for Linkerd which uses long-living connections. --- tap/tcp_stream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tap/tcp_stream.go b/tap/tcp_stream.go index c979c2991..47790bfcd 100644 --- a/tap/tcp_stream.go +++ b/tap/tcp_stream.go @@ -70,6 +70,9 @@ func (t *tcpStream) Accept(tcp *layers.TCP, ci gopacket.CaptureInfo, dir reassem if !accept { diagnose.InternalStats.RejectOpt++ } + + *start = true + return accept }