Kim Alvefur
04ce7240a7
mod_c2s,mod_s2s: Make stanza size limits configurable
6 years ago
Kim Alvefur
1ee999ce17
mod_c2s,mod_s2s: Make stanza size limits configurable
6 years ago
Kim Alvefur
c79e73ffbe
mod_c2s,mod_s2s: Use a distinct stream error for hitting stanza size limit
...
Since this is not a real parse error, it should not be reported as such.
6 years ago
Kim Alvefur
d0581ffa47
mod_c2s: Run stream open and close events in async thread, fixes #1103
...
Enables async processing during stream opening and closing.
6 years ago
Kim Alvefur
ee80be9fa4
mod_c2s: Swap comments
6 years ago
Kim Alvefur
349ac37e3c
mod_net_multiplex: Add support for using ALPN
...
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.
6 years ago
Kim Alvefur
34c79b915e
mod_c2s: Validate that a 'to' attribute exists at all
...
Prevents traceback from nameprep(nil)
6 years ago
Kim Alvefur
c85ae3be78
mod_c2s: Associate connection with session last ( fixes #1313 )
...
This way, any fatal error in the callback will not leave a
half-established session.
7 years ago
Kim Alvefur
47625cfc95
Remove COMPAT with temporary luasec fork
...
The changes in the temporary fork were merged into mainline luasec ca
2013 and included in the 0.5 release in 2014.
6 years ago
Kim Alvefur
2b8caf8dac
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
7 years ago
Kim Alvefur
4b084f8f07
mod_c2s: Fix fallback for missing session logger
7 years ago
Kim Alvefur
aa10a644c8
mod_c2s: Do not allow the stream 'to' to change across stream restarts ( fixes #1147 )
8 years ago
Kim Alvefur
99ded745a6
mod_c2s: Avoid concatenating potential nil value ( fixes #753 )
8 years ago
Kim Alvefur
0e30886cd8
mod_c2s: Iterate over child tags instead of child nodes in stream error (fixes traceback from #987 )
8 years ago
Kim Alvefur
2b87305e90
mod_c2s: Set a default value for c2s_timeout ( fixes #1036 )
8 years ago
Kim Alvefur
8dad96d3f6
core.usermanager, various modules: Disconnect other resources on password change (thanks waqas) ( fixes #512 )
9 years ago
Emmanuel Gil Peyrot
6e642dd99c
mod_c2s: Add a counter for IPv6.
8 years ago
Kim Alvefur
75ed409006
mod_c2s: Remove unused locals [luacheck]
9 years ago
Kim Alvefur
2706c671c6
mod_c2s: Rename unused loop variable to _ [luacheck]
9 years ago
Kim Alvefur
8753920c6f
mod_c2s: Rename variable no avoid name clash [luacheck]
9 years ago
Kim Alvefur
428d7cda1a
mod_c2s, mod_s2s: Remove comment that no longer applies since 946871f6e3c8
9 years ago
Kim Alvefur
b734bd9b82
mod_c2s: Clarify that there were no *stream* features to offer
9 years ago
Kim Alvefur
ab34bf8a93
mod_c2s, mod_s2s: Switch connection counting to 'amount' type and enumerate once per statistics interval
9 years ago
Kim Alvefur
797d1592b9
mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open
10 years ago
Kim Alvefur
e7fdb25bea
mod_c2s: Fix whitespace (why does it keep getting messed up?)
10 years ago
Kim Alvefur
a18479bd70
mod_c2s, mod_s2s: Bootstrap connection count statistic on module load
10 years ago
Kim Alvefur
4ae4d1e53d
mod_c2s: Just destroy the session when it has no connection (see #641 )
10 years ago
Kim Alvefur
05164d71b0
mod_c2s: Remove use of util.async
10 years ago
Kim Alvefur
4ad9454756
mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590 )
10 years ago
Kim Alvefur
a5ed824a00
mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first ( fixes #601 )
10 years ago
Kim Alvefur
fabb7c0561
mod_c2s, mod_s2s: Close incoming connections if there are no features to offer on incomplete streams ( fixes #285 )
10 years ago
Kim Alvefur
b028ed1fee
mod_c2s, mod_s2s: Collect statistics on number of connections
11 years ago
Matthew Wild
58edf57b1f
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
Matthew Wild
d2e9a31bf5
mod_c2s, mod_s2s: Log received invalid stream headers
12 years ago
Kim Alvefur
ba692ae097
mod_c2s: Fix traceback if c2s stream sent to component
12 years ago
Kim Alvefur
038d775543
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
12 years ago
Florian Zeitz
e6871e8492
mod_c2s: Break out stream opening into a separate function
12 years ago
Kim Alvefur
cddbe637e0
mod_c2s, mod_s2s: Set session.encrypted as session.secure does not allways mean encrypted (eg consider_bosh_secure)
12 years ago
Kim Alvefur
7b4559a4f2
mod_c2s: Move another log message to debug level
13 years ago
Kim Alvefur
c43e8ae640
mod_c2s, mod_s2s: Log cipher and encryption info in a more compact and (hopefully) less confusing way
13 years ago
Matthew Wild
6eb1b5d493
mod_c2s: Port coroutine code to util.async
13 years ago
Florian Zeitz
4b618a8727
Remove all trailing whitespace
13 years ago
Matthew Wild
3a97810358
mod_c2s: Add session:sleep() and session:wake() to pause a session (e.g. while waiting for an external event). Needs a gallon or two of testing.
13 years ago
Kim Alvefur
e1f147d556
mod_c2s, mod_s2s: Log a message that stream encryption has been enabled with some details
13 years ago
Kim Alvefur
da4206e248
mod_c2s: Change default of tcp_keepalives to true, and make it individually configurable through c2s_tcp_keepalives
13 years ago
Matthew Wild
2cdcc29777
mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now)
13 years ago
Kim Alvefur
707befd0ea
mod_c2s, mod_s2s: Fire an event on read timeouts
13 years ago
Kim Alvefur
6af157e1f8
mod_c2s: Become a shared module and allow being disabled on some virtualhosts
13 years ago
Kim Alvefur
953b24c0ca
mod_c2s, mod_c2s: Send a whitespace on read timeout, to prod TCP into detecting if the connection died
13 years ago
Kim Alvefur
1dcdcf5463
mod_c2s: Fix session:close() when a stanza is passed as reason
13 years ago