]> granicus.if.org Git - libevent/commit
Maximum evbuffer read configuration
authorAzat Khuzhin <azat@libevent.org>
Sat, 16 Mar 2019 14:09:51 +0000 (17:09 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 16 Mar 2019 14:30:15 +0000 (17:30 +0300)
commit8c2001e92a6615cc7b4efc8e33cff58c28effd30
treeafb0e63e08e7441310f37c9ffac986214f451c78
parent6995b9a864c16bcb84ea0f7a2cf856143020316b
Maximum evbuffer read configuration

Before this patch evbuffer always reads 4K at a time, while this is fine
most of time you can find an example when this will decrease throughput.

So add an API to change default limit:
- evbuffer_set_max_read()
- evbuffer_get_max_read()

And a notice that most of time default is sane.
buffer.c
evbuffer-internal.h
include/event2/buffer.h