]> granicus.if.org Git - libevent/commit
don't fail be_null_filter if bytes are copied
authorGreg Hazel <ghazel@gmail.com>
Wed, 21 Mar 2018 01:04:53 +0000 (18:04 -0700)
committerAzat Khuzhin <azat@libevent.org>
Sat, 2 Feb 2019 12:17:55 +0000 (15:17 +0300)
commitb92b07924df198312fc7e0f53f96d4057723967f
tree773540a9153ac4f187e469be6a9a88419fdaa670
parentebfac5179796a4f090e29ecb15c0008113dc55f3
don't fail be_null_filter if bytes are copied

Otherwise it will not reset timeouts for the IO, but other things should
still works correctly.

Also evbuffer_remove_buffer() could return 0, due to empty buffers, for
example during flushing bufferevent, so let's count this is BEV_OK too.

(cherry picked from commit 4ba48739673060baea581774992970fa46c2f813)
bufferevent_filter.c