summaryrefslogtreecommitdiff
path: root/bufferevent_openssl.c
diff options
context:
space:
mode:
authorThuan Tran <thuan.tran@edgeware.tv>2023-05-15 10:18:38 +0700
committerAzat Khuzhin <azat@libevent.org>2023-05-16 21:11:54 +0200
commitef51444f439b922c8fb00c7ef3f8482b6400b6ea (patch)
tree38d371df82033c12c779dee83258b2fef53ce6b3 /bufferevent_openssl.c
parent4ab3242da1b5ae5d99ff2086df935057880ca9ff (diff)
downloadlibevent-ef51444f439b922c8fb00c7ef3f8482b6400b6ea.tar.gz
More SSL_read() to fill big buffer
Once SSL_read() only get max 16K bytes (one TLS record). In case of big buffer, should more SSL_read() to fill the buffer. Using sample https-client to measure max income MBit/s via nload tool. Note: set bufferevent_set_max_single_read() by 32K and add the chunk callback to read out each piece of data. The client sample do https request a data 900KB (the server don't use Transfer-Encoding: chunked) - With origin/master: max income is 2.26 MBit/s The chunk callback never get a piece of data > 16K. - With this PR: max income is 2.44 MBit/s The chunk callback can get some piece of data 32K or more.
Diffstat (limited to 'bufferevent_openssl.c')
0 files changed, 0 insertions, 0 deletions