[Libevent-users] running libevent with multiple bases

2010-07-27 Thread Amy Hwang
I have an architecture that reads and writes to a large number of sockets, where the sockets are spread over a number of threads, each with its own libevent base. Each socket is "owned" by a single libevent base, and the bases don't interact with each other. I opted for this architecture rather tha

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

2010-07-27 Thread Mark Ellzey
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 suggestions. Thanks in advance! http.c|9 +

Re: [Libevent-users] Ability to shutdown() socket with bufferevents?

2010-07-27 Thread Corey Stup
> Right now there's no way to make a bufferevent call shutdown() itself, > but what if you have a write handler on the client bufferevent just > call shutdown() manually on the fd to send a FIN when the write buffer > is empty?  You can get the fd with bufferevent_get_fd(). How can I check to see i

[Libevent-users] Re: [Libevent-users] error: aggregate ‘evkeyvalq q uery’ has incomplete type and cannot be defined

2010-07-27 Thread Nick Mathewson
On Sun, Jul 25, 2010 at 11:12 AM, Mihai Draghicioiu wrote: > Hi guys. I'm trying to extract parameters from the url query, but i > can't seem to figure out why i'm getting this error. Here is the code: What version of libevent? What order are you including the headers in? -- Nick *

Re: [Libevent-users] Ability to shutdown() socket with bufferevents?

2010-07-27 Thread Nick Mathewson
On Tue, Jul 27, 2010 at 12:55 PM, Corey Stup wrote: > I'm needing the ability to shutdown(fd, 1) on a bufferevent managed > socket [created with bufferevent_socket_new() and > bufferevent_socket_connect()] as part of my protocol.   The flow of > which looks somethign like this: > > Client opens co

[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] Ability to shutdown() socket with bufferevents?

2010-07-27 Thread Corey Stup
I'm needing the ability to shutdown(fd, 1) on a bufferevent managed socket [created with bufferevent_socket_new() and bufferevent_socket_connect()] as part of my protocol. The flow of which looks somethign like this: Client opens connection to server Client sends data. Client closes the sending