24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-22 22:23:42 +02:00
xmpp.chapril.org-ejabberd/src
Janusz Dziemidowicz c4f9a050c9 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.
2011-09-25 00:23:31 +02:00
..
ejabberd_zlib Change argument of open_port/2 to string in order to shut up the dialyzer 2011-09-05 15:28:14 +10:00
eldap New option support: ldap_deref_aliases (EJAB-639) 2011-09-19 16:58:55 +10:00
mod_irc Remove useless case clauses 2011-09-05 16:48:04 +10:00
mod_muc Fix mod_muc_log crash when first log entry is room being destroyed (EJAB-1499) 2011-09-23 17:00:50 +02:00
mod_proxy65 update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_pubsub fix broken PEP after EJAB-1498 (thanks to Karim Gemayel) 2011-09-22 20:51:59 +02:00
msgs One more fix 2011-07-11 12:55:38 +02:00
odbc Fix ODBC account counting (thanks to Artem Sh)(EJAB-1491) 2011-08-16 19:33:22 +02:00
pam update copyright up to 2011 2011-02-14 13:50:55 +01:00
stringprep Change argument of open_port/2 to string in order to shut up the dialyzer 2011-09-05 15:28:14 +10:00
stun update copyright up to 2011 2011-02-14 13:50:55 +01:00
tls Decrease CPU usage caused by tls:send with large data. 2011-09-25 00:23:31 +02:00
web added svg mimetype to default content types (thanks to Markus Kohlhase) 2011-09-20 16:50:22 +02:00
win32 Rename erlang log file sasl.log to erlang.log (EJAB-783) 2009-08-31 08:41:56 +00:00
acinclude.m4 Rename aclocal.m4 to acinclude.m4 (thanks to Andreas Köhler) 2010-10-15 16:29:47 +02:00
acl.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
adhoc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
adhoc.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
cache_tab_sup.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
cache_tab.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
config.guess autodetect compilation parameters for Mac OS X Snow Leopard (EJAB-1056) 2009-10-12 12:01:54 +00:00
config.sub autodetect compilation parameters for Mac OS X Snow Leopard (EJAB-1056) 2009-10-12 12:01:54 +00:00
configure Update the 'configure' script with: aclocal; autoconf 2011-05-31 21:03:45 +02:00
configure.ac Make MD2 autodetected (EJAB-1285) 2010-08-07 22:04:57 +10:00
configure.bat * src/translate.erl: Search translations directory in priv_dir 2004-04-27 20:28:23 +00:00
configure.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
cyrsasl_anonymous.erl Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196) 2011-08-16 00:25:03 +02:00
cyrsasl_digest.erl Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196) 2011-08-16 00:25:03 +02:00
cyrsasl_plain.erl Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196) 2011-08-16 00:25:03 +02:00
cyrsasl_scram.erl Fix SCRAM to support attributes which value has only one character 2011-09-05 23:21:38 +02:00
cyrsasl.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
dynamic_compile.erl * src/ejabberd_loglevel.erl: Use dynamic_compile instead of 2009-05-06 14:51:51 +00:00
ejabberd_admin.erl No need to explicitly skip old useless tables, simply fix keep_tables 2011-09-14 12:15:53 +02:00
ejabberd_app.erl Change argument of open_port/2 to string in order to shut up the dialyzer 2011-09-05 15:28:14 +10:00
ejabberd_auth_anonymous.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd_auth_external.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd_auth_internal.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd_auth_ldap.erl New option support: ldap_deref_aliases (EJAB-639) 2011-09-19 16:58:55 +10:00
ejabberd_auth_odbc.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd_auth_pam.erl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd_auth.erl ejabberd_auth:remove_user/2 always returns ok 2011-09-05 15:39:55 +10:00
ejabberd_c2s_config.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_c2s.erl New option resource_conflict defines server action (thanks to Lee Boynton)(EJAB-650) 2011-08-17 19:44:39 +02:00
ejabberd_captcha.erl When checking captcha setup, try to generate image only when captcha is enabled in order to avoid logging of confusing error 2011-05-18 12:48:02 +10:00
ejabberd_check.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_commands.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_commands.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_config.erl Cut the string when calling halt/1 2011-05-30 17:11:32 +02:00
ejabberd_config.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_ctl.erl Fix dialyzer warnings 2011-09-17 10:48:52 +10:00
ejabberd_ctl.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_frontend_socket.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_hooks.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_listener.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_local.erl New route_iq/5 accepting Timeout (thanks to Edwin Fine)(EJAB-1398) 2011-02-21 13:44:39 +01:00
ejabberd_logger_h.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_loglevel.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_node_groups.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_piefxis.erl Support to import XML files without password-format attribute 2011-09-08 11:41:45 +02:00
ejabberd_rdbms.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_receiver.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_router.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_s2s_in.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_s2s_out.erl Reorganize the code to shut up the dialyzer 2011-09-05 21:27:31 +10:00
ejabberd_s2s.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_service.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_sm.erl New option resource_conflict defines server action (thanks to Lee Boynton)(EJAB-650) 2011-08-17 19:44:39 +02:00
ejabberd_socket.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_sup.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_system_monitor.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_tmp_sup.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd_update.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd.app Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196) 2011-08-16 00:25:03 +02:00
ejabberd.cfg.example Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
ejabberd.hrl Fix and improve support for SCRAM auth method (EJAB-1196) 2011-08-16 00:26:49 +02:00
ejabberd.init.template Several fixes and improvements in ejabberd.init.template 2011-05-24 23:46:44 +02:00
ejabberdctl.cfg.example Comment in the cfg file the correct node name used in ejabberdctl.template 2011-06-28 00:31:13 +02:00
ejabberdctl.template ejabberdctl doesn't support parameters with blankspaces (EJAB-1458) 2011-09-22 16:18:04 +02:00
ejd2odbc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
expat_erl.c Fix compilation in Windows (thanks to flyingwow99) 2011-06-07 13:27:00 +02:00
extauth.erl If extauth script crashes, ejabberd should restart it (EJAB-1428) 2011-04-11 21:27:19 +02:00
gen_iq_handler.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
gen_mod.erl Cut the string when calling halt/1 2011-05-30 17:11:32 +02:00
idna.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
inetrc * src/ejabberdctl.template: Create logs_dir if doesn't exist. New 2008-01-01 10:53:05 +00:00
install-sh autodetect compilation parameters for Mac OS X Snow Leopard (EJAB-1056) 2009-10-12 12:01:54 +00:00
jd2ejd.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
jlib.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
jlib.hrl Support XEP-0191 Simple Communications Blocking (thanks to Stephan Maka)(EJAB-695) 2011-05-27 11:47:22 +02:00
Makefile.in Fix a recent commit about "Set script as executable" 2011-05-30 11:46:13 +02:00
Makefile.win32 fix Makefile.win32 for including stun (thanks to neustradamus) 2009-09-23 21:11:21 +00:00
mod_adhoc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_announce.erl Replace VVALUEL macro with function in order to shut up the dialyzer 2011-09-05 17:09:36 +10:00
mod_blocking.erl Support XEP-0191 Simple Communications Blocking (thanks to Stephan Maka)(EJAB-695) 2011-05-27 11:47:22 +02:00
mod_caps.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_configure.erl Remove useless case clause 2011-09-05 17:12:45 +10:00
mod_configure2.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_disco.erl Use #roster record instead of direct tuple 2011-07-13 17:06:17 +02:00
mod_echo.erl Export do_client_version/3 in order to shut up the dialyzer 2011-09-05 16:52:36 +10:00
mod_ip_blacklist.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_last_odbc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_last.erl A user can query his own Last activity, even if not subscribed to oneself 2011-05-26 12:50:40 +02:00
mod_offline_odbc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_offline.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_ping.erl Add comment about ping requests sent even to non-supporting clients 2011-08-04 18:29:13 +02:00
mod_pres_counter.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_privacy_odbc.erl Escape user input in mod_privacy_odbc (EJAB-1442) 2011-04-26 20:57:48 +02:00
mod_privacy.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_privacy.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_private_odbc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_private.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_register.erl mod_register Access now also controls account unregistrations 2011-04-26 22:55:04 +02:00
mod_roster_odbc.erl handle case when roster version on DB is enabled but version is not found. 2011-08-05 12:21:24 -03:00
mod_roster.erl Reorganize the push_item function, and handle version not_found (EJAB-1420) 2011-04-29 20:34:08 +02:00
mod_roster.hrl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_service_log.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_shared_roster_ldap.erl New option support: ldap_deref_aliases (EJAB-639) 2011-09-19 16:58:55 +10:00
mod_shared_roster.erl Add support for @online@ to add_user_to_group 2011-09-20 16:44:51 +02:00
mod_sic.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_stats.erl Remove useless case clause 2011-09-05 16:47:18 +10:00
mod_time.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_vcard_ldap.erl New option support: ldap_deref_aliases (EJAB-639) 2011-09-19 16:58:55 +10:00
mod_vcard_odbc.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_vcard_xupdate.erl Automatic vcard avatar addition in presence (thanks to Igor Goryachev)(EJAB-208) 2010-04-27 12:33:56 +02:00
mod_vcard.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
mod_version.erl Minor mod_version bugfix 2011-07-03 18:58:07 +03:00
p1_fsm.erl Fix dialyzer warnings 2011-09-15 16:59:45 +10:00
p1_mnesia.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
p1_prof.erl Take into consideration internal queue length when sorting processes queues 2011-05-05 16:08:28 +10:00
pg2_backport.erl Tweak pg2_backport.erl to work with Erlang older than R13A (EJAB-1349) 2011-02-22 23:44:45 +01:00
randoms.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
scram.erl Fix SCRAM auth of uppercase passwords (EJAB-1196) 2011-09-05 12:50:24 +02:00
sha.erl Change argument of open_port/2 to string in order to shut up the dialyzer 2011-09-05 15:28:14 +10:00
shaper.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
translate.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
treap.erl Get rid of useless function clause 2011-09-05 15:13:54 +10:00
win32_dns.erl update copyright up to 2011 2011-02-14 13:50:55 +01:00
xml_stream.erl Change argument of open_port/2 to string in order to shut up the dialyzer 2011-09-05 15:28:14 +10:00
xml.c Make xml.c correctly compiles on R14A (EJAB-1288) 2010-08-07 21:06:50 +10:00
xml.erl Escape iolist correctly when NIFs are disabled (EJAB-1462) 2011-06-11 23:28:10 +10:00
XmppAddr.asn1 * src/ejabberd_s2s_in.erl: Support for dNSName certificate field 2005-11-17 05:29:33 +00:00