Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_c2s: Guard against LuaSec not returning TLS info (thanks Martin) | Kim Alvefur | 2021-06-21 | 1 | -4/+4 |
| | | | | | | | | | The :info() method has been observed to return nothing ... sometimes. Unclear what causes it. Perhaps the TLS connection was shut down or hasn't fully settled? The LuaSec code has code paths that return nothing or nil, error, so it is best to guard against it. | ||||
* | mod_c2s: Log the same messages for Direct TLS as with starttls | Kim Alvefur | 2021-06-20 | 1 | -1/+6 |
| | | | | ^C^V | ||||
* | mod_c2s: Update a comment to reflect Direct TLS | Kim Alvefur | 2021-06-20 | 1 | -1/+1 |
| | |||||
* | mod_c2s: Add a Direct TLS listener | Kim Alvefur | 2021-06-20 | 1 | -0/+10 |
| | | | | | This only differs from 'legacy_ssl' in name, at least on the server side. For clients this is the one that uses SRV records. | ||||
* | mod_c2s,mod_s2s: Collect stats on TLS versions and ciphers | Kim Alvefur | 2021-06-16 | 1 | -0/+7 |
| | |||||
* | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -1/+1 |
|\ | |||||
| * | mod_c2s, mod_s2s, mod_component, mod_bosh, mod_websockets: Set default ↵ | Matthew Wild | 2021-05-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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_c2s: Port to new OpenMetrics API | Jonas Schäfer | 2021-04-18 | 1 | -10/+16 |
| | | |||||
* | | mod_c2s: Fix traceback if session was destroyed while opening stream (thanks ↵ | Kim Alvefur | 2021-04-14 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | Ge0rG) Could happen with the 'opportunistic_writes' setting, since then the stream opening is written directly to the socket, which can in turn trigger session destruction if the socket somehow got closed just after the other sent their stream header. Error happens later when it tries to `hosts[session.host == nil].events` | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2021-04-10 | 1 | -4/+12 |
|\| | |||||
| * | mod_c2s: Log about missing conn on async state changes | Kim Alvefur | 2021-03-18 | 1 | -0/+4 |
| | | |||||
| * | mod_c2s: Improve code style | Kim Alvefur | 2021-03-18 | 1 | -2/+6 |
| | | | | | | | | | | We don't use the quoted table indexing style that often, it's not needed here and it's enough to check for falsyness rather than `nil`. | ||||
| * | mod_c2s: Fix traceback in session close when conn is nil | Kim Alvefur | 2021-03-17 | 1 | -2/+2 |
| | | | | | | | | Unclear how this happens. | ||||
| * | mod_c2s: Don't throw errors in async code when connections are gone | tmolitor | 2021-03-18 | 1 | -2/+2 |
| | | | | | | | | Fixes #1507 | ||||
| * | mod_c2s,mod_s2s: Make stanza size limits configurable0.11.7 | Kim Alvefur | 2020-05-31 | 1 | -1/+2 |
| | | |||||
* | | mod_c2s: Log a debug message before closing due to c2s_timeout | Kim Alvefur | 2021-03-23 | 1 | -0/+1 |
| | | | | | | | | | | | | | | It was confusing that the connection would just close without much explanation. Wanted this while investigating https://github.com/conversejs/converse.js/issues/2438 | ||||
* | | mod_c2s: Reflect stream 'from' attribute back if set (fix #1625) | Kim Alvefur | 2021-02-03 | 1 | -1/+1 |
| | | | | | | | | Clients should *not* be setting this before TLS anyways. | ||||
* | | mod_c2s,mod_s2s: Make stanza size limits configurable | Kim Alvefur | 2020-05-31 | 1 | -1/+2 |
| | | |||||
* | | mod_c2s,mod_s2s: Use a distinct stream error for hitting stanza size limit | Kim Alvefur | 2020-05-31 | 1 | -1/+5 |
| | | | | | | | | Since this is not a real parse error, it should not be reported as such. | ||||
* | | mod_c2s: Run stream open and close events in async thread, fixes #1103 | Kim Alvefur | 2020-05-08 | 1 | -2/+18 |
| | | | | | | | | Enables async processing during stream opening and closing. | ||||
* | | mod_c2s: Swap comments | Kim Alvefur | 2020-04-19 | 1 | -2/+2 |
| | | |||||
* | | mod_net_multiplex: Add support for using ALPN | Kim Alvefur | 2019-11-29 | 1 | -0/+1 |
| | | | | | | | | | | | | | | Potentially a bit more efficient since it can jump to the selected protocol on connect instead of waiting for some data to look at. Adds a 'protocol' field to net providers for this purpose. | ||||
* | | mod_c2s: Validate that a 'to' attribute exists at all | Kim Alvefur | 2019-11-02 | 1 | -0/+5 |
| | | | | | | | | Prevents traceback from nameprep(nil) | ||||
* | | Remove COMPAT with temporary luasec fork | Kim Alvefur | 2019-08-25 | 1 | -3/+0 |
| | | | | | | | | | | The changes in the temporary fork were merged into mainline luasec ca 2013 and included in the 0.5 release in 2014. | ||||
* | | plugins: Remove tostring call from logging | Kim Alvefur | 2019-07-30 | 1 | -2/+2 |
| | | | | | | | | | | | | Taken care of by loggingmanager now Mass-rewrite using lua pattern like `tostring%b()` | ||||
* | | Merge 0.11->trunk | Kim Alvefur | 2019-05-26 | 1 | -1/+2 |
|\| | |||||
| * | mod_c2s: Associate connection with session last (fixes #1313) | Kim Alvefur | 2019-05-18 | 1 | -1/+2 |
| | | | | | | | | | | This way, any fatal error in the callback will not leave a half-established session. | ||||
* | | mod_c2s: Fire an event when outgoing buffers have been emptied | Kim Alvefur | 2019-03-24 | 1 | -0/+7 |
| | | |||||
* | | mod_c2s, mod_s2s, mod_component: Log invalid XML escaped (fixes #734) | Kim Alvefur | 2019-01-15 | 1 | -1/+1 |
| | | | | | | | | See 6ed0d6224d64 | ||||
* | | mod_c2s: Improve log message in case there are no stream features on offer ↵ | Kim Alvefur | 2018-12-28 | 1 | -1/+7 |
|/ | | | | (thanks hexa) | ||||
* | mod_c2s: Fix fallback for missing session logger | Kim Alvefur | 2018-10-12 | 1 | -1/+1 |
| | |||||
* | Merge 0.10->trunk | Matthew Wild | 2018-05-30 | 1 | -2/+9 |
|\ | |||||
| * | Merge 0.9->0.100.10.2 | Matthew Wild | 2018-05-30 | 1 | -2/+9 |
| |\ | |||||
| | * | mod_c2s: Do not allow the stream 'to' to change across stream restarts ↵0.9.14 | Kim Alvefur | 2018-05-25 | 1 | -2/+9 |
| | | | | | | | | | | | | (fixes #1147) | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2018-05-22 | 1 | -1/+1 |
|\| | | |||||
| * | | mod_c2s: Avoid concatenating potential nil value (fixes #753) | Kim Alvefur | 2018-05-22 | 1 | -1/+1 |
| | | | |||||
* | | | mod_c2s: Add a counter for IPv6. | Emmanuel Gil Peyrot | 2017-09-09 | 1 | -1/+7 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-11-10 | 1 | -1/+1 |
|\| | | |||||
| * | | mod_c2s: Set a default value for c2s_timeout (fixes #1036) | Kim Alvefur | 2017-11-10 | 1 | -1/+1 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-09-14 | 1 | -10/+8 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2017-09-14 | 1 | -10/+8 |
| |\| | |||||
| | * | mod_c2s: Iterate over child tags instead of child nodes in stream error ↵ | Kim Alvefur | 2017-09-13 | 1 | -10/+8 |
| | | | | | | | | | | | | (fixes traceback from #987) | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-08-28 | 1 | -0/+12 |
|\| | | |||||
| * | | core.usermanager, various modules: Disconnect other resources on password ↵ | Kim Alvefur | 2017-07-28 | 1 | -0/+12 |
| | | | | | | | | | | | | change (thanks waqas) (fixes #512) | ||||
* | | | mod_c2s: Remove unused locals [luacheck] | Kim Alvefur | 2017-04-01 | 1 | -2/+1 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-03-06 | 1 | -8/+8 |
|\| | | |||||
| * | | mod_c2s: Rename unused loop variable to _ [luacheck] | Kim Alvefur | 2017-03-06 | 1 | -1/+1 |
| | | | |||||
| * | | mod_c2s: Rename variable no avoid name clash [luacheck] | Kim Alvefur | 2017-03-06 | 1 | -7/+7 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-01-26 | 1 | -4/+2 |
|\| | | |||||
| * | | mod_c2s, mod_s2s: Remove comment that no longer applies since 946871f6e3c8 | Kim Alvefur | 2017-01-25 | 1 | -2/+0 |
| | | |