Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupted system call #17

Open
TomerElya opened this issue Jun 6, 2021 · 0 comments
Open

Interrupted system call #17

TomerElya opened this issue Jun 6, 2021 · 0 comments

Comments

@TomerElya
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant