Skip to content

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

@raz74

Description

@raz74

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions