Commit Graph

47 Commits (cedbb60261a7debbc7e2ebc2fbfcc88025ca58b7)

Author SHA1 Message Date
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
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 b028ed1fee mod_c2s, mod_s2s: Collect statistics on number of connections 11 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
Kim Alvefur 87a573eb48 mod_c2s: Refactor <stream:error> building to allways tostring() it and only call send once 13 years ago
Matthew Wild 70e81c21b7 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 c63dc9181d 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 98dea85ed2 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 4cb252484c prosody, mod_c2s, mod_s2s: Move closing of c2s and s2s sessions to respective plugins 13 years ago
Kim Alvefur 6005d43dd7 mod_c2s: Check if TLS compression is used 13 years ago
Waqas Hussain 025eca8452 mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item(). 14 years ago
Kim Alvefur 8e42f0b208 mod_c2s: When a user gets deleted, drop all their sessions 14 years ago
Kim Alvefur 790e0bb9b4 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 fc975c9d5f mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug' 14 years ago
Matthew Wild 8d8f03c5fa 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 efc4ec5efe 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 489ea2958d mod_c2s: Another lurking string.format squashed. 14 years ago
Matthew Wild 7fe9ac03de mod_c2s: Remove unused import of portmanager 14 years ago
Kim Alvefur 7fa01014cb mod_c2s: Add missing multiplexed service discovery pattern. 14 years ago
Matthew Wild fa8c54baeb 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 8496bd382a mod_c2s, mod_s2s: Add multiplex support 14 years ago
Matthew Wild 829f9e2224 mod_c2s: Use module:add_item() to add the net-provider for portmanager 14 years ago
Matthew Wild c366bf57d9 mod_c2s: Code reduction 14 years ago
Matthew Wild 308cf1c32f sessionmanager, mod_c2s: Move timeout logic to mod_c2s 14 years ago
Matthew Wild 70b25deb38 mod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic into a new module, mod_c2s 14 years ago
Waqas Hussain 47045ad745 net.xmppclient_listener: Imports and global cleanup. 15 years ago
Waqas Hussain fb1317e021 net.xmppclient_listener: Imports and global cleanup. 15 years ago
Waqas Hussain ecaf8a5959 net.xmpp{client,server,component}_listener: s/xml-not-well-formed/not-well-formed/ as per latest bis drafts. 15 years ago
Matthew Wild cec141b21c net.xmppclient_listener: Add associate_session(conn, session) to change the session a connection is associated with 16 years ago
Matthew Wild 91a3910031 xmpp{client,server}_listener: Convert some calls to tail calls for efficiency 16 years ago
Matthew Wild ec41e71baa xmpp{client,server}_listener: Put stanzas/in filtering code in the correct place to make it actually work :) 16 years ago
Matthew Wild e9448c71ce xmppclient_listener: Add filters for incoming bytes and stanzas 16 years ago