picos
picos copied to clipboard
`Unix.socketpair` fails occasionally on Windows
Tests, such as this example, using Unix.socketpair occasionally fail on Windows:
--- a/_build/default/lib/picos_io/picos_io.mli
+++ b/_build/default/lib/picos_io/.mdx/picos_io.mli.corrected
@@ -753,7 +753,5 @@ end
send_string "Hello, world!";
send_string "POSIX with OCaml";
end
- Hello, world!
- POSIX with OCaml
- - : unit = ()
+ Exception: Unix.Unix_error(Unix.EADDRINUSE, "socketpair", "")
]} *)
Looking at the documentation of socketpair, the EADDRINUSE error is not mentioned.