On Fri, Jun 17, 2011 at 05:11:09PM -0400, Cong <[email protected]> wrote:
> is called right away and being called about 60K+ times per second. Each
> "accept()" call sets the errno to EINVAL, since there's no connection. The

EINVAL means that you pass illegal arguments to accept (Error INValid
VALue), not that there are no connections. Most likely, you are not
passing in a listening socket but something else, and that else is ready
for reading, thus your callback is called.

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

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to