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

Re: [Libevent-users] evbuffers and persistence



On Sat, Jun 15, 2019 at 2:47 AM Jan Danielsson
<jan.m.danielsson@xxxxxxxxx> wrote:
>
> Hello,
>
>    Is it safe to store the input and output evbuffers from a bufferevent
> (fetched using bufferevent_get_{input,output}()) in a long-lived
> context?  I.e. store the evbuffers in the bufferevent context and use
> them directly instead of always fetching the input/output evbuffers on
> each callback call.

Hi!

Yes, it is totally safe, it is initialized only in
bufferevent_socket_new() (or it's friends).
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.