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
+3 -2
View File
@@ -357,8 +357,9 @@ func http1EndHint(m *tcp.Message) bool {
if m.MissingChunk() {
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() {