Problem with select on windows [PATCH]

Marc Lehmann schmorp at
Fri Feb 4 02:05:13 CET 2011

On Thu, Feb 03, 2011 at 10:27:23PM +0100, Bert Belder <bertbelder at> wrote:
> This patch also fixed the test and nodejs, and I couldn't think of any
> remaining conceptual problem.
> So if there's still a problem we will have to find out the hard way :-)

Just keep them coming - it's nice to see somebody actively test the pure
win32 backend, which is something I rarely do.

> > has the advantage of moving the windows-specific code out of the loop.
> > now, if we could make some assumptions about the output ordering of the
> > fd set on windows we might even be able to make it simple and fast with
> > a special win32 backend.
> I'm afraid that I don't really understand what you're envisioning...

It's ok, and not very relevant. Right now, pure win32 is rather neglected, as
it's maintained on a "has to work" not a "has to be fast" basis.

With some effort, one could improve the handle => fd mapping (hashing...)
but if select would return handles in order they were passed in for
example it could be so much faster :)

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list