prosody.git
13 years agonet.xmppcomponent_listener: Removed unnecessary and problematic cleanup code.
Waqas Hussain [Tue, 9 Nov 2010 20:52:03 +0000 (01:52 +0500)]
net.xmppcomponent_listener: Removed unnecessary and problematic cleanup code.

13 years agomod_component: Updated to use events for hooking stanzas instead of the component...
Waqas Hussain [Tue, 9 Nov 2010 20:51:03 +0000 (01:51 +0500)]
mod_component: Updated to use events for hooking stanzas instead of the component stanza handler, and the on_destroy callback.

13 years agoMUC: Handle missing <value/> for <field type='boolean'/> in config form submissions.
Waqas Hussain [Tue, 9 Nov 2010 19:24:17 +0000 (00:24 +0500)]
MUC: Handle missing <value/> for <field type='boolean'/> in config form submissions.

13 years agomod_component: Send back a <conflict/> stream error when multiple sessions attempt...
Waqas Hussain [Tue, 9 Nov 2010 15:23:28 +0000 (20:23 +0500)]
mod_component: Send back a <conflict/> stream error when multiple sessions attempt to bind.

13 years agonet.xmppcomponent_listener: Call session:on_destroy() on session disconnect.
Waqas Hussain [Tue, 9 Nov 2010 15:22:08 +0000 (20:22 +0500)]
net.xmppcomponent_listener: Call session:on_destroy() on session disconnect.

13 years agoMUC: Preserve the global rooms table through reloads.
Waqas Hussain [Mon, 8 Nov 2010 20:19:17 +0000 (01:19 +0500)]
MUC: Preserve the global rooms table through reloads.

13 years agoMUC: Expose the rooms table as a global 'rooms'.
Waqas Hussain [Mon, 8 Nov 2010 20:07:39 +0000 (01:07 +0500)]
MUC: Expose the rooms table as a global 'rooms'.

13 years agoMUC: Allow restricting room creation to local JIDs (thanks thomas.mangin).
Waqas Hussain [Mon, 8 Nov 2010 15:44:53 +0000 (20:44 +0500)]
MUC: Allow restricting room creation to local JIDs (thanks thomas.mangin).

13 years agomod_tls: Pass the hostname rather than host session to certmanager.create_context...
Matthew Wild [Mon, 8 Nov 2010 03:12:30 +0000 (03:12 +0000)]
mod_tls: Pass the hostname rather than host session to certmanager.create_context() (thanks darkrain)

13 years agoconfigmanager: Atomic reloads, and some other internal changes to achieve this
Matthew Wild [Sun, 7 Nov 2010 20:38:01 +0000 (20:38 +0000)]
configmanager: Atomic reloads, and some other internal changes to achieve this

13 years agomod_disco: Renamed the 'session' property of the account-disco-info and account-disco...
Waqas Hussain [Sun, 7 Nov 2010 15:53:08 +0000 (20:53 +0500)]
mod_disco: Renamed the 'session' property of the account-disco-info and account-disco-items events to 'origin' for consistency.

13 years agocertmanager, hostmanager, mod_tls: Move responsibility for creating per-host SSL...
Matthew Wild [Sat, 6 Nov 2010 18:28:15 +0000 (18:28 +0000)]
certmanager, hostmanager, mod_tls: Move responsibility for creating per-host SSL contexts to mod_tls, meaning reloading certs is now as trivial as reloading mod_tls

13 years agoutil.httpstream: Added support for chunked transfer encoding.
Waqas Hussain [Fri, 5 Nov 2010 22:46:19 +0000 (03:46 +0500)]
util.httpstream: Added support for chunked transfer encoding.

13 years agonet.http: Removed old HTTP parser, and updated to use util.httpstream.
Waqas Hussain [Fri, 5 Nov 2010 22:46:00 +0000 (03:46 +0500)]
net.http: Removed old HTTP parser, and updated to use util.httpstream.

13 years agoutil.httpstream: Fixed a possible string to number comparison error.
Waqas Hussain [Fri, 5 Nov 2010 22:41:05 +0000 (03:41 +0500)]
util.httpstream: Fixed a possible string to number comparison error.

13 years agoutil.httpstream: Don't attempt to read response body for HEAD requests, or when statu...
Waqas Hussain [Fri, 5 Nov 2010 20:58:46 +0000 (01:58 +0500)]
util.httpstream: Don't attempt to read response body for HEAD requests, or when status code indicates no body is present.

13 years agoutil.httpstream: Added support for an options callback, to allow passing per-message...
Waqas Hussain [Fri, 5 Nov 2010 20:54:58 +0000 (01:54 +0500)]
util.httpstream: Added support for an options callback, to allow passing per-message options to the parser.

13 years agoutil.httpstream: A little refactoring of the coroutine control flow.
Waqas Hussain [Fri, 5 Nov 2010 20:08:30 +0000 (01:08 +0500)]
util.httpstream: A little refactoring of the coroutine control flow.

13 years agoutil.httpstream: Added support for HTTP response parsing.
Waqas Hussain [Thu, 4 Nov 2010 22:07:36 +0000 (03:07 +0500)]
util.httpstream: Added support for HTTP response parsing.

13 years agoutil.httpstream: Fixed a nil variable access introduced in the last commit.
Waqas Hussain [Thu, 4 Nov 2010 22:06:11 +0000 (03:06 +0500)]
util.httpstream: Fixed a nil variable access introduced in the last commit.

13 years agoutil.httpstream: Move HTTP header parsing into its own function.
Waqas Hussain [Thu, 4 Nov 2010 21:09:56 +0000 (02:09 +0500)]
util.httpstream: Move HTTP header parsing into its own function.

13 years agocomponentmanager: Removed unused function set_component_handler.
Waqas Hussain [Thu, 4 Nov 2010 15:12:42 +0000 (20:12 +0500)]
componentmanager: Removed unused function set_component_handler.

13 years agoMUC: Use events for hooking stanzas instead of the component stanza handler.
Waqas Hussain [Thu, 4 Nov 2010 14:38:05 +0000 (19:38 +0500)]
MUC: Use events for hooking stanzas instead of the component stanza handler.

13 years agomod_proxy65: Removed useless checks from the event handler.
Waqas Hussain [Thu, 4 Nov 2010 14:26:04 +0000 (19:26 +0500)]
mod_proxy65: Removed useless checks from the event handler.

13 years agomod_proxy65: Use "iq/host" event for hooking stanzas instead of the component stanza...
Waqas Hussain [Thu, 4 Nov 2010 14:18:32 +0000 (19:18 +0500)]
mod_proxy65: Use "iq/host" event for hooking stanzas instead of the component stanza handler.

13 years agomod_console: Keep global variable assignments sandboxed by default.
Waqas Hussain [Thu, 4 Nov 2010 13:44:57 +0000 (18:44 +0500)]
mod_console: Keep global variable assignments sandboxed by default.

13 years agoutil.logger: Remove support for a global writer (setwriter) to try and balance the...
Matthew Wild [Thu, 4 Nov 2010 08:42:18 +0000 (08:42 +0000)]
util.logger: Remove support for a global writer (setwriter) to try and balance the forces...

13 years agomod_posix: Remove redundant import of logger.setwriter()
Matthew Wild [Thu, 4 Nov 2010 08:41:24 +0000 (08:41 +0000)]
mod_posix: Remove redundant import of logger.setwriter()

13 years agoutil.logger: Remove my precious premature optimisation :(
Matthew Wild [Thu, 4 Nov 2010 08:37:39 +0000 (08:37 +0000)]
util.logger: Remove my precious premature optimisation :(

13 years agomod_saslauth: Allow restarting SASL negotiation from scratch.
Waqas Hussain [Tue, 2 Nov 2010 17:23:07 +0000 (22:23 +0500)]
mod_saslauth: Allow restarting SASL negotiation from scratch.

13 years agomod_saslauth: Separated processing of <auth/> and <response/> elements, and return...
Waqas Hussain [Tue, 2 Nov 2010 17:05:19 +0000 (22:05 +0500)]
mod_saslauth: Separated processing of <auth/> and <response/> elements, and return proper error on out-of-order <response/> elements.

13 years agomod_saslauth: Moved SASL mechanism selection and CDATA handling into separate functions.
Waqas Hussain [Tue, 2 Nov 2010 16:19:50 +0000 (21:19 +0500)]
mod_saslauth: Moved SASL mechanism selection and CDATA handling into separate functions.

13 years agoutil.sasl, util.sasl_cyrus: Mechanism selection cleaned up to be more consistent.
Waqas Hussain [Tue, 2 Nov 2010 13:58:11 +0000 (18:58 +0500)]
util.sasl, util.sasl_cyrus: Mechanism selection cleaned up to be more consistent.

13 years agoutil.sasl, util.sasl_cyrus: Load mechanisms list early rather than lazily, as they...
Waqas Hussain [Tue, 2 Nov 2010 13:04:56 +0000 (18:04 +0500)]
util.sasl, util.sasl_cyrus: Load mechanisms list early rather than lazily, as they are always loaded anyway.

13 years agomod_saslauth: Handle SASL <abort/> properly.
Waqas Hussain [Tue, 2 Nov 2010 10:07:25 +0000 (15:07 +0500)]
mod_saslauth: Handle SASL <abort/> properly.

13 years agocomponentmanager: Removed an unused third parameter from the register_component function.
Waqas Hussain [Mon, 1 Nov 2010 23:29:54 +0000 (04:29 +0500)]
componentmanager: Removed an unused third parameter from the register_component function.

13 years agoutil.template: Optimized to be almost as fast as manual stanza building.
Waqas Hussain [Sun, 24 Oct 2010 10:08:22 +0000 (15:08 +0500)]
util.template: Optimized to be almost as fast as manual stanza building.

13 years agoutil.template: Initial commit. A template library for XML stanzas.
Waqas Hussain [Sun, 24 Oct 2010 10:06:13 +0000 (15:06 +0500)]
util.template: Initial commit. A template library for XML stanzas.

13 years agonet.dns: Fixed a traceback when util/windows.dll is unavailable on windows.
Waqas Hussain [Fri, 22 Oct 2010 05:45:45 +0000 (10:45 +0500)]
net.dns: Fixed a traceback when util/windows.dll is unavailable on windows.

13 years agonet.server_select: Restore real sendbuffer() before calling onconnect handler, in...
Matthew Wild [Fri, 22 Oct 2010 05:33:30 +0000 (06:33 +0100)]
net.server_select: Restore real sendbuffer() before calling onconnect handler, in case onconnect sends data and the socket is still writeable (causing stack overflow into sendbuffer()/onconnect())

13 years agomod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply.
Waqas Hussain [Fri, 22 Oct 2010 03:36:54 +0000 (08:36 +0500)]
mod_bosh: Don't add a Content-Type header to the HTTP OPTIONS reply.

13 years agoejabberdsql2prosody: Added a global 'prosody' table to fix a traceback.
Waqas Hussain [Tue, 19 Oct 2010 22:57:47 +0000 (03:57 +0500)]
ejabberdsql2prosody: Added a global 'prosody' table to fix a traceback.

13 years agoMonster whitespace commit (beware the whitespace monster).
Waqas Hussain [Sat, 16 Oct 2010 18:00:42 +0000 (23:00 +0500)]
Monster whitespace commit (beware the whitespace monster).

13 years agomodulemanager, stanza_router: Moved modulemanager.handle_stanza to stanza_router...
Waqas Hussain [Sat, 16 Oct 2010 03:34:32 +0000 (08:34 +0500)]
modulemanager, stanza_router: Moved modulemanager.handle_stanza to stanza_router, as a local function handle_unhandled_stanza. modulemanager is no longer a dependency of stanza_router.

13 years agomodulemanager: Removed another legacy events API (add_event_hook), and related code.
Waqas Hussain [Sat, 16 Oct 2010 03:15:11 +0000 (08:15 +0500)]
modulemanager: Removed another legacy events API (add_event_hook), and related code.

13 years agomod_posix: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 02:45:12 +0000 (07:45 +0500)]
mod_posix: Updated to use the new events API.

13 years agomodulemanager: Removed legacy events API, and related code.
Waqas Hussain [Sat, 16 Oct 2010 02:31:50 +0000 (07:31 +0500)]
modulemanager: Removed legacy events API, and related code.

13 years agomod_saslauth: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 02:18:01 +0000 (07:18 +0500)]
mod_saslauth: Updated to use the new events API.

13 years agomod_dialback: Fixed indentation.
Waqas Hussain [Sat, 16 Oct 2010 02:08:19 +0000 (07:08 +0500)]
mod_dialback: Fixed indentation.

13 years agomod_dialback: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 02:06:16 +0000 (07:06 +0500)]
mod_dialback: Updated to use the new events API.

13 years agomod_compression: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 01:53:59 +0000 (06:53 +0500)]
mod_compression: Updated to use the new events API.

13 years agomod_component: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 01:38:38 +0000 (06:38 +0500)]
mod_component: Updated to use the new events API.

13 years agomodulemanager: Removed add_iq_handler() from the plugin API.
Waqas Hussain [Sat, 16 Oct 2010 01:25:55 +0000 (06:25 +0500)]
modulemanager: Removed add_iq_handler() from the plugin API.

13 years agomod_register: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 00:59:26 +0000 (05:59 +0500)]
mod_register: Updated to use the new events API.

13 years agomod_legacyauth: Limit authentication to unauthenticated client connections.
Waqas Hussain [Sat, 16 Oct 2010 00:46:23 +0000 (05:46 +0500)]
mod_legacyauth: Limit authentication to unauthenticated client connections.

13 years agomod_legacyauth: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 00:41:49 +0000 (05:41 +0500)]
mod_legacyauth: Updated to use the new events API.

13 years agomod_roster: Cleaned up some unused variables and global accesses.
Waqas Hussain [Sat, 16 Oct 2010 00:31:40 +0000 (05:31 +0500)]
mod_roster: Cleaned up some unused variables and global accesses.

13 years agomod_roster: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 00:26:46 +0000 (05:26 +0500)]
mod_roster: Updated to use the new events API.

13 years agomod_saslauth: Improved logging a bit.
Waqas Hussain [Sat, 16 Oct 2010 00:16:45 +0000 (05:16 +0500)]
mod_saslauth: Improved logging a bit.

13 years agomod_saslauth: Updated to use the new events API.
Waqas Hussain [Sat, 16 Oct 2010 00:03:00 +0000 (05:03 +0500)]
mod_saslauth: Updated to use the new events API.

13 years agomod_private: Updated to use the new events API. Smaller, more robust.
Waqas Hussain [Fri, 15 Oct 2010 23:11:48 +0000 (04:11 +0500)]
mod_private: Updated to use the new events API. Smaller, more robust.

13 years agoMerge hoelzro->trunk
Matthew Wild [Fri, 15 Oct 2010 17:40:37 +0000 (18:40 +0100)]
Merge hoelzro->trunk

13 years agoMerge hoelzro->trunk
Matthew Wild [Fri, 15 Oct 2010 16:07:17 +0000 (17:07 +0100)]
Merge hoelzro->trunk

13 years agoAlter mod_offline to respect negative priority resources
Robert Hoelz [Fri, 15 Oct 2010 15:09:46 +0000 (10:09 -0500)]
Alter mod_offline to respect negative priority resources

13 years agoDon't send offline messages to resource with negative priorities
Robert Hoelz [Fri, 15 Oct 2010 05:53:05 +0000 (00:53 -0500)]
Don't send offline messages to resource with negative priorities

13 years agoMUC: Use util.dataforms to generate forms
Kim Alvefur [Tue, 12 Oct 2010 21:42:28 +0000 (23:42 +0200)]
MUC: Use util.dataforms to generate forms

13 years agoMUC: fix timezone support when sending history
Kim Alvefur [Tue, 12 Oct 2010 21:34:16 +0000 (23:34 +0200)]
MUC: fix timezone support when sending history

13 years agoconfigmanager: Allow VirtualHost/Component definitions to be followed by a table...
Matthew Wild [Fri, 8 Oct 2010 02:19:20 +0000 (03:19 +0100)]
configmanager: Allow VirtualHost/Component definitions to be followed by a table of config options

13 years agocore.loggingmanager: Logging config simplification - allow [level] = filename and...
Matthew Wild [Fri, 8 Oct 2010 01:48:47 +0000 (02:48 +0100)]
core.loggingmanager: Logging config simplification - allow [level] = filename and *sink to appear in the config table

13 years agonet.dns: Support for parsing PTR records
Matthew Wild [Tue, 5 Oct 2010 23:13:24 +0000 (00:13 +0100)]
net.dns: Support for parsing PTR records

13 years agonet.dns: Add 'force' parameter to resolver:feed() to force decoding a packet even...
Matthew Wild [Tue, 5 Oct 2010 17:55:17 +0000 (18:55 +0100)]
net.dns: Add 'force' parameter to resolver:feed() to force decoding a packet even if it doesn't match an outstanding request

13 years agomod_adhoc: Answer disco#info for node=xmlns_cmd
Florian Zeitz [Fri, 1 Oct 2010 14:44:49 +0000 (16:44 +0200)]
mod_adhoc: Answer disco#info for node=xmlns_cmd

13 years agoMUC: Make the room node be the default room name (thanks Zash).
Waqas Hussain [Tue, 28 Sep 2010 11:36:17 +0000 (16:36 +0500)]
MUC: Make the room node be the default room name (thanks Zash).

13 years agoMerge with trunk.
Waqas Hussain [Mon, 27 Sep 2010 14:51:14 +0000 (19:51 +0500)]
Merge with trunk.

13 years agoMUC: Fixed traceback on presence errors lacking a condition.
Waqas Hussain [Mon, 27 Sep 2010 14:00:11 +0000 (19:00 +0500)]
MUC: Fixed traceback on presence errors lacking a condition.

13 years agoMUC: Added a 'Description' property (muc#roomconfig_roomdesc)
Kim Alvefur [Sun, 26 Sep 2010 16:15:30 +0000 (18:15 +0200)]
MUC: Added a 'Description' property (muc#roomconfig_roomdesc)

13 years agoMUC: Added a 'Name' property (muc#roomconfig_roomname)
Kim Alvefur [Fri, 24 Sep 2010 19:16:38 +0000 (21:16 +0200)]
MUC: Added a 'Name' property (muc#roomconfig_roomname)

13 years agonet.xmppcomponent_listener: Fixed a possible traceback in component disconnect handling.
Waqas Hussain [Tue, 21 Sep 2010 13:28:06 +0000 (18:28 +0500)]
net.xmppcomponent_listener: Fixed a possible traceback in component disconnect handling.

13 years agonet.xmppcomponent_listener: Specify missing log level for a log statement.
Waqas Hussain [Tue, 21 Sep 2010 12:46:59 +0000 (17:46 +0500)]
net.xmppcomponent_listener: Specify missing log level for a log statement.

13 years agonet.xmppcomponent_listener, mod_component: Removed useless undocumented option 'compo...
Waqas Hussain [Tue, 21 Sep 2010 12:37:11 +0000 (17:37 +0500)]
net.xmppcomponent_listener, mod_component: Removed useless undocumented option 'component_address'.

13 years agoutil.stanza: Make the current element <message> instead of <body> when body text...
Waqas Hussain [Tue, 21 Sep 2010 12:24:25 +0000 (17:24 +0500)]
util.stanza: Make the current element <message> instead of <body> when body text is passed to st.message().

13 years agoutil.events: Event handler indices are now built lazily (faster server startup for...
Waqas Hussain [Sun, 19 Sep 2010 12:51:00 +0000 (17:51 +0500)]
util.events: Event handler indices are now built lazily (faster server startup for large number of hosts).

13 years agoutil.events: Create new index on handler change instead of modifying existing one...
Waqas Hussain [Thu, 16 Sep 2010 23:09:59 +0000 (04:09 +0500)]
util.events: Create new index on handler change instead of modifying existing one (this makes util.events fully reentrant).

13 years agoutil.events: Fixed the exposed API for adding/removing sets of event handlers.
Waqas Hussain [Thu, 16 Sep 2010 23:09:58 +0000 (04:09 +0500)]
util.events: Fixed the exposed API for adding/removing sets of event handlers.

13 years agoutil.events: Removed dispatcher creation functions (these weren't being used).
Waqas Hussain [Thu, 16 Sep 2010 23:09:58 +0000 (04:09 +0500)]
util.events: Removed dispatcher creation functions (these weren't being used).

13 years agonet.httpserver: Removed old HTTP parser, and updated to use util.httpstream.
Waqas Hussain [Thu, 16 Sep 2010 23:06:07 +0000 (04:06 +0500)]
net.httpserver: Removed old HTTP parser, and updated to use util.httpstream.

13 years agoutil.httpstream: Refactored and simplified code to improve readability.
Waqas Hussain [Thu, 16 Sep 2010 22:52:11 +0000 (03:52 +0500)]
util.httpstream: Refactored and simplified code to improve readability.

13 years agoutil.httpstream: Removed unused variables.
Waqas Hussain [Thu, 16 Sep 2010 22:52:11 +0000 (03:52 +0500)]
util.httpstream: Removed unused variables.

13 years agoutil.httpstream: Initial commit of the new HTTP parser.
Waqas Hussain [Sat, 4 Sep 2010 12:44:13 +0000 (17:44 +0500)]
util.httpstream: Initial commit of the new HTTP parser.

13 years agoprosody.cfg.lua.dist: Small wording fix in comment (thanks darkrain)
Matthew Wild [Mon, 13 Sep 2010 00:29:12 +0000 (01:29 +0100)]
prosody.cfg.lua.dist: Small wording fix in comment (thanks darkrain)

13 years agomod_bosh: Fix traceback when initiating a BOSH session to an unknown host
Matthew Wild [Fri, 10 Sep 2010 16:56:24 +0000 (17:56 +0100)]
mod_bosh: Fix traceback when initiating a BOSH session to an unknown host

13 years agonet.server_select: Add server.step() to run through a single iteration of the event...
Matthew Wild [Thu, 9 Sep 2010 19:10:28 +0000 (20:10 +0100)]
net.server_select: Add server.step() to run through a single iteration of the event loop

13 years agoprosody.cfg.lua.dist: Add mod_adhoc and mod_admin_adhoc to the default config
Matthew Wild [Sun, 5 Sep 2010 18:28:37 +0000 (19:28 +0100)]
prosody.cfg.lua.dist: Add mod_adhoc and mod_admin_adhoc to the default config

13 years agos2smanager: Don't fire s2sin-destroyed for sessions that were never fully established...
Matthew Wild [Sun, 5 Sep 2010 17:00:21 +0000 (18:00 +0100)]
s2smanager: Don't fire s2sin-destroyed for sessions that were never fully established (thanks Thomas)

13 years agos2smanager: Fire s2s{in,out}-destroyed when s2s connections are destroyed
Matthew Wild [Sun, 5 Sep 2010 11:13:49 +0000 (12:13 +0100)]
s2smanager: Fire s2s{in,out}-destroyed when s2s connections are destroyed

13 years agomod_admin_adhoc: New module with merged functonality of mod_adhoc_cmd_admin and mod_a...
Florian Zeitz [Thu, 2 Sep 2010 21:09:49 +0000 (23:09 +0200)]
mod_admin_adhoc: New module with merged functonality of mod_adhoc_cmd_admin and mod_adhoc_cmd_modules (of prosody-modules fame)

13 years agomod_ping: Add ad-hoc command
Florian Zeitz [Thu, 2 Sep 2010 19:57:49 +0000 (21:57 +0200)]
mod_ping: Add ad-hoc command

13 years agomod_adhoc: remove 0.7 compat code
Florian Zeitz [Wed, 1 Sep 2010 20:46:35 +0000 (22:46 +0200)]
mod_adhoc: remove 0.7 compat code

13 years agomod_adhoc: Fix passing data to util.dataforms
Florian Zeitz [Wed, 1 Sep 2010 20:44:30 +0000 (22:44 +0200)]
mod_adhoc: Fix passing data to util.dataforms

13 years agomod_version: Use pposix.uname() if available and os_version_command not set
Matthew Wild [Tue, 31 Aug 2010 14:32:36 +0000 (15:32 +0100)]
mod_version: Use pposix.uname() if available and os_version_command not set