Kim Alvefur
|
6fcaa64f61
|
mod_csi_simple: Disable optimizations on disconnect (fixes #1358)
The connection becomes invalid here, regardless of 3rd party modules
that might keep the session alive.
|
7 years ago |
Kim Alvefur
|
24c44a4566
|
mod_csi_simple: Consider messages encrypted payload as important (fixes part of #1250)
|
7 years ago |
Kim Alvefur
|
e03098631f
|
mod_csi_simple: Consider messages with subject (eg MUC joins) (fixes part of #1250)
|
7 years ago |
Kim Alvefur
|
05b481ec89
|
mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250)
|
7 years ago |
Kim Alvefur
|
9251fa5500
|
mod_csi_simple: Consider messages forwarded from another of the users clients as important (fixes part of #1250)
|
7 years ago |
Kim Alvefur
|
38c98346b1
|
mod_csi_simple: Tweak check for <body>
There were code that checked the body for mentions but isn't included.
|
7 years ago |
Kim Alvefur
|
a24712e845
|
mod_csi: Set session.state to simplify CSI modules
Moved here from mod_csi_simple
|
7 years ago |
Kim Alvefur
|
64b9b5a758
|
mod_csi_simple: Fix autocompletion mistake
|
7 years ago |
Kim Alvefur
|
1796f20abc
|
mod_csi_simple: Bypass importance event in active mode (fixes #1249)
|
7 years ago |
Kim Alvefur
|
0db6c3f669
|
mod_csi_simple: Don't set <delay> stamps on <iq> stanzas (fixes #1248)
|
7 years ago |
Kim Alvefur
|
ad38cc8fbe
|
mod_csi_simple: Use the same event name when firing as when hooking (fixes #1245)
|
7 years ago |
Kim Alvefur
|
3d3e0fa082
|
mod_csi_simple: Consider non-stanza objects important
Most cases are for keepalive or stream closing, where it needs to be
flushed anyways.
|
7 years ago |
Kim Alvefur
|
23be1afef6
|
mod_csi_simple: Skip delay tags on objects other than stanzas (thanks quest)
This may be triggered by sending strings, eg as done by mod_c2s for
keepalives, stream errors, "</stream>".
|
7 years ago |
Kim Alvefur
|
61151d4d82
|
mod_csi_simple: Import modified version of mod_csi_pump from prosody-modules
|
7 years ago |
Kim Alvefur
|
096ebc3bcf
|
mod_csi_simple: Include queue size in debug messages
|
7 years ago |
Matthew Wild
|
5074566d79
|
mod_csi_simple: Fix type in function name
|
7 years ago |
Kim Alvefur
|
ba9e505924
|
mod_csi_simple: Improve debug logs by mentioing why the buffer gets flushed
|
7 years ago |
Kim Alvefur
|
684a26f5be
|
mod_csi_simple: Add some debug logging
|
7 years ago |
Kim Alvefur
|
e887ed5cad
|
mod_csi_simple: Disable optimizations on unload and re-enable on load
|
7 years ago |
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.
|
7 years ago |
Kim Alvefur
|
6c89a86e0d
|
mod_csi_simple: Remove old "pump" queue/buffer method, handled in net.server now
|
7 years ago |
Kim Alvefur
|
3a1498ebd3
|
mod_csi_simple: Also flush buffer in "pump" mode
|
7 years ago |
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.
|
7 years ago |
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.
|
7 years ago |
Kim Alvefur
|
e5885c928a
|
mod_csi_simple: Break out stanza timestamping into a function for future reuse
|
7 years ago |
Kim Alvefur
|
8e68b0dd1a
|
mod_csi_simple: Use write locks in net.server if available
|
7 years ago |