Commit graph

62 commits

Author SHA1 Message Date
Kim Alvefur
b395681f11 mod_c2s: Set a default value for c2s_timeout (fixes #1036) 2017-11-10 07:11:03 +01:00
Kim Alvefur
989c0783cb Merge 0.9->0.10 2017-09-14 02:47:40 +02:00
Kim Alvefur
12cdea49b3 mod_c2s: Iterate over child tags instead of child nodes in stream error (fixes traceback from #987) 2017-09-13 18:18:57 +02:00
Kim Alvefur
73b75571e6 core.usermanager, various modules: Disconnect other resources on password change (thanks waqas) (fixes #512) 2017-07-28 13:15:29 +02:00
Kim Alvefur
7e8dcd944e mod_c2s: Rename unused loop variable to _ [luacheck] 2017-03-06 15:24:44 +01:00
Kim Alvefur
71d437db39 mod_c2s: Rename variable no avoid name clash [luacheck] 2017-03-06 15:24:33 +01:00
Kim Alvefur
befdc64576 mod_c2s, mod_s2s: Remove comment that no longer applies since 946871f6e3c8 2017-01-25 11:18:00 +01:00
Kim Alvefur
bdeb5cc9c5 mod_c2s: Clarify that there were no *stream* features to offer 2017-01-25 10:47:31 +01:00
Kim Alvefur
522f448b35 mod_c2s, mod_s2s: Switch connection counting to 'amount' type and enumerate once per statistics interval 2016-09-12 15:01:16 +02:00
Kim Alvefur
4308f867bb mod_c2s: Just destroy the session when it has no connection (see #641) 2016-04-03 15:18:21 +02:00
Kim Alvefur
89a474d458 mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590) 2016-03-02 16:28:11 +01:00
Kim Alvefur
1875b4a83d mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601) 2016-01-26 00:28:07 +01:00
Kim Alvefur
8631e529ba mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open 2016-08-07 20:51:34 +02:00
Kim Alvefur
0c9ea08015 mod_c2s: Fix whitespace (why does it keep getting messed up?) 2016-08-07 20:50:56 +02:00
Kim Alvefur
ddccdcd00d mod_c2s, mod_s2s: Bootstrap connection count statistic on module load 2016-07-07 18:48:58 +02:00
Kim Alvefur
5e64753929 Merge 0.9->0.10 2016-04-03 15:52:40 +02:00
Kim Alvefur
13099c75ec mod_c2s: Remove use of util.async 2016-03-17 12:47:24 +01:00
Kim Alvefur
70a7adc1c1 Merge 0.9->0.10 2016-03-02 16:32:37 +01:00
Kim Alvefur
ab4c6bee84 Merge 0.9->0.10 2016-01-26 14:15:00 +01:00
Kim Alvefur
7dda205176 mod_c2s, mod_s2s: Close incoming connections if there are no features to offer on incomplete streams (fixes #285) 2015-09-24 20:05:23 +02:00
Kim Alvefur
48652fb9d3 mod_c2s, mod_s2s: Collect statistics on number of connections 2015-04-26 00:06:11 +02:00
Kim Alvefur
c80b30a71c Merge 0.9->0.10 2014-09-02 22:33:11 +02:00
Matthew Wild
899b6d53ae net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent) 2014-08-29 11:54:34 +01:00
Matthew Wild
878efeecd5 Merge 0.9->0.10 2014-08-28 09:23:24 +01:00
Matthew Wild
933bb5a869 mod_c2s, mod_s2s: Log received invalid stream headers 2014-08-23 09:29:17 +01:00
Kim Alvefur
57940a8351 mod_c2s: Fix traceback if c2s stream sent to component 2014-05-10 02:12:51 +02:00
Kim Alvefur
e06966ee43 mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream 2014-04-10 13:13:07 +02:00
Florian Zeitz
c5c7ef5b0f mod_c2s: Break out stream opening into a separate function 2014-01-31 12:01:12 +01:00
Kim Alvefur
5178a1e79f mod_c2s, mod_s2s: Set session.encrypted as session.secure does not allways mean encrypted (eg consider_bosh_secure) 2013-10-07 12:43:00 +02:00
Kim Alvefur
0c39eb02b9 mod_c2s: Move another log message to debug level 2013-08-14 15:38:56 +02:00
Kim Alvefur
938d568ac4 mod_c2s, mod_s2s: Log cipher and encryption info in a more compact and (hopefully) less confusing way 2013-08-14 15:00:36 +02:00
Matthew Wild
e0216573ab mod_c2s: Port coroutine code to util.async 2013-08-11 14:46:27 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
5383602429 mod_c2s: Add session:sleep() and session:wake() to pause a session (e.g. while waiting for an external event). Needs a gallon or two of testing. 2013-08-09 11:10:22 +01:00
Kim Alvefur
0c6c0e9c29 mod_c2s, mod_s2s: Log a message that stream encryption has been enabled with some details 2013-08-02 15:12:24 +02:00
Kim Alvefur
0f421f9b7c Merge 0.9->trunk 2013-07-24 21:50:38 +02:00
Kim Alvefur
aa15ed7020 mod_c2s: Change default of tcp_keepalives to true, and make it individually configurable through c2s_tcp_keepalives 2013-07-24 15:28:36 +02:00
Matthew Wild
cab180216b mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now) 2013-07-15 11:44:49 +01:00
Kim Alvefur
4c9866805e mod_c2s, mod_s2s: Fire an event on read timeouts 2013-06-11 21:36:15 +02:00
Kim Alvefur
b6ecf01333 mod_c2s: Become a shared module and allow being disabled on some virtualhosts 2013-06-11 21:18:51 +02:00
Kim Alvefur
8d85647c37 mod_c2s, mod_c2s: Send a whitespace on read timeout, to prod TCP into detecting if the connection died 2013-05-30 14:32:40 +02:00
Kim Alvefur
dd56030a23 mod_c2s: Fix session:close() when a stanza is passed as reason 2013-05-10 22:29:03 +02:00
Kim Alvefur
b50dc4174b mod_c2s: Refactor <stream:error> building to allways tostring() it and only call send once 2013-04-25 17:50:22 +02:00
Matthew Wild
4602591c38 mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured 2013-04-22 12:35:52 +01:00
Kim Alvefur
27dc3a5b9a mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals 2013-03-23 01:27:16 +01:00
Kim Alvefur
3e2a8fbe1c prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins 2012-12-28 14:33:47 +01:00
Kim Alvefur
233b38c3b0 mod_c2s: Check if TLS compression is used 2012-12-09 11:50:09 +01:00
Waqas Hussain
d9d38ef125 mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item(). 2012-09-12 22:22:31 +05:00
Kim Alvefur
1e65e68cac mod_c2s: When a user gets deleted, drop all their sessions 2012-08-25 01:28:38 +02:00
Kim Alvefur
9114e88ee0 mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. 2012-07-26 04:33:17 +02:00