On Sat, Jun 15, 2019 at 2:47 AM Jan Danielsson <[email protected]> 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 [email protected] with unsubscribe libevent-users in the body.
