Update capture.go (#1040)

Avoid Kafka message output.
This commit is contained in:
旺汪
2022-01-07 15:03:25 +03:00
committed by GitHub
parent 86546f33ef
commit 4aacf73ef2
+2 -1
View File
@@ -358,7 +358,8 @@ func http1EndHint(m *tcp.Message) bool {
return false
}
return proto.HasFullPayload(m, m.PacketData()...)
req, res := http1StartHint(m.Packets()[0])
return proto.HasFullPayload(m, m.PacketData()...) && (req || res)
}
func (l *Listener) read() {