EV_FD_TO_WIN32_HANDLE on Windows

Marc Lehmann schmorp at schmorp.de
Sun Mar 9 15:35:17 CET 2014


On Sat, Mar 08, 2014 at 06:05:05AM +0100, Mikkel Kroman <mk at uplink.io> wrote:
> Was this issue ever acknowledged or resolved?

Looking at it, the default value for EV_FD_TO_WIN32_HANDLE is
"_get_osfhandle (fd)", which is a function, so neither the assert nor the
_nhandle is part of libev, and consequently, the issue is not in libev,
but in the app that overrides EV_FD_TO_WIN32_HANDLE and/or _get_osfhandle.

If the original report meant that the assert is not in that line, but
somewhere in the libc sources - my copy of the libc sources do not have
this assert, but maybe the original poster simply forgot to increase the
filehandle limit: some libcs on windows only supports 32 file descriptors
or so. The "WIN32 PLATFORM LIMITATIONS AND WORKAROUNDS" shows how to
increase this limit (up to 2048, the maximum number of fds that windows
supports).

However, even the oldest libcs have a default limit of 64, so if it is
indeed as low as 32, then somebody probably decreased it somewhere.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list