mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-23 20:49:26 +00:00
Fix an infinite loop in Kafka
This commit is contained in:
parent
674041f014
commit
c1dee83833
@ -38,9 +38,15 @@ func (d dissecting) Ping() {
|
||||
func (d dissecting) Dissect(b *bufio.Reader, isClient bool, tcpID *api.TcpID, emitter api.Emitter) {
|
||||
for {
|
||||
if isClient {
|
||||
ReadRequest(b, tcpID)
|
||||
_, _, err := ReadRequest(b, tcpID)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
} else {
|
||||
ReadResponse(b, tcpID, emitter)
|
||||
err := ReadResponse(b, tcpID, emitter)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user