Hello,
I'm wondering why there isn't a bufferevent_disable for the event_cb? I think
this'd be very useful in a multithreaded environment where you don't want the
bufferevent freed before its been processed in some other thread.
i.e, think of this:
readcb gets a full request->disables reads/writes, queues bev in a worker
queue->worker thread grabs bev, processes request, adds data to the write
buffer, enables writes. (one request per connection model).
Exposing the reference counter so we can increment the bev's refcount manually
would be a solution too.
Thanks!
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users in the body.