-
Notifications
You must be signed in to change notification settings - Fork 82
Need Unix.socketpair_datagram #342
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Unix.socketpair takes a Unix.socket_type argument, allowing you to create a datagram socket. However, it still returns a stream socket. Likewise, as_socket always returns a stream socket.
In particular, a zero-length read for a datagram socket does not mean end-of-file (spotted while trying to change the datagram test in network.md to reproduce #340)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers