picos icon indicating copy to clipboard operation
picos copied to clipboard

`Unix.socketpair` fails occasionally on Windows

Open polytypic opened this issue 1 year ago • 1 comments

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.

polytypic avatar Sep 03 '24 09:09 polytypic