Re: [Libevent-users] Re: help with debugging

2010-10-29 Thread Mihai Draghicioiu
Ok, I think i've found a http bug/feature. This might be the cause for the crash described previously. Basically what happens is that the http event callback gets called with the evhttp_request pointer being null if there is a http error (like a dns timeout in my case). I just made the callback ret

Re: [Libevent-users] Proper socket shutdown.

2010-10-29 Thread Nick Mathewson
On Fri, Oct 29, 2010 at 3:47 PM, Kelly Brock wrote: > Ok, so figured out a way to do this and it seems clean and works with the > select based backend but not the iocp based backend.  Basically I just set > the watermark for write to 1 and 0 and set a flag for "shutting down write". > When I get t

RE: [Libevent-users] Proper socket shutdown.

2010-10-29 Thread Kelly Brock
Ok, so figured out a way to do this and it seems clean and works with the select based backend but not the iocp based backend. Basically I just set the watermark for write to 1 and 0 and set a flag for "shutting down write". When I get the write callback at this point, I just call the shutdown wri