[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] evbuffer_add_file() file descriptor exhaustion experiment



On Mon, Nov 03, 2014 at 02:08:48AM +0300, Azat Khuzhin wrote:
> Also you could free some data from output buffers I guess, to release
> some fds, a simple patch for you sample attached:
>
> [...]
>
> +            evbuffer_unfreeze (ctx->evbuff_out, 1);
> +            assert(!evbuffer_drain (ctx->evbuff_out, evbuffer_get_length(ctx->evbuff_out)));

Thank you.

-- 
Marcin Szewczyk                       http://wodny.org
mailto:Marcin.Szewczyk@xxxxxxxxxx  <- remove b / usuÅ b
xmpp:wodny@xxxxxxxxx                  xmpp:wodny@xxxxxxxxxx
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.