Kim Alvefur
|
7e8dcd944e
|
mod_c2s: Rename unused loop variable to _ [luacheck]
|
9 years ago |
Kim Alvefur
|
71d437db39
|
mod_c2s: Rename variable no avoid name clash [luacheck]
|
9 years ago |
Kim Alvefur
|
befdc64576
|
mod_c2s, mod_s2s: Remove comment that no longer applies since 946871f6e3c8
|
9 years ago |
Kim Alvefur
|
bdeb5cc9c5
|
mod_c2s: Clarify that there were no *stream* features to offer
|
9 years ago |
Kim Alvefur
|
522f448b35
|
mod_c2s, mod_s2s: Switch connection counting to 'amount' type and enumerate once per statistics interval
|
9 years ago |
Kim Alvefur
|
4308f867bb
|
mod_c2s: Just destroy the session when it has no connection (see #641)
|
10 years ago |
Kim Alvefur
|
89a474d458
|
mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590)
|
10 years ago |
Kim Alvefur
|
1875b4a83d
|
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
|
8631e529ba
|
mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open
|
10 years ago |
Kim Alvefur
|
0c9ea08015
|
mod_c2s: Fix whitespace (why does it keep getting messed up?)
|
10 years ago |
Kim Alvefur
|
ddccdcd00d
|
mod_c2s, mod_s2s: Bootstrap connection count statistic on module load
|
10 years ago |
Kim Alvefur
|
13099c75ec
|
mod_c2s: Remove use of util.async
|
10 years ago |
Kim Alvefur
|
7dda205176
|
mod_c2s, mod_s2s: Close incoming connections if there are no features to offer on incomplete streams (fixes #285)
|
10 years ago |
Matthew Wild
|
899b6d53ae
|
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)
|
11 years ago |
Matthew Wild
|
933bb5a869
|
mod_c2s, mod_s2s: Log received invalid stream headers
|
12 years ago |
Kim Alvefur
|
57940a8351
|
mod_c2s: Fix traceback if c2s stream sent to component
|
12 years ago |
Kim Alvefur
|
48652fb9d3
|
mod_c2s, mod_s2s: Collect statistics on number of connections
|
11 years ago |
Kim Alvefur
|
e06966ee43
|
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
|
12 years ago |
Florian Zeitz
|
c5c7ef5b0f
|
mod_c2s: Break out stream opening into a separate function
|
12 years ago |
Kim Alvefur
|
5178a1e79f
|
mod_c2s, mod_s2s: Set session.encrypted as session.secure does not allways mean encrypted (eg consider_bosh_secure)
|
12 years ago |
Kim Alvefur
|
0c39eb02b9
|
mod_c2s: Move another log message to debug level
|
13 years ago |
Kim Alvefur
|
938d568ac4
|
mod_c2s, mod_s2s: Log cipher and encryption info in a more compact and (hopefully) less confusing way
|
13 years ago |
Matthew Wild
|
e0216573ab
|
mod_c2s: Port coroutine code to util.async
|
13 years ago |
Florian Zeitz
|
1d833bb807
|
Remove all trailing whitespace
|
13 years ago |
Matthew Wild
|
5383602429
|
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
|
0c6c0e9c29
|
mod_c2s, mod_s2s: Log a message that stream encryption has been enabled with some details
|
13 years ago |
Kim Alvefur
|
aa15ed7020
|
mod_c2s: Change default of tcp_keepalives to true, and make it individually configurable through c2s_tcp_keepalives
|
13 years ago |
Matthew Wild
|
cab180216b
|
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
|
4c9866805e
|
mod_c2s, mod_s2s: Fire an event on read timeouts
|
13 years ago |
Kim Alvefur
|
b6ecf01333
|
mod_c2s: Become a shared module and allow being disabled on some virtualhosts
|
13 years ago |
Kim Alvefur
|
8d85647c37
|
mod_c2s, mod_c2s: Send a whitespace on read timeout, to prod TCP into detecting if the connection died
|
13 years ago |
Kim Alvefur
|
dd56030a23
|
mod_c2s: Fix session:close() when a stanza is passed as reason
|
13 years ago |
Kim Alvefur
|
b50dc4174b
|
mod_c2s: Refactor <stream:error> building to allways tostring() it and only call send once
|
13 years ago |
Matthew Wild
|
c178786878
|
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured
|
13 years ago |
Matthew Wild
|
4602591c38
|
mod_c2s, mod_s2s, net.http, net.http.server: Improve tracebacks (omit traceback function), to make it clearer where an error occured
|
13 years ago |
Kim Alvefur
|
27dc3a5b9a
|
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
|
13 years ago |
Kim Alvefur
|
3e2a8fbe1c
|
prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins
|
13 years ago |
Kim Alvefur
|
233b38c3b0
|
mod_c2s: Check if TLS compression is used
|
13 years ago |
Waqas Hussain
|
d9d38ef125
|
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
|
13 years ago |
Kim Alvefur
|
1e65e68cac
|
mod_c2s: When a user gets deleted, drop all their sessions
|
14 years ago |
Kim Alvefur
|
9114e88ee0
|
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
|
14 years ago |
Matthew Wild
|
9931497619
|
mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug'
|
14 years ago |
Matthew Wild
|
bac46c9935
|
mod_c2s: Change 'reason' parameter of session:close() to take nil to mean 'graceful close initiated by us' and false for 'graceful close initiated by client'
|
14 years ago |
Matthew Wild
|
3424d79abb
|
mod_c2s: Don't call ondisconnect manually on close, it is now called by net.server. Replace with inline code for destroying the session, and also waiting for a reply </stream:stream> if there is a chance of further data sent by the client. session.send() on a half-closed stream returns false (and does not deliver the data).
|
14 years ago |
Matthew Wild
|
6e0cfc7267
|
mod_c2s: Another lurking string.format squashed.
|
14 years ago |
Matthew Wild
|
246e8535c1
|
mod_c2s: Remove unused import of portmanager
|
14 years ago |
Kim Alvefur
|
8a4a259bde
|
mod_c2s: Add missing multiplexed service discovery pattern.
|
14 years ago |
Matthew Wild
|
fdd0bb03e8
|
mod_c2s, mod_s2s: Drop default_port and default_mode from listener objects (default_port is deprecated, and default_mode already defaults to *a)
|
14 years ago |
Matthew Wild
|
99096dfa23
|
mod_c2s, mod_s2s: Add multiplex support
|
14 years ago |
Matthew Wild
|
107458131f
|
mod_c2s: Use module:add_item() to add the net-provider for portmanager
|
14 years ago |