[Libevent-users] Re: responses delayed while using evhttp

2012-06-20 Thread Julian Bui
I went ahead and implemented the three callback methods related to threads and used them and everything is working as expected now. The responses are being sent to the browser immediately when I call the method. There is no longer a problem here. I still would like to know a little about how the

[Libevent-users] responses delayed while using evhttp

2012-06-20 Thread Julian Bui
Hi all, I am having trouble sending HTTP replies/responses in a timely manner using evhttp. PROBLEM: If I call evhttp_send_reply in the gencb (callback that handles all requests), then my requests are sent out in a timely manner and everything is fine. However, I do some processing that will tak

Re: [Libevent-users] Shutting down the echo server

2012-06-20 Thread Nick Mathewson
On Wed, Jun 20, 2012 at 5:32 AM, Ben Short wrote: > Hi, > > I've used the echo server example to implement my own server. I call > theĀ event_base_dispatch in a new thread. > > Is there anyway to do an orderly shutdown of the event dispatcher? > > I've triedĀ event_base_loopbreak which returns 0 but

[Libevent-users] Shutting down the echo server

2012-06-20 Thread Ben Short
Hi, I've used the echo server example to implement my own server. I call the event_base_dispatch in a new thread. Is there anyway to do an orderly shutdown of the event dispatcher? I've tried event_base_loopbreak which returns 0 but the event_base_dispatch doesn't return. I'm using libevent 2.0