Skip to content

Inconsistent behavior Linux/Windows on UDP bind error #1336

@schlamar

Description

@schlamar

libuv closes the underlying socket on bind error on Linux (

uv__close(handle->io_watcher.fd);
) but not on Windows (
r = bind(handle->socket, addr, addrlen);
).

This means you get an error on Linux when closing the socket afterwards but not on Windows.

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