Commit graph

145 commits

Author SHA1 Message Date
Kim Alvefur
c2ce30433a mod_dialback: Remove d-w-d feature
Backs out 1d0862814bfc and 2fdd71b08126

Largely unused, undocumented and did not have enough tests to provide
confidence in its correct operation.
2021-05-12 17:22:02 +02:00
Matthew Wild
4c4e764e23 mod_c2s, mod_s2s, mod_component, mod_bosh, mod_websockets: Set default stanza size limits
c2s/bosh/ws streams will default to 256KB, s2s and components to 512KB.

These values are aligned with ejabberd's default settings, which should reduce
issues related to inconsistent size limits between servers on the XMPP network.

The previous default (10MB) is excessive for any production server, and allows
significant memory usage by even unauthenticated sessions.
2021-05-07 17:03:49 +01:00
Kim Alvefur
db3c36c69d mod_s2s: Fix copypaste mistake in b3ae48362f78
Directly sending something over s2s needs to use sends2s() but the code
copied from mod_c2s had .send()
2020-12-16 08:50:20 +01:00
Kim Alvefur
f4c821cc4a mod_s2s: Prevent whitespace keepalives the stream has been opened
This will result in the stream timing out instead, which is probably
correct if the stream has not been opened yet.

This was already done for c2s in e69df8093387

Thanks Ge0rG
2020-12-10 11:53:10 +01:00
Kim Alvefur
c90918837e mod_c2s,mod_s2s: Make stanza size limits configurable 2020-05-31 22:39:34 +02:00
Kim Alvefur
63b5689d50 mod_s2s: Escape invalid XML in loggin (same way as mod_c2s) fix #1574 2020-08-01 12:58:37 +02:00
Kim Alvefur
ab950b3e79 mod_s2s: Indicate origin of s2s error 2018-10-08 15:03:26 +02:00
Kim Alvefur
4f7af62406 mod_s2s: Silence all warnings instead of ignoring the entire module 2018-09-30 17:49:56 +02:00
Kim Alvefur
15de51f8c5 sessionmanager, mod_s2s: Bring debug line for outgoing stanzas in line with that for incoming 2018-07-24 19:07:26 +02:00
Kim Alvefur
f86af44208 mod_s2s: Reduce logging (#776) 2018-07-22 19:45:58 +02:00
Kim Alvefur
ba4bd1e687 Merge 0.10->trunk 2018-06-22 14:18:36 +02:00
Kim Alvefur
899924566e mod_s2s: Close sockets held by resolver (#1170) 2018-06-17 20:02:40 +02:00
Emmanuel Gil Peyrot
f7adf08e5a mod_s2s: Add a counter for IPv6. 2017-09-09 14:45:23 +01:00
Kim Alvefur
fc00ed8289 mod_s2s: Don't use string concatenation when passing values to logging 2018-02-25 11:20:56 +01:00
Kim Alvefur
d3bdcaeda0 mod_s2s: Remove tostring() in logging since this is handled by util.format now 2017-12-21 07:00:56 +01:00
Kim Alvefur
5389a3a5cf mod_s2s: Restructure some code 2017-12-05 13:24:28 +01:00
Kim Alvefur
e803ffc6fe mod_s2s: Remove unused argument [luacheck] 2017-12-05 12:35:01 +01:00
Kim Alvefur
eac8dbee7b mod_s2s: Remove unused local [luacheck] 2017-12-05 12:34:50 +01:00
Matthew Wild
d6833915bc Merge 0.10->trunk 2017-09-26 17:24:25 +01:00
Matthew Wild
86ee041be8 mod_s2s: Use a separate resolver object for each outgoing session
Cleaner approach hopefully fixes problems with some peoples' DNS
hanging after a while, failed DNS when a large number of queries
are made at once, and source port re-use.

Related issues: #487, 761, #991, #992, #1001
2017-09-25 23:12:47 +01:00
Kim Alvefur
4c6c255113 Merge 0.10->trunk 2017-09-14 02:48:34 +02:00
Kim Alvefur
989c0783cb Merge 0.9->0.10 2017-09-14 02:47:40 +02:00
Kim Alvefur
5dee36d838 mod_component, mod_s2s: Iterate over child tags instead of child nodes (can include text) in stream error (same as 176b7f4e4ac9) 2017-09-14 01:27:36 +02:00
Kim Alvefur
4c6a84a00e Merge 0.10->trunk 2017-01-26 19:47: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
ac7a1daba8 mod_s2s: Clarify that it is stream features that can't be offered (here too) 2017-01-25 11:13:40 +01:00
Kim Alvefur
67c41ef89e Merge 0.10->trunk 2016-10-07 16:52:18 +02:00
Kim Alvefur
70ba6bf40f Merge 0.9->0.10 2016-09-28 14:45:02 +02:00
Matthew Wild
4c0ea8780e mod_s2s: Lower log message to 'warn' level, standard for remotely-triggered protocol issues 2016-09-27 22:01:46 +01:00
Matthew Wild
f4690a6063 Merge 0.10->trunk 2016-09-12 22:31:25 +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
Matthew Wild
37913e5ce8 Merge 0.10->trunk 2016-08-31 16:25:21 +01:00
Matthew Wild
9ab7221521 Backed out changeset a23b5cb8c22b
It was a nice idea, but our s2s connection logic is too complicated. The
session may have been destroyed inside attempt_connection().
2016-08-31 11:42:03 +01:00
Kim Alvefur
2ec447915f Merge 0.10->trunk 2016-08-28 05:15:13 +02:00
Matthew Wild
f6fd68b0dd mod_s2s: Fire event when s2s connection fails 2016-08-27 13:40:10 +01:00
Kim Alvefur
68f3c9dede Merge 0.10->trunk 2016-08-08 16:41:09 +02:00
Kim Alvefur
6cff8fa474 mod_s2s: Index session after checking if it exists (fixes traceback in case of a connection without a session having a read timeout) 2016-08-07 20:48:37 +02:00
Kim Alvefur
8c0ca748b5 Merge 0.10->trunk 2016-07-08 15:12:44 +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
a994aa71fb mod_s2s: Add util.async support 2016-05-30 13:36:43 +02:00
Kim Alvefur
08ef5f83f5 Merge 0.10->trunk 2016-05-30 13:30:53 +02:00
Kim Alvefur
9dc461298a mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2 2016-05-30 13:30:32 +02:00
Emmanuel Gil Peyrot
c6048a7cb4 Update every link to the documentation to use HTTPS 2016-04-16 21:08:05 +01:00
Kim Alvefur
3ec49d31af Merge 0.10->trunk 2016-03-14 14:20:37 +01:00
Kim Alvefur
d1578059cb mod_s2s: Include name of remote server when it's missing the stream ID (thanks Ge0rG) 2016-03-14 13:27:02 +01:00
Kim Alvefur
acfde68f95 Merge 0.10->trunk 2016-01-26 14:15:38 +01:00
Kim Alvefur
ab4c6bee84 Merge 0.9->0.10 2016-01-26 14:15:00 +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
539d817c67 Merge 0.10->trunk 2015-10-11 20:03:00 +02:00
Kim Alvefur
617cacab71 mod_s2s: Fire global event for stream features where the remote server has not sent the 'to' stream attribute 2015-10-11 14:03:53 +02:00