Kim Alvefur
e632119ffa
mod_limits: Fix typo
2019-04-02 21:22:20 +02:00
Kim Alvefur
1b534392de
mod_limits: Allow configuring a list of unrestricted JIDs ( fixes #1323 )
2019-04-02 20:38:51 +02:00
Kim Alvefur
a6571e3ef3
mod_limits: Fix indentation
...
Appears to have been messed up in 60e113f3682f
2019-04-02 21:17:28 +02:00
Matthew Wild
28322869e8
mod_posix: Remove unnecessary import of util.format (thanks luacheck and buildbot)
2019-03-26 14:59:42 +00:00
Matthew Wild
2ab785fd9f
loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way)
2019-03-26 14:48:21 +00:00
Kim Alvefur
096ebc3bcf
mod_csi_simple: Include queue size in debug messages
2019-03-25 15:20:28 +01:00
Matthew Wild
5074566d79
mod_csi_simple: Fix type in function name
2019-03-25 10:32:39 +00:00
Kim Alvefur
ba9e505924
mod_csi_simple: Improve debug logs by mentioing why the buffer gets flushed
2019-03-24 22:01:36 +01:00
Kim Alvefur
684a26f5be
mod_csi_simple: Add some debug logging
2019-03-24 20:53:49 +01:00
Kim Alvefur
e887ed5cad
mod_csi_simple: Disable optimizations on unload and re-enable on load
2019-03-24 20:43:15 +01:00
Kim Alvefur
1e77bb6ed2
mod_csi_simple: Separate out functions to enable/disable optimizations
...
This allows reusing this logic outside the events. Letting the functions
be module globals makes it easier to access from eg the telnet console.
2019-03-24 20:41:25 +01:00
Kim Alvefur
6c89a86e0d
mod_csi_simple: Remove old "pump" queue/buffer method, handled in net.server now
2019-03-24 20:22:01 +01:00
Kim Alvefur
3a1498ebd3
mod_csi_simple: Also flush buffer in "pump" mode
2019-03-24 19:02:40 +01:00
Kim Alvefur
141c5d3fbe
mod_csi_simple: Trigger buffer flush on seeing incoming data
...
I.e. the client sent us something, which means its network / radio is
active.
2019-03-24 18:58:53 +01:00
Kim Alvefur
643c317b16
mod_csi_simple: Count buffered items and flush when it reaches configured limit
...
In this mode, stanzas have been serialized to strings in the internal
net.server buffer, so it is difficult to count them after the fact.
2019-03-24 18:33:38 +01:00
Kim Alvefur
e5885c928a
mod_csi_simple: Break out stanza timestamping into a function for future reuse
2019-03-24 18:32:50 +01:00
Kim Alvefur
9e7035be72
mod_c2s: Fire an event when outgoing buffers have been emptied
2019-03-24 18:30:51 +01:00
Kim Alvefur
8e68b0dd1a
mod_csi_simple: Use write locks in net.server if available
2018-11-24 02:25:44 +01:00
Kim Alvefur
170c49b52d
mod_storage_memory: Fix copypaste mistake
2019-03-23 22:05:42 +01:00
Kim Alvefur
9b96017ca9
mod_storage_memory: Implement archive summary API
2019-03-23 22:05:08 +01:00
Kim Alvefur
a32b5ceb45
mod_storage_sql: Implement archive summary API
2019-02-25 15:51:55 +01:00
Kim Alvefur
582fa3f46f
mod_storage_internal: Implement a summary API returning message counts per contact
2019-02-25 15:48:28 +01:00
Kim Alvefur
8cc789c796
mod_storage_sql: No archive item limit by default
2019-03-22 16:30:53 +01:00
Kim Alvefur
5bb703f07f
mod_storage_internal: Include store name when reporting quota status
2019-03-22 02:24:48 +01:00
Kim Alvefur
2fed4a88c2
mod_mam: On quota hit, separately delete by time and by item count
...
This is to work around a possible SQL issue where offsets and time
stamps don't interact correctly.
2019-03-22 02:22:21 +01:00
Kim Alvefur
9393931a25
mod_storage_sql: Return cached count if only this is queried for
2019-03-22 02:18:54 +01:00
Kim Alvefur
5029870d3e
mod_storage_sql: Cache total count if it's calculated as part of the current query
2019-03-22 02:13:27 +01:00
Kim Alvefur
56a9e395ad
mod_storage_sql: Skip cache write
...
This would cause the cache to be wrong in case the the later INSERT
fails and the transaction is aborted.
2019-03-22 02:12:02 +01:00
Kim Alvefur
61edbdb90f
mod_storage_sql: Fix to use currently queried store
...
Was using the previously queried store due to this being cached in an
upvalue.
2019-03-22 02:10:46 +01:00
Kim Alvefur
3e5243f2d2
mod_storage_sql: Don't increment counter twice (fixes accounting error)
2019-03-22 02:09:38 +01:00
Kim Alvefur
c4b5bfdc5f
mod_storage_internal: Increase default quota to 10 000
...
Performance doesn't seem great but 10k should be far enough from limits
inherited by the Lua parser. 1000 messages seemed pretty close to what
an active user might produce in one week.
2019-03-22 02:04:34 +01:00
Kim Alvefur
0681ffe606
mod_storage_memory: Add support for archive item limits
2019-03-20 12:14:45 +01:00
Kim Alvefur
9dce1de767
mod_mam: Trim archive when quota has been exceeded
2017-11-07 18:58:52 +01:00
Kim Alvefur
9eb4885f38
mod_storage_internal,_sql: Key item count cache on both username and store
2019-03-22 18:02:27 +01:00
Kim Alvefur
0028ea46e2
mod_storage_internal,_sql: Expose archive capabilities feature set
...
This was planned to be added long ago but was forgotten.
2019-03-22 18:01:24 +01:00
Matthew Wild
d7761bd914
mod_storage_internal,_sql: Add limit to number of items in an archive store ( fixes #733 )
2017-10-20 12:53:53 +02:00
Kim Alvefur
cabf11ab26
Merge 0.11->trunk
2019-03-22 17:58:08 +01:00
Matthew Wild
992497531e
mod_muc_mam: Set error status if loaded on incorrect host type
2019-03-19 09:08:56 +00:00
Matthew Wild
755b507644
mod_s2s: Set warning status if not listening on any ports
2019-03-19 09:08:33 +00:00
Matthew Wild
c6efcf09be
mod_component: Set module status to indicate whether component is connected
2019-03-19 09:08:06 +00:00
Matthew Wild
ab545f19a3
mod_admin_telnet: Show module status in module:list()
2019-03-19 09:05:37 +00:00
Matthew Wild
62f33cd891
MUC: Update error message for consistency
2019-03-18 09:50:23 +00:00
Kim Alvefur
b246b00f85
mod_tls: Restore querying for certificates on s2s
...
The 'ssl_config' setting in the mod_s2s network service is not used.
Only direct TLS ports use this currently.
2019-03-11 13:07:59 +01:00
Kim Alvefur
9f65ce7189
core.certmanager: Do not ask for client certificates by default
...
Since it's mostly only mod_s2s that needs to request client
certificates it makes some sense to have mod_s2s ask for this, instead
of having eg mod_http ask to disable it.
2019-03-10 19:58:28 +01:00
Kim Alvefur
b6cff0ba5e
mod_storage_memory: Implement :user iteration API
2019-01-14 00:17:02 +01:00
Kim Alvefur
4c0bdc6b5c
mod_muc_mam: Copy cleanup mechanism from mod_mam ( fixes #672 )
2019-03-22 17:40:07 +01:00
Kim Alvefur
5c3633477b
mod_mam: Perform message expiry based on building an index by date (backport of 39ee70fbb009 from trunk)
...
For each day, store a set of users that have new messages. To expire
messages, we collect the union of sets of users from dates that fall
outside the cleanup range.
The previous algoritm did not work well with many users, especially with
the default settings.
2019-03-22 17:32:56 +01:00
Kim Alvefur
09a662026a
mod_muc_mam: Add comment about the tricks done with the 'with' field
2019-03-04 12:58:20 +01:00
Kim Alvefur
2c8eecf7c2
mod_muc_mam: Move a comment to the line it describes
2019-03-04 12:57:42 +01:00
Kim Alvefur
dad8bb5fee
mod_muc_mam: Strip the stanza 'to' attribute ( fixes #1259 )
2019-03-04 12:56:31 +01:00