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

Socket Buffer Overflow (ENOBUFS) in recvfrom Syscall with go-libaudit #160

Open
raz74 opened this issue Jul 1, 2024 · 0 comments
Open

Comments

@raz74
Copy link

raz74 commented Jul 1, 2024

I'm using go-libaudit to receive data from a TCP socket using the recvfrom syscall. However, I'm encountering the ENOBUFS (No buffer space available) error in certain scenarios.

The issue occurs when the received data volume exceeds the default socket buffer size. I've tried increasing the buffer size using setsockoptInt(sock, SOL_SOCKET, SO_RCVBUF, newBufferSize), but the problem persists.
(i set the newBufferSize to the max size it can support = 416 *1024)

Ideally, go-libaudit should handle these situations more gracefully, perhaps by providing mechanisms for automatic buffer management or offering ways to handle buffer overflows programmatically.

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