Re: [Libevent-users] HTTP and thread safety

2011-02-02 Thread Marco
Thanks Nick, I'll check again myself in the source. Marco On Wed, Feb 2, 2011 at 9:49 AM, Nick Mathewson wrote: > On Mon, Jan 31, 2011 at 12:42 PM, Marco wrote: > > Hi everyone, simple question.. > > > > 2 threads, T1 is in the event loop, T2 does some other things

[Libevent-users] HTTP and thread safety

2011-01-31 Thread Marco
this thread safe? Or does any of the functions invoked by T2 modify the event base (owned by T1)? Marco

[Libevent-users] Re: Corrupted http request flags?

2010-07-28 Thread Marco
f (strlen(req->uri) > 0 && req->uri[0] != '/') req->flags |= EVHTTP_PROXY_REQUEST; By asking for '/foo' instead of 'foo' the connection is indeed kept alive. M On Tue, Jul 27, 2010 at 10:27 AM, Marco wrote: > I'm trying to understand why a simple http s

[Libevent-users] Corrupted http request flags?

2010-07-27 Thread Marco
I'm trying to understand why a simple http server closes the connection after each answer, even if i set the keepalive header. I might have found a bug, but you guys should check.. On the client side, i generate simple requests as following: r1 = evhttp_request_new(client_handle_response, NULL);

[Libevent-users] Small error in evhttp.h documentation

2010-07-26 Thread Marco
I think there's a small error in the description of evhttp_bind_socket, evhttp.h (using 1.4.10-stable): [...] * @return a newly allocated evhttp struct [...] int evhttp_bind_socket(struct evhttp *http, const char *address, u_short port); While the correct @return should be: * @return 0 on succe