Re: Getting timeout even though there is data available

2009-07-06 Thread Marc Lehmann
On Mon, Jul 06, 2009 at 01:04:14PM -0700, Eric Brown wrote: > I'm running libev 3.49 on OS X Leopard 10.5.7. I use libev in both my server (As a sidenote, I doubt that platform has the necessary timing accuracy you need). > In failure, the server sends its response 2-3ms later (according to its

Re: [patch] event_loopbreak()

2009-07-06 Thread Marc Lehmann
On Tue, Jul 07, 2009 at 12:22:16AM +0400, Antony Dovgal wrote: > I'd like to propose a patch adding support for event_loopbreak(), > event_base_loopbreak() and ev_break(): > http://dev.daylessday.org/diff/libev_event_loopbreak.diff hmm, you also add some (unexplained) functionality to ev.c - I

Re: [patch] event_loopbreak()

2009-07-06 Thread Marc Lehmann
On Tue, Jul 07, 2009 at 12:58:22AM +0400, Antony Dovgal wrote: > >> I didn't actually use or see libev until today, so bear with me if the > >> patch is wrong/incomplete. > > > > Does this accomplish something that ev_unloop() does not? > > I guess so - the event loop is aborted without proces

Re: [patch] event_loopbreak()

2009-07-06 Thread Antony Dovgal
On 07.07.2009 00:34, Brandon Black wrote: > On Mon, Jul 6, 2009 at 3:22 PM, Antony Dovgal wrote: >> Hello all. >> >> I'd like to propose a patch adding support for event_loopbreak(), >> event_base_loopbreak() and ev_break(): >> http://dev.daylessday.org/diff/libev_event_loopbreak.diff >> >> I didn

Re: [patch] event_loopbreak()

2009-07-06 Thread Brandon Black
On Mon, Jul 6, 2009 at 3:22 PM, Antony Dovgal wrote: > Hello all. > > I'd like to propose a patch adding support for event_loopbreak(), > event_base_loopbreak() and ev_break(): > http://dev.daylessday.org/diff/libev_event_loopbreak.diff > > I didn't actually use or see libev until today, so bear w

[patch] event_loopbreak()

2009-07-06 Thread Antony Dovgal
Hello all. I'd like to propose a patch adding support for event_loopbreak(), event_base_loopbreak() and ev_break(): http://dev.daylessday.org/diff/libev_event_loopbreak.diff I didn't actually use or see libev until today, so bear with me if the patch is wrong/incomplete. -- Wbr, Antony Dovga

Getting timeout even though there is data available

2009-07-06 Thread Eric Brown
I'm having a troubling problem. And I'm trying to decide whether I'm chasing a ghost or a real problem. I'm running libev 3.49 on OS X Leopard 10.5.7. I use libev in both my server and client. The server reads 1-2 k bytes and returns ~100 bytes within 2-3 ms. The client which connected, set async i