zsocket icon indicating copy to clipboard operation
zsocket copied to clipboard

Interrupted system call

Open TomerElya opened this issue 4 years ago • 0 comments

I'm sending udp packets at an extremely fast pace. On the other end I'm listening using zsocket like so:

err = zs.Listen(func(frame *nettypes.Frame, frameLen uint16, capturedLen uint16) {
ln:= frameLen
mPay, mOff := frame.MACPayload(0)
ln -= mOff
udp := nettypes.UDPPacket(mPay)
udp.Bytes()
atomic.AddUint64(&packetCount, 1)
})
if err != nil {
    fmt.Printf("error:%v\n", err)
}

And after a couple seconds it crashes with "interrupted system call"

I'd love some guidance, if you may, on how to use it properly or clarification on what I'm doing wrong?

Thanks!

TomerElya avatar Jun 06 '21 15:06 TomerElya