You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to work around Unix.socketpair issue on Win32
`Unix.socketpair` occasionally fails on Windows:
```diff
--- 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", "")
]} *)
```
This introduces a work around to retry `Unix.sockepair` a few times on Win32
when the `EADDRINUSE` error is raised. We shuld remove the workaround once the
root issue is fixed.
0 commit comments