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.
5 years ago
Matthew Wild
f5f6460b2e
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall
7 years ago
Emmanuel Gil Peyrot
ba5f71d08b
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164 .
8 years ago
Kim Alvefur
5dee36d838
mod_component, mod_s2s: Iterate over child tags instead of child nodes (can include text) in stream error (same as 176b7f4e4ac9)
8 years ago
Kim Alvefur
38060a5ccf
mod_component: Advertise disco#info in fallback handling of disco#info query ( fixes #1062 )
8 years ago
Kim Alvefur
d99378074d
mod_component: Use typed config API
9 years ago
Kim Alvefur
a586901308
mod_component: Add read timeout handler (same behaviour as c2s and s2s)
9 years ago
Kim Alvefur
b661ee3aca
mod_component: Trim trailing whitespace
9 years ago
Matthew Wild
cd10e4439e
mod_component: Fire 'component-disconnected' event on host, to maintain consistency - sessions with no host never authenticated. Fixes #737
9 years ago
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
10 years ago
Matthew Wild
f739ed2c46
mod_component: Some cleanup [luacheck]
10 years ago
Matthew Wild
4b907ce3ff
mod_component: Fire event when component disconnects
10 years ago
Kim Alvefur
b7e3bf93ea
mod_component: Add config option for deciding what happens if a component connects while already connected ( fixes #525 )
10 years ago
Kim Alvefur
e92c2042d1
mod_component: Fire an event on successful component authentication (For Goffi)
11 years ago
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)
12 years ago
Kim Alvefur
e06966ee43
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
12 years ago
Kim Alvefur
a3dab92bb3
mod_component: Enable TCP keepalives on component streams
12 years ago
Kim Alvefur
72d7753441
mod_component: Decrease priority of component auth hook
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Matthew Wild
98ce253063
mod_component: Local imports for some functions, including xpcall
13 years ago
Matthew Wild
fb9838c64b
mod_component: xpcall() stanza processing, as per other listeners, preventing potentially harmful 'top-level errors'
13 years ago
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
13 years ago
Kim Alvefur
d11b41d1dd
mod_component: Look for the correct xmlns (thanks NebuK)
13 years ago
Kim Alvefur
4517552d8b
s2smanager: Generate session names used for logging the same way everywhere
13 years ago
Kim Alvefur
1e4f3fadcd
mod_component: Make listener private (thanks Ge0rG)
13 years ago
Waqas Hussain
d9d38ef125
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
13 years ago
Waqas Hussain
c204694247
mod_component: For disconnected external components, if a name is specified in config, return it in disco#info replies.
14 years ago
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.
14 years ago
Matthew Wild
e89b006f03
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
14 years ago
Matthew Wild
a8a1bb526f
mod_component: Allow unauthenticated components to authenticate (thanks Maranda)
14 years ago
Matthew Wild
b56a39255a
mod_component: Components start out as component_unauthed until successful authentication (thanks xnyhps)
14 years ago
Matthew Wild
ba8ef0d839
mod_component: Send <?xml on initial stream (thanks xnyhps)
14 years ago
Matthew Wild
844026b0ea
mod_component: Remove unused variable
14 years ago
Matthew Wild
9857260297
mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
14 years ago
Matthew Wild
c1e2674fd4
mod_component: Handle component connecting to non-existent host
14 years ago
Matthew Wild
9d47801122
mod_component: Make a shared module, and move the xmppcomponent_listener into it ('port'ing over to portmanager). Ha ha.
14 years ago
Marco Cirillo
351b8347c8
mod_component: removed unused variable reference, added "flagging" to assert if a component is connected or not.
14 years ago
Matthew Wild
ba19cdbf9a
mod_component: Clearer log message when bouncing a stanza from a component that is not connected (thanks MK)
15 years ago
Matthew Wild
0ed8dc1f6e
mod_component: Small code clarity fix
15 years ago
Waqas Hussain
e1b178ba6d
mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.
15 years ago
Waqas Hussain
113cb3c67c
mod_component: Give stanza handlers a negative priority, to allow mod_iq to process them first.
15 years ago
Waqas Hussain
0dbe39b420
mod_component: Logging tweaks.
15 years ago
Waqas Hussain
3501f4f0c9
mod_component: Use module:get_option() instead of configmanager.
15 years ago
Waqas Hussain
6bc1c5d24a
mod_component: Rearranged the code a little.
15 years ago
Waqas Hussain
42993c2ec2
mod_component: Return true from stanza handler to indicate that we actually did handle the stanza.
15 years ago
Waqas Hussain
d38fc9dce0
prosody: Removed all references to componentmanager from Prosody, except the main componentmanager file.
15 years ago
Waqas Hussain
67804ef1a3
componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property.
15 years ago
Waqas Hussain
cac4ec8aca
mod_component: Updated to use events for hooking stanzas instead of the component stanza handler, and the on_destroy callback.
15 years ago
Waqas Hussain
f585f295c7
mod_component: Send back a <conflict/> stream error when multiple sessions attempt to bind.
15 years ago
Waqas Hussain
b7e51a203d
Monster whitespace commit (beware the whitespace monster).
15 years ago