diff --git a/tap/tcp_reader.go b/tap/tcp_reader.go index 902a88f04..2541ab62b 100644 --- a/tap/tcp_reader.go +++ b/tap/tcp_reader.go @@ -55,7 +55,7 @@ func (reader *tcpReader) run(options *api.TrafficFilteringOptions, wg *sync.Wait reader.counterPair = reader.parent.counterPairs[i] b := bufio.NewReader(reader) err := extension.Dissector.Dissect(b, reader, options) - if err == nil || reader.parent.protocol != nil { + if err == nil || reader.isProtocolIdentified() { break } reader.exhaustBuffer = true