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
{{ message }}
Repository navigation
Lots of connections causes Unix.select to fail with EINVAL #66
proxy: internal error, uncaught exception:
Unix.Unix_error(Unix.EINVAL, "select", "")
Raised by primitive operation at file "src/unix/lwt_engine.ml", line 371, characters 26-60
Called from file "src/unix/lwt_engine.ml", line 312, characters 8-39
Called from file "src/unix/lwt_main.ml", line 41, characters 8-82
It looks like even libev relies internally on select on OS X:
(libev) select: Invalid argument
I think we should switch to libuv as Windows is a first-class target via IOCP, it's used by node.js and they seem to know all the tricks. Apparently libuv started off as a wrapper around libev which also supported Windows via IOCP, but recently the libev dependency has been removed and it's now a standalone library.
It's probably worth starting with uwt initially since the author is the person who maintains the OCaml on Windows port we're using and hopefully the Windows support is therefore first-class.
Activity
djs55 commentedon Jun 20, 2016
It looks like even libev relies internally on
selecton OS X:I think we should switch to libuv as Windows is a first-class target via IOCP, it's used by node.js and they seem to know all the tricks. Apparently
libuvstarted off as a wrapper aroundlibevwhich also supported Windows via IOCP, but recently thelibevdependency has been removed and it's now a standalone library.There seem to be several incomplete bindings:
There's a discussion comparing the two here: https://www.reddit.com/r/ocaml/comments/2wop3h/ctypes_based_bindings_to_libuv/
It's probably worth starting with
uwtinitially since the author is the person who maintains the OCaml on Windows port we're using and hopefully the Windows support is therefore first-class.Merge pull request moby#66 from talex5/stat