Log

core/sessionmanager.lua @ 9032:029e1e18d65c

description author age
sessionmanager: Generate shorter random resoures Kim Alvefur Tue, 29 May 2018 06:51:52 +0200
core: Use prosody.hosts instead of _G.hosts for consistency Kim Alvefur Thu, 29 Mar 2018 16:58:06 +0200
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur Wed, 28 Feb 2018 20:06:26 +0100
Merge 0.10 -> trunk Matthew Wild Fri, 28 Jul 2017 23:47:38 +0100
sessionmanager: Revert session.type if binding fails due to roster load error Matthew Wild Fri, 28 Jul 2017 23:45:05 +0100
Merge 0.10->trunk Kim Alvefur Mon, 06 Mar 2017 01:14:32 +0100
core: Allow select core modules to mutate some globals (needs luacheck 1.19) Kim Alvefur Sat, 04 Mar 2017 20:09:28 +0100
core: Split some very long lines [luacheck] Kim Alvefur Sat, 04 Mar 2017 17:49:48 +0100
Merge 0.10->trunk Kim Alvefur Wed, 14 Dec 2016 01:47:19 +0100
core.sessionmanager, mod_saslauth: Introduce intermediate session type for authenticated but unbound sessions so that resource binding is not treated as a normal stanza Kim Alvefur Tue, 13 Dec 2016 18:15:17 +0100
Merge 0.10->trunk Kim Alvefur Wed, 13 Jul 2016 18:43:33 +0200
Merge 0.9->0.10 Kim Alvefur Wed, 13 Jul 2016 18:43:28 +0200
sessionmanager: Make session.send() return true unless there really is an error [backported from 0.10] Kim Alvefur Mon, 21 Sep 2015 23:19:48 +0200
Merge 0.10->trunk Kim Alvefur Thu, 17 Mar 2016 18:04:43 +0100
mod_c2s: Remove use of util.async Kim Alvefur Thu, 17 Mar 2016 12:47:24 +0100
sessionmanager: Demote write error to debug message Kim Alvefur Thu, 05 Nov 2015 13:35:16 +0100
sessionmanager: Clarify log message when failing to write data to connection Kim Alvefur Wed, 04 Nov 2015 12:21:46 +0100
sessionmanager: Make session.send() return true unless there really is an error Kim Alvefur Mon, 21 Sep 2015 23:19:48 +0200
core.*: Remove use of module() function Kim Alvefur Sat, 21 Feb 2015 10:42:19 +0100
sessionmanager: Rename argument to avoid name clash with local variable [luacheck] Matthew Wild Wed, 06 May 2015 19:58:33 +0100
sessionmanager: Rename unused loop variables to '_' [luacheck] Matthew Wild Wed, 06 May 2015 19:58:03 +0100
portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations Matthew Wild Wed, 06 May 2015 19:20:07 +0100
sessionmanager: Rename parameter to avoid varible name conflict Matthew Wild Fri, 03 Apr 2015 19:31:05 +0100
Merge 0.9->0.10 Matthew Wild Thu, 26 Mar 2015 16:48:39 +0000
sessionmanager: Return 'not-allowed' error instead of the non-existent 'already-bound' error when client tries to bind a resource twice on the same stream (thanks Flow) fixes issue #484. Matthew Wild Tue, 24 Mar 2015 15:57:46 +0000
sessionmanager: Add pre-resource-bind event that would let plugins have a say in resource binding Kim Alvefur Fri, 30 Jan 2015 15:38:54 +0100
sessionmanager: Access bare_session and full_sessions through 'prosody' Matthew Wild Tue, 20 Jan 2015 11:31:58 +0000
core.sessionmanager: Set a fake thread on destroyed sessions, fixes traceback if stanzas are emitted after a session is destroyed (thanks Sven Blumenstein) Kim Alvefur Thu, 11 Sep 2014 00:09:07 +0200
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
sessionmanager, s2smanager: Remove unused imports Matthew Wild Thu, 11 Apr 2013 17:35:39 +0100
sessionmanager, s2smanager: Remove open_session tracing Matthew Wild Mon, 08 Apr 2013 15:53:18 +0100
core.*: Complete removal of all traces of the "core" section and section-related code. Kim Alvefur Sat, 23 Mar 2013 02:33:15 +0100
s2smanager: Generate session names used for logging the same way everywhere Kim Alvefur Thu, 24 Jan 2013 00:58:17 +0100
sessionmanager: Log the actual error message when roster loading fails. Waqas Hussain Fri, 30 Nov 2012 09:05:51 +0500
sessionmanager: Lower 'destroying session' message to 'debug' level (from 'info') Matthew Wild Mon, 23 Jul 2012 18:26:30 +0100
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages Matthew Wild Mon, 23 Jul 2012 17:32:33 +0100
sessionmanager: Clean up some unused variables and imports Matthew Wild Sun, 22 Jul 2012 23:38:21 +0100
sessionmanager: Have session.send() of a retired session return false to indicate failure Matthew Wild Sun, 22 Jul 2012 16:50:14 +0100
sessionmanager: Remove max_resources config option and check, incorrect anyway (thanks Zash) Matthew Wild Thu, 03 May 2012 23:18:56 +0100
sessionmanager: Require uuid_generate() Matthew Wild Mon, 23 Jan 2012 02:23:23 +0000
sessionmanager, mod_c2s: Move timeout logic to mod_c2s Matthew Wild Mon, 23 Jan 2012 00:56:57 +0000
mod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic into a new module, mod_c2s Matthew Wild Sun, 22 Jan 2012 23:57:13 +0000
sessionmanager: Remove unused reference to modulemanager Matthew Wild Tue, 13 Dec 2011 15:42:21 +0000
sessionmanager: Remove dependency on util.import Matthew Wild Mon, 27 Jun 2011 14:57:31 +0100
sessionmanager: Log reason when destroying a session. Waqas Hussain Sat, 07 May 2011 21:15:34 +0500
sessionmanager: Fire pre-resource-unbind to allow plugins (such as mod_smacks) to hook and prevent/override session destruction Matthew Wild Tue, 29 Mar 2011 14:10:00 +0100
sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202 Matthew Wild Sun, 22 Aug 2010 21:23:37 +0100
sessionmanager: Remove dependency on eventmanager Matthew Wild Tue, 03 Aug 2010 10:58:15 +0100
Merge 0.7->trunk Matthew Wild Sat, 12 Jun 2010 02:39:18 +0100
sessionmanager: Fixed a traceback on invalid usernames (typo in previous commit). 0.7.0 Waqas Hussain Fri, 11 Jun 2010 21:30:24 +0500
sessionmanager: Moved nodeprep to sessionmanager.make_authenticated. Waqas Hussain Fri, 11 Jun 2010 20:34:00 +0500
sessionmanager: Rename filters_initialize->initialize_filters Matthew Wild Wed, 02 Jun 2010 18:22:23 +0100
sessionmanager: Initialize new sessions for filtering, and add filters for outgoing bytes and stanzas Matthew Wild Wed, 02 Jun 2010 17:51:14 +0100
rostermanager: Correctly clear the bare_sessions table on roster load errors during bind. Waqas Hussain Sun, 23 May 2010 05:46:52 +0500
sessionmanager: Change error for reaching resource limit from 'conflict' to 'resource-constraint' during session bind. Waqas Hussain Sat, 22 May 2010 05:53:27 +0500
sessionmanager: If roster loading fails during resource bind, kick the user with an internal-server-error. Waqas Hussain Sat, 22 May 2010 05:52:24 +0500
Merge 0.6->0.7 Matthew Wild Mon, 22 Mar 2010 17:24:55 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo) Matthew Wild Mon, 22 Mar 2010 14:58:25 +0000
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) Matthew Wild Fri, 12 Feb 2010 17:27:53 +0000
sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session Matthew Wild Fri, 12 Feb 2010 17:14:54 +0000
sessionmanager: Added resource prepping, and invalid resource checking to the bind_resource function. Waqas Hussain Mon, 11 Jan 2010 18:59:06 +0500
core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls Matthew Wild Tue, 24 Nov 2009 20:34:22 +0000
sessionmanager: Don't re-destroy destroyed sessions Matthew Wild Sun, 14 Mar 2010 02:59:41 +0000
sessionmanager: Return stream error when incoming stream header is missing 'to' attribute Matthew Wild Sun, 14 Mar 2010 02:59:16 +0000
sessionmanager: Add close method to resting sessions Matthew Wild Sun, 14 Mar 2010 02:58:11 +0000
sessionmanager, s2smanager: Close session on </stream:stream> Matthew Wild Thu, 11 Mar 2010 01:04:19 +0000
sessionmanager, s2smanager: Destroyed sessions are now simply resting (not dead) until they are collected - prevents a whole class of tracebacks Matthew Wild Mon, 08 Mar 2010 02:13:41 +0000
sessionmanager, s2smanager: Fix for syntax of null_data_handler() (thanks Nolan) Matthew Wild Fri, 12 Feb 2010 17:27:53 +0000
sessionmanager, s2smanager: Give sessions dummy data handlers that log when data is received by a destroyed session Matthew Wild Fri, 12 Feb 2010 17:14:54 +0000
sessionmanager: Fire stream-features event using new events API. Waqas Hussain Fri, 12 Feb 2010 03:49:05 +0500
sessionmanager: Fire resource-unbind event after removing session from sessions table Matthew Wild Thu, 11 Feb 2010 19:34:23 +0000
sessionmanager: Whitespace fix Matthew Wild Wed, 10 Feb 2010 07:53:25 +0000
sessionmanager: Added resource prepping, and invalid resource checking to the bind_resource function. Waqas Hussain Mon, 11 Jan 2010 18:59:06 +0500
core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls Matthew Wild Tue, 24 Nov 2009 20:34:22 +0000
Merged with 0.6. Waqas Hussain Sun, 22 Nov 2009 21:55:58 +0500
sessionmanager: Added function send_to_interested_resources(). Waqas Hussain Sun, 22 Nov 2009 21:41:09 +0500
sessionmanager: Fixed and cleaned function send_to_available_resources(). The 'to' attribute for presence subscription stanzas is now preserved. Waqas Hussain Sun, 22 Nov 2009 21:40:01 +0500
sessionmanager: Use : syntax for calling connection methods Matthew Wild Sat, 21 Nov 2009 17:07:22 +0000
sessionmanager: Mark client streams as opened sooner to avoid wrapping errors in unnecessary stream tags Paul Aurich Tue, 06 Oct 2009 11:15:55 +0100
sessionmanager: Use UUID for stream ids to clients, no math.random anymore :) Matthew Wild Sat, 03 Oct 2009 18:40:47 +0100
sessionmanager: Add c2s_timeout option for unauthenticated client connections Matthew Wild Sat, 03 Oct 2009 02:41:28 +0100
core.sessionmanager, xmppclient_listener: Move responsibility for setting session.log to the former from the latter, much more sensible Matthew Wild Sun, 16 Aug 2009 21:34:53 +0100
Remove version number from copyright headers Matthew Wild Fri, 10 Jul 2009 03:11:45 +0100
Moved automatic unavailable presence generation on disconnect from sessionmanager to mod_presence Waqas Hussain Sun, 05 Jul 2009 17:45:44 +0500
sessionmanager: Replace raw session by an event data table for resource bind/unbind events, allowing extra data Waqas Hussain Sun, 05 Jul 2009 16:21:58 +0500
sessionmanager: Reset bare_sessions[user] after resource conflict resolution. Fixes the other stanza gobbling bug \o/ Matthew Wild Fri, 03 Jul 2009 21:47:26 +0100
sessionmanager: Newly created sessions shouldn't have a priority. Fixes one of the stanza-gobbling bugs \o/ Matthew Wild Fri, 03 Jul 2009 21:37:09 +0100
Send xml:lang in stream headers, fixes #78 Matthew Wild Wed, 01 Jul 2009 17:53:18 +0100
sessionmanager: Fire event on resource unbind Waqas Hussain Tue, 23 Jun 2009 23:54:57 +0500
sessionmanager: Fire event on resource bind Matthew Wild Mon, 22 Jun 2009 02:58:28 +0100
sessionmanager: It really is username@host, not host@username :) Waqas Hussain Thu, 04 Jun 2009 05:54:32 +0500
sessionmanager: It's username@host, not host@username :) Matthew Wild Tue, 02 Jun 2009 19:08:36 +0100
sessionmanager: Removed a redundant check Waqas Hussain Fri, 29 May 2009 23:23:56 +0500
sessionmanager: Fixed an old FIXME: A problem caused by an error on an authenticated but unbound session Waqas Hussain Fri, 29 May 2009 23:22:58 +0500
sessionmanager: Add/remove sessions from full_sessions and bare_sessions when binding/unbinding sessions Waqas Hussain Fri, 29 May 2009 23:14:57 +0500
sessionmanager: Added reference to globals full_sessions and bare_sessions Waqas Hussain Fri, 29 May 2009 23:01:05 +0500
sessionmanager: Removed reference to global 'sessions' Waqas Hussain Fri, 29 May 2009 22:56:14 +0500
sessionmanager, mod_tls: Mark a session as secure when TLS is active Matthew Wild Fri, 29 May 2009 14:28:53 +0100
sessionmanager: Miscellaneous logging improvements, changing levels, improving messages and using session loggers where possible Matthew Wild Thu, 30 Apr 2009 02:45:10 +0100
sessionmanager, componentmanager: Fix some wacky indentation (thanks greyback!) Matthew Wild Wed, 08 Apr 2009 23:20:22 +0100
sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream Matthew Wild Sun, 05 Apr 2009 20:06:39 +0100
core.sessionmanager: Hop out of <status> tag so that MUC doesn't insert into the wrong level Matthew Wild Fri, 03 Apr 2009 01:29:59 +0100
Fixed: sessionmanager: Apply nameprep on hostname passed in stream tag (part of issue #57) Waqas Hussain Mon, 30 Mar 2009 03:03:06 +0500
0.3->0.4 Matthew Wild Fri, 20 Mar 2009 20:16:25 +0000
Fixed: kick_old resource conflict resolution policy could fail with a backtrace Waqas Hussain Thu, 12 Feb 2009 18:23:00 +0500
Update copyright notices for 2009 Matthew Wild Fri, 30 Jan 2009 17:59:26 +0000
0.2->0.3 Matthew Wild Fri, 30 Jan 2009 17:40:25 +0000
GPL->MIT! Matthew Wild Fri, 30 Jan 2009 17:22:56 +0000
Set session.ip to the IP address of connecting clients Matthew Wild Mon, 12 Jan 2009 02:59:45 +0000
Remove old debugging line from sessionmanager Matthew Wild Tue, 16 Dec 2008 02:30:24 +0000
0.1 -> 0.2 Matthew Wild Wed, 10 Dec 2008 15:44:03 +0000
Newline at end of file for sessionmanager Matthew Wild Wed, 10 Dec 2008 15:32:51 +0000
stanza_dispatch = core_process_stanza, fixed for xmpp{client,server} listeners, and sessionmanager for the new syntax Matthew Wild Sun, 07 Dec 2008 19:04:23 +0000
Remove print()s from sessionmanager and s2smanager Matthew Wild Sat, 06 Dec 2008 23:14:39 +0000
Add hostmanager, and eventmanager Matthew Wild Sat, 06 Dec 2008 03:41:49 +0000
Backed out changeset 099d8a102deb (committed too much) Matthew Wild Fri, 05 Dec 2008 19:49:16 +0000
Add TLS socket to readlist before handshake starts, fixes major slow-down on TLS connections Matthew Wild Fri, 05 Dec 2008 19:24:01 +0000
Added an error log message for this case Matthew Wild Wed, 03 Dec 2008 18:06:04 +0000
Quick fix for an issue that needs more looking into Matthew Wild Wed, 03 Dec 2008 18:01:56 +0000
Insert copyright/license headers Matthew Wild Wed, 03 Dec 2008 14:39:07 +0000
Added options to limit the number of resources and for handling of resource conflicts Waqas Hussain Thu, 27 Nov 2008 02:48:08 +0500
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME. Matthew Wild Thu, 20 Nov 2008 01:33:25 +0000
Log number of open sessions on session creation Matthew Wild Thu, 20 Nov 2008 01:32:24 +0000
Fix sending of unavailable presence on disconnect Matthew Wild Wed, 19 Nov 2008 05:07:52 +0000
session:disconnect() -> session:close() for consistency with other Lua APIs Matthew Wild Tue, 18 Nov 2008 19:44:54 +0000
Remove useless check for unavailable presence (which never exists) Matthew Wild Tue, 18 Nov 2008 19:40:04 +0000
Quite some changes, to: Matthew Wild Tue, 18 Nov 2008 17:52:33 +0000
Allow us to close client connections, with or without a stream error. Partially fixes #8, we still need the same for s2s (though it should be almost a straight copy of the code, I'm too tired atm) Matthew Wild Tue, 18 Nov 2008 05:13:29 +0000
Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send) Waqas Hussain Sun, 16 Nov 2008 05:06:38 +0500
Fixed sessionmanager to not send session in place of stream features... Waqas Hussain Sun, 16 Nov 2008 04:45:31 +0500
Fixed sessionmanager to use appropriate method for sending stream features Waqas Hussain Sun, 16 Nov 2008 04:37:54 +0500
Code cleanup for resource binding Waqas Hussain Sun, 16 Nov 2008 03:16:53 +0500
Outbound presence subscription Waqas Hussain Sat, 25 Oct 2008 21:16:08 +0500
Routing code reorganization Waqas Hussain Sat, 25 Oct 2008 06:49:48 +0500
Fix for sessionmanager to not throw error when session doesn't have a private logger Matthew Wild Fri, 24 Oct 2008 14:47:23 +0100
Merging more s2s Matthew Wild Fri, 24 Oct 2008 07:36:48 +0100
Partial s2s commit Matthew Wild Fri, 24 Oct 2008 07:34:13 +0100
s2s works! \o/ \o/ s2s Matthew Wild Fri, 24 Oct 2008 07:27:36 +0100
dialback keys now verified s2s Matthew Wild Fri, 24 Oct 2008 03:06:55 +0100
Final fix for marking user offline when all resources are gone :) Matthew Wild Thu, 23 Oct 2008 18:05:06 +0100
even faster checking for other sessions... thank you waqas :) Matthew Wild Thu, 23 Oct 2008 17:34:10 +0100
faster checking for other sessions Matthew Wild Thu, 23 Oct 2008 17:27:41 +0100
Fix for not destroying sessions when connection closed. Matthew Wild Thu, 23 Oct 2008 16:07:40 +0100
Merge roster & presence from waqas Matthew Wild Wed, 22 Oct 2008 23:12:26 +0100
Added: TODO Waqas Hussain Wed, 22 Oct 2008 21:20:47 +0500
Added some roster management functions Waqas Hussain Sun, 12 Oct 2008 17:40:03 +0500
Abstract connections with "connection listeners" Matthew Wild Wed, 22 Oct 2008 17:36:21 +0100
Load roster on resource bind Waqas Hussain Wed, 08 Oct 2008 19:30:35 +0500
Fix setting resource before we even know what it is Matthew Wild Sat, 04 Oct 2008 17:59:32 +0100
Session destruction fixes, some debugging code while we fix the rest. Also change logger to be more useful. Matthew Wild Sat, 04 Oct 2008 15:25:54 +0100
New "import" module to help tidy up all the local declarations at the top of modules Matthew Wild Sat, 04 Oct 2008 02:43:23 +0100
Add "uuid" library and make sessionmanager use this. Matthew Wild Sat, 04 Oct 2008 02:12:54 +0100
An oops in sessionmanager stream:features code :) Matthew Wild Fri, 03 Oct 2008 22:21:01 +0100
Move stream opening handling from xmlhandlers to sessionmanager Matthew Wild Fri, 03 Oct 2008 22:18:08 +0100
SASL! Matthew Wild Thu, 02 Oct 2008 01:08:58 +0100
Huge commit to: Matthew Wild Tue, 30 Sep 2008 19:52:00 +0100