pcapgo passing errors as text instead of value
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
pcapgo/capture.go
`readOne` and `ReadPacketData` are passing error as text instead of underlying error value.
As a result `packetsToChannel` in packet.go can't handle (*EthernetHandle).fd closed handle case, falling into infinite loop. This situation leads to goroutine/channel/mem leak.
Contributor guide
Assessment
This issue has not been assessed yet.