elastic / elastic/go-libaudit

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

Open
#160 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
162
Forks
74
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.