From b01891fe1d48fc2ee7a0f39e671447195ada8177 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 13 Apr 2009 03:06:05 +0000 Subject: [PATCH] Make evbuffer_commit_space trigger callbacks. svn:r1163 --- buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index 65b8b5f9..9fc56cb1 100644 --- a/buffer.c +++ b/buffer.c @@ -476,8 +476,10 @@ evbuffer_commit_space(struct evbuffer *buf, size_t size) chain->off += size; buf->total_len += size; + buf->n_add_for_cb += size; - result = 0; + result = 0; + evbuffer_invoke_callbacks(buf); done: EVBUFFER_UNLOCK(buf, EVTHREAD_WRITE); return result; -- 2.40.0