Re: [Libevent-users] SSL support in evhttp.h

2010-07-29 Thread Zhuang Yuyao
On Thu, Jul 29, 2010 at 11:34 PM, Nick Mathewson wrote: > > 1) Would you mind uploading this to the patch tracker at > https://sourceforge.net/tracker/?group_id=50884&atid=461324  ? > Because Libevent 2.0 is feature-frozen for now, I can't merge anything > for a while, and I wouldn't want to forge

Re: [Libevent-users] SSL support in evhttp.h

2010-07-29 Thread Niels Provos
On Thu, Jul 29, 2010 at 8:34 AM, Nick Mathewson wrote: > 2) Does this "callback to set the bufferevent" trick have other > realistic applications?  If the only use is getting https to work, we > might as well just hide the details from the user and provide an > interface to do https directly. At

[Libevent-users] Re: [Libevent-users] Re: [Libevent-users] Re: [Libev ent-users] error: aggregate ‘evkeyvalq query’ has incomp lete type and cannot be defined

2010-07-29 Thread Nick Mathewson
On Thu, Jul 29, 2010 at 4:02 AM, Mihai Draghicioiu wrote: > Thanks to your suggestion, i've fixed it by prepending #include > to the other libevent headers. Thanks! Ugh. That's what I suspected, but it really shouldn't be necessary. I've added a bug about it, targeting 2.1: https://sourceforge.

Re: [Libevent-users] Small patch for grabbing underlying event_base from an evhttp_request

2010-07-29 Thread Nick Mathewson
On Tue, Jul 27, 2010 at 3:34 PM, Mark Ellzey wrote: > Greetings, > > Attached is a small patch which allows a user to grab the underlying > event_base from an evhttp_request. I have patched this against the > current master on github. > > If there is a better way to do this, I am open to suggestio

Re: [Libevent-users] SSL support in evhttp.h

2010-07-29 Thread Nick Mathewson
On Wed, Jul 28, 2010 at 11:28 PM, Zhuang Yuyao wrote: > hi, > > here is my patch and sample code for libevent 2.0 to add ssl support to > evhttp. > the trick is to allow the caller to set bufev of struct evhttp_connection. > > Best regards, >  Zhuang Yuyao Thanks! Two quick questions: 1) Would

Re: [Libevent-users] lock question

2010-07-29 Thread Nick Mathewson
On Thu, Jul 29, 2010 at 4:23 AM, Avi Bab wrote: > > > Does writing to an output evbuffer (specifocally I use > evbuffer_add_reference) of a bufferevent attempt to acquire the event_base’s > lock? Usually not. It does acquire the bufferevent's lock. It *might* have to tell the bufferevent to sta

[Libevent-users] lock question

2010-07-29 Thread Avi Bab
Does writing to an output evbuffer (specifocally I use evbuffer_add_reference) of a bufferevent attempt to acquire the event_base's lock? I.e., if thread A calls evbuffer_add_reference(bufferevent_get_output(bev), data, data_len, cleanupfn, extra) - will it block while thread B that dispatches

[Libevent-users] Re: [Libevent-users] Re: [Libevent-users] error: agg regate ‘evkeyvalq query’ has incomplete type and cannot be defined

2010-07-29 Thread Mihai Draghicioiu
Thanks to your suggestion, i've fixed it by prepending #include to the other libevent headers. Thanks! On Wed, Jul 28, 2010 at 3:47 PM, Mihai Draghicioiu wrote: > 2.0.5-beta > > #include > #include > #include > #include > > thanks > > On Tue, Jul 27, 2010 at 9:28 PM, Nick Mathewson wrote: >