aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_component.lua
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Use get_option_enum where appropriateKim Alvefur2021-01-161-1/+1
|
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-7/+7
|
* mod_component: Require 'from' attribute on stanzas by defaultMatthew Wild2022-08-281-16/+13
| | | | | | | | | | The old behaviour of falling back to the component domain when it is missing has been merged into the logic for the existing "validate_from_addresses" option (which is strict by default). ejabberd already rejects component stanzas with no 'from' (as the XEP requires), and this has led to compatibility issues for components that were seemingly working fine with Prosody.
* mod_c2s,etc: Identify stanza object with appropriate functionKim Alvefur2021-10-241-3/+3
| | | | | Better than duck typing, in case anyone ever passes a non-stanza table with a 'name' field.
* Merge 0.11->trunkMatthew Wild2021-05-131-1/+2
|\
| * mod_c2s, mod_s2s, mod_component, mod_bosh, mod_websockets: Set default ↵Matthew Wild2021-05-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | mod_component: Distinguish missing stream @to from unknown local component ↵Kim Alvefur2020-12-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | (thanks Daniel_W) Spectrum2 did not include a stream @to attribute due to a configuration error. "nil does not match ..." is not very clear in pointing this out and is somewhat confusing, tho it did help pinpoint what went wrong. It's also not great leak to programming language internals like "nil" out into user-facing strings like this.
* | mod_component: Return extended error condition when not connectedKim Alvefur2020-04-131-1/+2
| | | | | | | | This might be something to write a XEP about.
* | mod_component: Reply with a different error when not connectedKim Alvefur2020-04-131-1/+1
| | | | | | | | | | | | | | | | | | The wait, service-unavailable is overloaded by XEP-0045 to mean that the room has reached the maximum number of users. See #1495. Bouncing errors for components is tricky since there is no way to tell that it comes from the server hosting the component, not from the other end of the component connection.
* | mod_component: Specify an error source for Component unavailable errorsKim Alvefur2020-04-111-1/+1
| | | | | | | | | | | | | | | | It is somewhat ambiguous where an error really comes from in the case of an external component. Setting by to the bare host at least distinguishes it from JIDs with a node- or resourcepart.
* | plugins: Remove tostring call from loggingKim Alvefur2019-07-301-7/+7
| | | | | | | | | | | | Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()`
* | mod_component: Set module status to indicate whether component is connectedMatthew Wild2019-03-191-0/+2
| |
* | mod_c2s, mod_s2s, mod_component: Log invalid XML escaped (fixes #734)Kim Alvefur2019-01-151-1/+1
|/ | | | See 6ed0d6224d64
* Many things: switch from hacky multi-arg xpcall implementations to a ↵Matthew Wild2018-10-261-2/+3
| | | | standard util.xpcall
* Merge 0.10->trunkKim Alvefur2018-06-081-3/+4
|\
| * mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164.Emmanuel Gil Peyrot2018-06-081-3/+4
| |
* | Merge 0.10->trunkKim Alvefur2018-02-041-1/+2
|\|
| * mod_component: Advertise disco#info in fallback handling of disco#info query ↵Kim Alvefur2018-01-061-1/+2
| | | | | | | | (fixes #1062)
* | Merge 0.10->trunkKim Alvefur2017-09-141-10/+8
|\|
| * Merge 0.9->0.10Kim Alvefur2017-09-141-10/+8
| |\
| | * mod_component, mod_s2s: Iterate over child tags instead of child nodes (can ↵Kim Alvefur2017-09-141-10/+8
| | | | | | | | | | | | include text) in stream error (same as 176b7f4e4ac9)
* | | Merge 0.10->trunkKim Alvefur2017-05-171-1/+1
|\| |
| * | mod_component: Use typed config APIKim Alvefur2017-04-261-1/+1
| | |
* | | Merge 0.10->trunkKim Alvefur2017-02-101-0/+18
|\| |
| * | mod_component: Add read timeout handler (same behaviour as c2s and s2s)Kim Alvefur2017-02-101-0/+18
| | |
* | | Merge 0.10->trunkKim Alvefur2017-01-281-15/+15
|\| |
| * | mod_component: Trim trailing whitespaceKim Alvefur2017-01-281-15/+15
| | |
* | | Merge 0.10->trunkMatthew Wild2016-09-121-1/+3
|\| |
| * | mod_component: Fire 'component-disconnected' event on host, to maintain ↵Matthew Wild2016-09-121-1/+3
| | | | | | | | | | | | consistency - sessions with no host never authenticated. Fixes #737
* | | Update every link to the documentation to use HTTPSEmmanuel Gil Peyrot2016-04-161-1/+1
|/ /
* | mod_component: Some cleanup [luacheck]Matthew Wild2016-03-181-4/+3
| |
* | mod_component: Fire event when component disconnectsMatthew Wild2016-03-181-0/+1
| |
* | mod_component: Add config option for deciding what happens if a component ↵Kim Alvefur2015-10-211-3/+11
| | | | | | | | connects while already connected (fixes #525)
* | Merge 0.9->0.10Kim Alvefur2015-08-101-15/+16
|\|
| * mod_component: Fire an event on successful component authentication (For Goffi)Kim Alvefur2015-08-101-0/+1
| |
* | Merge 0.9->0.10Kim Alvefur2014-09-021-0/+4
|\|
| * net.http, net.http.server, mod_c2s, mod_s2s, mod_component, ↵Matthew Wild2014-08-291-0/+4
| | | | | | | | mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent)
* | mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all ↵Kim Alvefur2014-04-101-3/+1
| | | | | | | | session:open_stream() functions to util.xmppstream
* | Merge 0.9->0.10Kim Alvefur2013-12-181-1/+7
|\|
| * mod_component: Enable TCP keepalives on component streamsKim Alvefur2013-12-181-0/+6
| |
| * mod_component: Decrease priority of component auth hookKim Alvefur2013-12-181-1/+1
| |
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-16/+16
|/
* mod_component: Local imports for some functions, including xpcallMatthew Wild2013-07-081-0/+1
|
* mod_component: xpcall() stanza processing, as per other listeners, ↵Matthew Wild2013-07-081-1/+6
| | | | preventing potentially harmful 'top-level errors'
* mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, ↵Kim Alvefur2013-03-231-1/+1
| | | | mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
* mod_component: Look for the correct xmlns (thanks NebuK)Kim Alvefur2013-01-271-1/+1
|
* s2smanager: Generate session names used for logging the same way everywhereKim Alvefur2013-01-241-1/+1
|
* mod_component: Make listener private (thanks Ge0rG)Kim Alvefur2013-01-171-0/+1
|
* mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use ↵Waqas Hussain2012-09-121-1/+1
| | | | module:provides() instead of module:add_item().
* mod_component: For disconnected external components, if a name is specified ↵Waqas Hussain2012-08-011-0/+12
| | | | in config, return it in disco#info replies.