25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00
xmpp.chapril.org-ejabberd/include
Evgeniy Khramtsov 063737e4f5 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
2018-05-14 19:39:58 +03:00
..
adhoc.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
bosh.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_acme.hrl Explain what is needed for the acme configuration and other small changes 2017-11-14 14:12:33 +02:00
ejabberd_auth.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_commands.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_config.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_ctl.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_http.hrl Optimize HTTP requests memory usage 2018-05-14 19:39:58 +03:00
ejabberd_oauth.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_router.hrl Use cache in front of Redis/SQL RAM backends 2017-04-14 13:57:52 +03:00
ejabberd_sm.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_sql_pt.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd_web_admin.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ejabberd.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
eldap.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
ELDAPv3.hrl Do not generate LDAP's ASN.1 code when compiling ejabberd. 2013-06-22 03:27:59 +10:00
http_bind.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
jlib.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
logger.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_announce.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_caps.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_carboncopy.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_irc.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_last.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_mam.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_muc_room.hrl Let a MUC room to route presences from its bare JID 2018-02-12 17:37:36 +03:00
mod_muc.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_offline.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_privacy.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_private.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_proxy65.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_push.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_roster.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_shared_roster.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_vcard_xupdate.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
mod_vcard.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
pubsub.hrl Update copyright dates in header files 2018-01-06 14:01:45 +03:00
translate.hrl Replace translate:mark/1 with ?T() macro 2017-09-24 12:42:35 +03:00