Skip to content

Fine-tune socket configuration #32

@wenkokke

Description

@wenkokke

We should probably set SO_KEEPALIVE. The fact that we haven't might explain the occasional resource vanished errors.

We should probably set SO_LINGER. This may help transmit messages that linger on shutdown.

While it isn't super necessary, given that we don't expect high-bandwidth control messages, we should probably explicitly set SO_RCVBUF.

We're currently simply closing the file descriptor associated with the socket, but we should probably use shutdown. If we don't using SO_LINGER won't have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions