ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
528 stars 67 forks source link

Net.listen hangs if the port is already in use #724

Closed ada2k closed 2 months ago

ada2k commented 2 months ago

If you open a netcat server, and then call Net.listen on the same port, the program will hang. It should error.

talex5 commented 2 months ago

It produces the error Exception: Unix.Unix_error(Unix.EADDRINUSE, "bind", "") for me.

ada2k commented 2 months ago

Yes, sorry was caused by a library holding up exceptions