Re: [Libevent-users] Asynchronous writes in the event loop model

2012-02-06 Thread Mark Heily
On 02/06/2012 04:46 PM, Adrian Chadd wrote: Hi, the standard trick: * designate one thread as "signals here" and block signals on all other threads; * use pipes for sending signals between threads (ie, to wake them up); * wish that kqueue and similar methods were portable. The kqueue API has

Re: [Libevent-users] Asynchronous writes in the event loop model

2012-02-06 Thread William Ahern
On Mon, Feb 06, 2012 at 01:46:59PM -0800, Adrian Chadd wrote: > Hi, > > the standard trick: > > * designate one thread as "signals here" and block signals on all other > threads; > * use pipes for sending signals between threads (ie, to wake them up); > * wish that kqueue and similar methods wer

Re: [Libevent-users] Asynchronous writes in the event loop model

2012-02-06 Thread Adrian Chadd
Hi, the standard trick: * designate one thread as "signals here" and block signals on all other threads; * use pipes for sending signals between threads (ie, to wake them up); * wish that kqueue and similar methods were portable. adrian *

Re: [Libevent-users] Asynchronous writes in the event loop model

2012-02-06 Thread Frank Schoep
On 1 feb 2012, at 23:31, Nick Mathewson wrote: > … [ questions about POSIX signals and pthreads ] … > … > Sadly, this whole business is a huge pile of gunk. Thanks for the epic reply, Nick. I did some additional research before diving into my POSIX signal plan and it indeed looks like a huge mes

Re: [Libevent-users] PATCH: bufferevent_openssl consider_read doesn't drain underlying BE in all cases

2012-02-06 Thread Nick Mathewson
On Mon, Dec 19, 2011 at 11:00 PM, Mark Ellzey wrote: > On Mon, Dec 19, 2011 at 09:57:08PM -0500, Nick Mathewson wrote: >> I agree with the part of your fix where we don't ignore the extra data >> whose presence is indicated by a nonzero  SSL_pending. >> >> But I think these fixes all have some pro