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
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
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