aboutsummaryrefslogtreecommitdiff
path: root/doc/release_notes_3.0.0.txt
diff options
context:
space:
mode:
authorJanusz Dziemidowicz <rraptorr@nails.eu.org>2011-09-20 21:20:51 +0200
committerBadlop <badlop@process-one.net>2011-09-25 00:56:15 +0200
commit3fd5513549878e0bb586134d64ad82db5f59e1ee (patch)
treeb963e84ce3cb8266639552853758194876191e52 /doc/release_notes_3.0.0.txt
parentFix mod_muc_log crash when first log entry is room being destroyed (EJAB-1499) (diff)
Decrease CPU usage caused by tls:send with large data.
Sending one large chunk of data with tls:send eats lots of CPU power and blocks whole Erlang emulator. This is caused by the fact that encrypted output is read from memory BIO in 1k chunks. Memory BIO, after reading data, shifts the remaining part. If large chunks of data (few MB) is sent and then read in 1k chunks, then a _lot_ of shifting is performed eating CPU. The solution is to simply allocate binary of the needed size (amount of data in memory BIO can be retrieved with BIO_ctrl_pending) and then issue only one read that reads the whole data.
Diffstat (limited to 'doc/release_notes_3.0.0.txt')
0 files changed, 0 insertions, 0 deletions