On Sun, Nov 11, 2007 at 04:42:41PM +0100, Chris Brody <[EMAIL PROTECTED]> wrote:
> I suspect there is a very strange error event if there is a small
> delay between write()/shutdown() and event_add()/event_dispatch().

Ok, if the patch indeed is correct, then it isn't (because it doesn't
range-check the fd, which is the real problem).

But the real issue is why kqueue returns errors to us for requests we
never made, this feels like quite the bug in kqueue (I hope you don't use
mac osx, I just found out that both poll and kqueue are broken and the
libevent test doesn'T detetc this brokenness on macosx).

> I tried adding a check of the fd, and this seems to work well. I must
> admit that I am no kqueue expert, but I hope this information is
> helpful. Possible patch below.

Could you make it crash again and send me the contents of "res" and
kqueue[i]? Its quite possible that I don't use qkueue right, or something
else goes bad. In which case ignoring the error would never give us the
chance to find out.

Thanks a lot!

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to