[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] [PATCH] Fix filter bufferevent output reentrantness
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] [PATCH] Fix filter bufferevent output reentrantness
- From: Simon Perreault <sperreault@xxxxxxxx>
- Date: Sun, 28 Feb 2016 16:49:15 -0500
- Cc: Simon Perreault <sperreault@xxxxxxxx>
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Sun, 28 Feb 2016 16:49:26 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jive-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Z9iwkfa+sBKIBr/FFnTVfcwVPg2O5Eu3+8x4rDLXxUk=; b=xIP7FiO1w3pJRIJ0MtxSyhK7fLvOdyNlVsUPLCHaOru2ag7+xVt1U9+YDIidax/85I B/u268zD5BlAXZgrPANysjgFrRRJ9TJ3W2SlyHwcg08mJcTm0NYWfcVZgXfAvYh0FDvQ 18V7upBWPfB0tpYZT3H9tsW6gr2+5oe8KbM4SSIfCh358LaZgpwZti6A1lXX28GFCHj9 Epl8biLetYsMSb2K5yPl23wJ0BdcMBfApIzVSojjKU9wzSvvaZ1oBrOPeKV8SxoUaHnk uDOcIT241KvXCBd3usSLMO7ZljUcNBhNRgVyIT3UtiMFHJviO2sfCzDf/7BL4v8xvxQL COjQ==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Make the code do what the comment says it should do.
---
bufferevent_filter.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bufferevent_filter.c b/bufferevent_filter.c
index 6c3ffc4..5d5f992 100644
--- a/bufferevent_filter.c
+++ b/bufferevent_filter.c
@@ -345,7 +345,8 @@ be_filter_process_output(struct bufferevent_filtered *bevf,
/* disable the callback that calls this function
when the user adds to the output buffer. */
- evbuffer_cb_set_flags(bufev->output, bevf->outbuf_cb, 0);
+ evbuffer_cb_clear_flags(bufev->output, bevf->outbuf_cb,
+ EVBUFFER_CB_ENABLED);
do {
int processed = 0;
--
2.5.0
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.