diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-05-14 19:30:21 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-05-14 19:39:58 +0300 |
commit | 063737e4f5158a52abde4388fa51a6a68ddcae51 (patch) | |
tree | b28bd10ed7bf80adc3264669cf1c2777510ee8cb /src/mod_irc_sql.erl | |
parent | Handle muc_register_nick success correctly (#2415) (diff) |
Optimize HTTP requests memory usage
Due to historical reasons, ejabberd loads the whole file/data
into the memory when serving an HTTP request. This is now improved:
1) For GET requests ejabberd uses sendfile(2) if the underlying
connection is HTTP and falls back to read/write loop with 64kb
buffer for HTTPS connections. This type of requests are handled
by mod_http_fileserver, mod_http_upload, ejabberd_captcha, etc
2) POST requests are now limited to 20Mb and are fully downloaded
into the memory for further processing (by ejabberd_web_admin,
mod_bosh, etc)
3) PUT requests (e.g. for mod_http_upload) are handled by read/write
loop with 64kb buffer
Diffstat (limited to 'src/mod_irc_sql.erl')
0 files changed, 0 insertions, 0 deletions