Re: [Libevent-users] evhttp_connection_set_closecb

2009-08-26 Thread Phoenix Sol
On Wed, Aug 26, 2009 at 2:22 PM, Phoenix Sol wrote: > Hi, I'm using evhttp in 1.4.12-stable. I'm not seeing callbacks fired for > the 'connection close' event. > Is this event for incoming connections, outgoing connections, or both? > > ( I read Marek Majko

[Libevent-users] evhttp_connection_set_closecb

2009-08-26 Thread Phoenix Sol
Hi, I'm using evhttp in 1.4.12-stable. I'm not seeing callbacks fired for the 'connection close' event. Is this event for incoming connections, outgoing connections, or both? ( I read Marek Majkowski's post about this callback not working, but I wasn't subscribed to the list, and I'm too lazy to t

Re: [Libevent-users] bufferevents and multiple threads

2009-04-07 Thread Phoenix Sol
Julian: for http streaming, why not use evhttp_send_reply_start, evhttp_send_reply_chunk, and evhttp_send_reply_end ? On Tue, Apr 7, 2009 at 5:36 AM, Julian Scheel wrote: > Am Dienstag, 7. April 2009 13:48:58 schrieb Larry Lewis: > > I initially made the same mistake. The problem is the other

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Phoenix Sol
n Mon, Apr 06, 2009 at 01:38:44PM -0700, Phoenix Sol wrote: > > Thanks, Nick. > > > > Is zero-copy possible at all with the current libevent? (I already > assumed > > it wouldn't work with bufferevent) > > If you mean, just using the regular event_base interfac

Re: [Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Phoenix Sol
Thanks, Nick. Is zero-copy possible at all with the current libevent? (I already assumed it wouldn't work with bufferevent) On Mon, Apr 6, 2009 at 11:17 AM, Nick Mathewson wrote: > On Mon, Apr 06, 2009 at 11:12:10AM -0700, Phoenix Sol wrote: > > Is it alright to call evbuffer_r

[Libevent-users] accessing a bufferevent's evbuffer directly

2009-04-06 Thread Phoenix Sol
Is it alright to call evbuffer_readline() on a buffevent's evbuffer? ( Or any of the other evbuffer functions for that matter? ) I'm wrapping bufferevents with a python 'socket module' interface, and must accomadate a 'fileobject' interface, which implements readline. Also, I want to keep copying