Skip to content

Don't block UDP on ARP #53

@Felix-El

Description

@Felix-El

I find it problematic to run a busy-loop while waiting for transmission or timeout at the end of UdpSocket::send().
My expectation would be that execution can continue and the next attempt to send data could return WouldBlock.

I'm aware this way we probably lose the ability to tell it timed out at all but is nothing that I count on as UDP is not
reliable anyway. Also in POSIX OS you get this kind of feedback only by special out-of-band message channel (recvmsg manpage).

Unfortunately, this causes API to change somewhat.

What are your thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions