mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-24 21:23:33 +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) {
|
func (d dissecting) Dissect(b *bufio.Reader, isClient bool, tcpID *api.TcpID, emitter api.Emitter) {
|
||||||
for {
|
for {
|
||||||
if isClient {
|
if isClient {
|
||||||
ReadRequest(b, tcpID)
|
_, _, err := ReadRequest(b, tcpID)
|
||||||
|
if err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ReadResponse(b, tcpID, emitter)
|
err := ReadResponse(b, tcpID, emitter)
|
||||||
|
if err != nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user