Update capture.go (#1040)

Avoid Kafka message output.
This commit is contained in:
Leonid Bugaev
2022-01-07 15:04:54 +03:00
parent 7f01e49167
commit 3b399121ac
+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() {