Skip to content

SO_RCVLOWAT code in lib/socket.c? #163

Open
@daurnimator

Description

@daurnimator

In so_peek, SO_RCVLOWAT is used when there is currently no data and the fd needs to be poll()'d.

From socket(7) man page:

The select(2) and poll(2) system calls currently do not respect the SO_RCVLOWAT setting on Linux, and mark a socket readable when even a single byte of data is available. A subsequent read from the socket will block until SO_RCVLOWAT bytes are available.

Are there platforms where this actually works?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions