[Libevent-users] [PATCH] bev_ssl: Allow users to set allow_dirty_shutdown

2011-11-21 Thread Catalin Patulea
By default, allow_dirty_shutdown is 0, reporting TCP-close-before-SSL-close as BEV_EVENT_ERROR. But many https servers out there do dirty shutdowns, so clients need to be able to set this flag. This patch simply adds a getter/setter for the flag. Default behaviour of bev_ssl does not change. From

[Libevent-users] bev_ssl: Be more specific in event callbacks

2011-11-21 Thread Catalin Patulea
evhttp is very strict when checking the event flags while reading the response body: evhttp_error_cb(struct bufferevent *bufev, short what, void *arg) { case EVCON_READING_BODY: if (!req->chunked && req->ntoread < 0 && what == (BEV_EVENT_READING|BEV_EVE

[Libevent-users] evbuffer_add_file() completion callback

2011-11-21 Thread aaron
Hey all, I'm using evbuffer_add_file() to add a bunch of open file descriptors to a buffer event. It works good, until there are many connected clients requesting many different files. I'm using a technique similar to HTTP pipelining (not using HTTP though) so a workaround would be to have a queu