Commit Graph

30 Commits (51549fe050a1aec00284d1e2599c93010bc763c2)

Author SHA1 Message Date
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
Matthew Wild 5c1ba3bb13 mod_c2s: Code reduction 14 years ago
Matthew Wild b14f0af41d sessionmanager, mod_c2s: Move timeout logic to mod_c2s 14 years ago
Matthew Wild 13b36f8ded mod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic into a new module, mod_c2s 14 years ago
Waqas Hussain fb1317e021 net.xmppclient_listener: Imports and global cleanup. 15 years ago
Waqas Hussain 47045ad745 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
Matthew Wild 5d840b3f53 xmppclient_listener: Port to onconnect handler 16 years ago
Matthew Wild 42d89c47c7 net.xmppclient_listener: Port to util.xmppstream \o/ 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild ada4f197bb net.xmppclient_listener: Fix to correctly handle stream errors from clients 16 years ago
Matthew Wild 70e57250c8 net.xmpp{client,server,component}: Update for new xmlhandlers syntax 16 years ago
Matthew Wild fcfaa6536e xmppclient_listener: Allow the tcp_keepalives option in the config to control whether keepalives are used 16 years ago
Matthew Wild f5afdcb564 core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls 16 years ago
Waqas Hussain 4e56a3c519 xmppclient_listener: Escape control characters when logging invalid XML. 16 years ago
Matthew Wild 31dd611284 *_listener: Update for new net.server API, specifically .listener -> .onincoming, .disconnect -> .ondisconnect 16 years ago
Matthew Wild 2aa2de8a5b xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua 16 years ago
Matthew Wild 6c6f24c491 xmppclient_listener: Switch to .onincoming listener method, to be compatible with new server_event.lua 16 years ago
Matthew Wild 95b463a3ee core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls 16 years ago
Waqas Hussain 316bc45e71 Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup). 16 years ago