prosody.git
14 years agoHACKERS: Update
Matthew Wild [Thu, 18 Feb 2010 17:12:37 +0000 (17:12 +0000)]
HACKERS: Update

14 years agoTODO: Update for the fact that 0.7 is done
Matthew Wild [Wed, 3 Mar 2010 20:41:17 +0000 (20:41 +0000)]
TODO: Update for the fact that 0.7 is done

14 years agoTODO: Update
Matthew Wild [Thu, 18 Feb 2010 17:10:45 +0000 (17:10 +0000)]
TODO: Update

14 years agomod_tls: Set the sslctx on outgoing connections (possibly the cause of outgoing s2s...
Matthew Wild [Sun, 31 Jan 2010 15:39:49 +0000 (15:39 +0000)]
mod_tls: Set the sslctx on outgoing connections (possibly the cause of outgoing s2s connections not being encrypted)

14 years agos2smanager: Fix syntax error)
Matthew Wild [Sat, 30 Jan 2010 18:45:46 +0000 (18:45 +0000)]
s2smanager: Fix syntax error)

14 years agos2smanager: require_s2s_encryption -> s2s_require_encryption
Matthew Wild [Sat, 30 Jan 2010 17:00:47 +0000 (17:00 +0000)]
s2smanager: require_s2s_encryption -> s2s_require_encryption

14 years agos2smanager: Make require_s2s_encryption do what it says on the tin
Matthew Wild [Sat, 30 Jan 2010 16:42:27 +0000 (16:42 +0000)]
s2smanager: Make require_s2s_encryption do what it says on the tin

14 years agoprosodyctl: Fix to load LuaRocks 2.x if we have it
Matthew Wild [Wed, 3 Mar 2010 20:12:24 +0000 (20:12 +0000)]
prosodyctl: Fix to load LuaRocks 2.x if we have it

14 years agoutil.dependencies: Load luarocks.loader/luarocks.require
Matthew Wild [Thu, 28 Jan 2010 18:10:20 +0000 (18:10 +0000)]
util.dependencies: Load luarocks.loader/luarocks.require

14 years agoprosodyctl: Use mode r+ for opening the file so 1) it fails if the file doesn't exist...
Matthew Wild [Wed, 13 Jan 2010 00:04:38 +0000 (00:04 +0000)]
prosodyctl: Use mode r+ for opening the file so 1) it fails if the file doesn't exist 2) we have write access to  lock it

14 years agomod_posix: Adjust file open mode depending on whether file exists (take that fopen...
Matthew Wild [Wed, 13 Jan 2010 00:03:22 +0000 (00:03 +0000)]
mod_posix: Adjust file open mode depending on whether file exists (take that fopen designers!!!)

14 years agoutil.prosodyctl: Report Prosody as not running if the pidfile isn't locked
Matthew Wild [Mon, 11 Jan 2010 00:14:33 +0000 (00:14 +0000)]
util.prosodyctl: Report Prosody as not running if the pidfile isn't locked

14 years agomod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile
Matthew Wild [Sun, 10 Jan 2010 23:49:38 +0000 (23:49 +0000)]
mod_posix: Lock pidfile when in use, shut down if we can't write or lock the pidfile

14 years agoutil.signal: Restore the old debug hook earlier, just in case we receive another...
Matthew Wild [Sun, 10 Jan 2010 03:54:29 +0000 (03:54 +0000)]
util.signal: Restore the old debug hook earlier, just in case we receive another signal between clearing the signal queue and restoring it

14 years agoutil.signal: Update version in header, and author's email
Matthew Wild [Sun, 10 Jan 2010 00:31:38 +0000 (00:31 +0000)]
util.signal: Update version in header, and author's email

14 years agoutil.signal: Queue up multiple signals, instead of trampling on the previous debug...
Matthew Wild [Sun, 10 Jan 2010 00:28:48 +0000 (00:28 +0000)]
util.signal: Queue up multiple signals, instead of trampling on the previous debug hook (and never clearing our own)

14 years agoprosody: net_activate_ports: Accept strings as well as numbers for specifying ports
Matthew Wild [Sat, 9 Jan 2010 07:12:30 +0000 (07:12 +0000)]
prosody: net_activate_ports: Accept strings as well as numbers for specifying ports

14 years agonet.dns: Make sure math.randomseed() gets passed an integer
Matthew Wild [Thu, 7 Jan 2010 01:26:01 +0000 (01:26 +0000)]
net.dns: Make sure math.randomseed() gets passed an integer

14 years agos2smanager: Stamp a 'to' on the reply stream:stream. This makes prosody happy.
Paul Aurich [Sun, 3 Jan 2010 19:26:36 +0000 (11:26 -0800)]
s2smanager: Stamp a 'to' on the reply stream:stream.  This makes prosody happy.

14 years agoprosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape...
Matthew Wild [Sun, 3 Jan 2010 03:36:40 +0000 (03:36 +0000)]
prosodyctl: Gracefully handle a missing stty command, and fall back to ANSI escape sequences

14 years agomod_httpserver: Rudimentary directory detection, return forbidden instead of causing...
Matthew Wild [Fri, 1 Jan 2010 21:32:23 +0000 (21:32 +0000)]
mod_httpserver: Rudimentary directory detection, return forbidden instead of causing a traceback (since commit 0325f241a26c)

14 years agomod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo
Matthew Wild [Mon, 21 Dec 2009 22:00:49 +0000 (22:00 +0000)]
mod_saslauth: Requiring c2s encryption means requiring c2s encryption... thanks Flo

14 years agos2smanager: Give reasons to destroy_session in more cases, including when DNS lookup...
Matthew Wild [Thu, 17 Dec 2009 21:50:02 +0000 (21:50 +0000)]
s2smanager: Give reasons to destroy_session in more cases, including when DNS lookup fails

14 years agoxmppserver_listener: When a connection fails, pass the reason to destroy_session
Matthew Wild [Thu, 17 Dec 2009 19:00:36 +0000 (19:00 +0000)]
xmppserver_listener: When a connection fails, pass the reason to destroy_session

14 years agos2smanager: Have both destroy_session and bounce_sendq accept a reason string to...
Matthew Wild [Thu, 17 Dec 2009 18:59:29 +0000 (18:59 +0000)]
s2smanager: Have both destroy_session and bounce_sendq accept a reason string to include in bounced stanzas

14 years agos2smanager: Send reply stream header only after checking we serve this host (sorry...
Matthew Wild [Thu, 17 Dec 2009 21:36:31 +0000 (21:36 +0000)]
s2smanager: Send reply stream header only after checking we serve this host (sorry darkrain... :) )

14 years agoxmppserver_listener: Make log messages during SRV retries clearer
Matthew Wild [Thu, 17 Dec 2009 19:01:57 +0000 (19:01 +0000)]
xmppserver_listener: Make log messages during SRV retries clearer

14 years agoprosody: Fixed a possible nil concatenation.
Waqas Hussain [Tue, 15 Dec 2009 19:11:54 +0000 (00:11 +0500)]
prosody: Fixed a possible nil concatenation.

14 years agonet.http: Don't expect the body on redirects
Matthew Wild [Thu, 10 Dec 2009 22:13:04 +0000 (22:13 +0000)]
net.http: Don't expect the body on redirects

14 years agomod_httpserver: Text files are text/plain, and not plain/text.
Waqas Hussain [Thu, 10 Dec 2009 11:52:08 +0000 (16:52 +0500)]
mod_httpserver: Text files are text/plain, and not plain/text.

14 years agonet.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic conten...
Waqas Hussain [Thu, 10 Dec 2009 11:36:33 +0000 (16:36 +0500)]
net.httpserver: Removed mime handling (now in mod_httpserver). Unknown dynamic content is now always served as text/html.

14 years agomod_httpserver: Removed a log message.
Waqas Hussain [Thu, 10 Dec 2009 11:34:38 +0000 (16:34 +0500)]
mod_httpserver: Removed a log message.

14 years agomod_httpserver: Read files in binary mode; fixes issues with serving binary files.
Waqas Hussain [Thu, 10 Dec 2009 11:27:17 +0000 (16:27 +0500)]
mod_httpserver: Read files in binary mode; fixes issues with serving binary files.

14 years agomod_httpserver: Skip returning a Content-Type when not known (application/octet-strea...
Waqas Hussain [Thu, 10 Dec 2009 11:25:50 +0000 (16:25 +0500)]
mod_httpserver: Skip returning a Content-Type when not known (application/octet-stream is not a correct default).

14 years agomod_httpserver: Return Content-Type header based on file extension.
Waqas Hussain [Thu, 10 Dec 2009 11:22:34 +0000 (16:22 +0500)]
mod_httpserver: Return Content-Type header based on file extension.

14 years agoutil.signal: Make kill() available on Solaris; really fixes #136.
Waqas Hussain [Wed, 9 Dec 2009 11:25:18 +0000 (16:25 +0500)]
util.signal: Make kill() available on Solaris; really fixes #136.

14 years agoprosody: Less strict matching for the magic 'interrupted' error
Matthew Wild [Mon, 7 Dec 2009 18:32:06 +0000 (18:32 +0000)]
prosody: Less strict matching for the magic 'interrupted' error

14 years agocomponentmanager: Set ssl_ctx[_in] for components correctly, and use global SSL conte...
Matthew Wild [Fri, 4 Dec 2009 18:59:28 +0000 (18:59 +0000)]
componentmanager: Set ssl_ctx[_in] for components correctly, and use global SSL context if available

14 years agoDisable SSLv2 by default, it's known to be insecure.
Paul Aurich [Fri, 4 Dec 2009 17:48:08 +0000 (09:48 -0800)]
Disable SSLv2 by default, it's known to be insecure.

14 years agonet.server_select: Restore checks for wantread/timeout errors on receive
Matthew Wild [Thu, 3 Dec 2009 19:18:18 +0000 (19:18 +0000)]
net.server_select: Restore checks for wantread/timeout errors on receive

14 years agonet.server_select: Make bufferlen() method return, of all things, the buffer length
Matthew Wild [Thu, 3 Dec 2009 14:08:54 +0000 (14:08 +0000)]
net.server_select: Make bufferlen() method return, of all things, the buffer length

14 years agonet.server_select: Fix possibility of losing data sent from a socket just before...
Matthew Wild [Thu, 3 Dec 2009 02:28:34 +0000 (02:28 +0000)]
net.server_select: Fix possibility of losing data sent from a socket just before it closes (thanks Sjoerd Simons)

14 years agonet.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that...
Matthew Wild [Thu, 3 Dec 2009 01:13:06 +0000 (01:13 +0000)]
net.dns: Fix for blocking dns lookups to find waiting coroutines correctly (not that we use this in Prosody...)

14 years agonet.dns: Port some DNS fixes to the resolver:feed() function for net.adns to use
Matthew Wild [Thu, 3 Dec 2009 01:10:08 +0000 (01:10 +0000)]
net.dns: Port some DNS fixes to the resolver:feed() function for net.adns to use

14 years agonet.httpserver: Quick fix to set the correct Content-Type on simple (string) response...
Matthew Wild [Wed, 2 Dec 2009 18:02:47 +0000 (18:02 +0000)]
net.httpserver: Quick fix to set the correct Content-Type on simple (string) responses, for a few known types

14 years agos2smanager: Don't tostring() the data before sending, sends2s already does this.
Matthew Wild [Sat, 21 Nov 2009 13:47:45 +0000 (13:47 +0000)]
s2smanager: Don't tostring() the data before sending, sends2s already does this.

14 years agotests/test_core_s2smanager.lua: Fix to compare SRV weights correctly
Matthew Wild [Thu, 25 Feb 2010 17:54:23 +0000 (17:54 +0000)]
tests/test_core_s2smanager.lua: Fix to compare SRV weights correctly

14 years agos2smanager: Log and fail gracefully when unable to create socket for outgoing s2s...
Matthew Wild [Thu, 25 Feb 2010 17:53:27 +0000 (17:53 +0000)]
s2smanager: Log and fail gracefully when unable to create socket for outgoing s2s connection (thanks foucault)

14 years agos2smanager: Fix for the logic SRV record priority comparison (thanks darkrain)
Matthew Wild [Thu, 25 Feb 2010 17:52:33 +0000 (17:52 +0000)]
s2smanager: Fix for the logic SRV record priority comparison (thanks darkrain)

14 years agonet.adns: Trailing whitespace
Matthew Wild [Wed, 20 Jan 2010 02:44:38 +0000 (02:44 +0000)]
net.adns: Trailing whitespace

14 years agomod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes...
Matthew Wild [Wed, 9 Dec 2009 13:19:50 +0000 (13:19 +0000)]
mod_vcard: Stricter matching of vcard stanzas with vcard_compatibility enabled, fixes intercepting stanzas to the full JID that it shouldn't

14 years agoutil.dependencies: Fix package name of LuaFilesystem
Matthew Wild [Wed, 2 Dec 2009 22:13:31 +0000 (22:13 +0000)]
util.dependencies: Fix package name of LuaFilesystem

14 years agoMerge with Tobias
Matthew Wild [Wed, 2 Dec 2009 20:35:31 +0000 (20:35 +0000)]
Merge with Tobias

14 years agoMerge with Tobias
Matthew Wild [Wed, 2 Dec 2009 20:33:09 +0000 (20:33 +0000)]
Merge with Tobias

14 years agomodulemanager, net.dns: Remove trailing whitespace
Matthew Wild [Wed, 2 Dec 2009 20:32:44 +0000 (20:32 +0000)]
modulemanager, net.dns: Remove trailing whitespace

14 years agoprosodyctl: Experimental 'addplugin' command
Matthew Wild [Wed, 2 Dec 2009 20:31:54 +0000 (20:31 +0000)]
prosodyctl: Experimental 'addplugin' command

14 years agoutil.pluginloader: Support for fetching plugins from the data store
Matthew Wild [Wed, 2 Dec 2009 18:05:03 +0000 (18:05 +0000)]
util.pluginloader: Support for fetching plugins from the data store

14 years agonet.httpserver: Fix to work with new server API
Matthew Wild [Wed, 2 Dec 2009 18:03:10 +0000 (18:03 +0000)]
net.httpserver: Fix to work with new server API

14 years agonet.httpserver: Quick fix to set the correct Content-Type on simple (string) response...
Matthew Wild [Wed, 2 Dec 2009 18:02:47 +0000 (18:02 +0000)]
net.httpserver: Quick fix to set the correct Content-Type on simple (string) responses, for a few known types

14 years agomod_console: Show compression status on s2s:show() output.
Tobias Markmann [Tue, 1 Dec 2009 22:23:51 +0000 (23:23 +0100)]
mod_console: Show compression status on s2s:show() output.

14 years agoMerge with tip.
Tobias Markmann [Tue, 1 Dec 2009 22:05:32 +0000 (23:05 +0100)]
Merge with tip.

14 years agomod_proxy65: Remove trailing whitespace
Matthew Wild [Tue, 1 Dec 2009 20:18:47 +0000 (20:18 +0000)]
mod_proxy65: Remove trailing whitespace

14 years agomod_compression: Removing trailing whitespace.
Tobias Markmann [Tue, 1 Dec 2009 20:17:13 +0000 (21:17 +0100)]
mod_compression: Removing trailing whitespace.

14 years agomod_proxy65: Fix log:module -> module:log :)
Matthew Wild [Tue, 1 Dec 2009 20:07:07 +0000 (20:07 +0000)]
mod_proxy65: Fix log:module -> module:log :)

14 years agomod_compression: Declaring the de-/compression pipes as local.
Tobias Markmann [Tue, 1 Dec 2009 20:04:02 +0000 (21:04 +0100)]
mod_compression: Declaring the de-/compression pipes as local.

14 years agomod_compression: Some comment clean up.
Tobias Markmann [Tue, 1 Dec 2009 19:59:42 +0000 (20:59 +0100)]
mod_compression: Some comment clean up.

14 years agoMerge with trunk
Matthew Wild [Tue, 1 Dec 2009 19:57:54 +0000 (19:57 +0000)]
Merge with trunk

14 years agomodulemanager: Fire events module-loaded and module-unloaded, both receive a table...
Matthew Wild [Tue, 1 Dec 2009 19:57:33 +0000 (19:57 +0000)]
modulemanager: Fire events module-loaded and module-unloaded, both receive a table with 'module' and 'host' fields, thanks bjc

14 years agoMerge with tip.
Tobias Markmann [Tue, 1 Dec 2009 19:55:32 +0000 (20:55 +0100)]
Merge with tip.

14 years agoutil.sasl.plain: Allow empty authzid (thanks bjc).
Waqas Hussain [Tue, 1 Dec 2009 17:32:37 +0000 (22:32 +0500)]
util.sasl.plain: Allow empty authzid (thanks bjc).

14 years agomod_compression: Removing forgotten debugging output.
Tobias Markmann [Mon, 30 Nov 2009 23:21:32 +0000 (00:21 +0100)]
mod_compression: Removing forgotten debugging output.

14 years agomod_compression: Define db (dialback) namespace in stream header.
Tobias Markmann [Mon, 30 Nov 2009 23:10:47 +0000 (00:10 +0100)]
mod_compression: Define db (dialback) namespace in stream header.

14 years agoMerge with tip.
Tobias Markmann [Mon, 30 Nov 2009 22:25:10 +0000 (23:25 +0100)]
Merge with tip.

14 years agomod_compression: Enabeling compression for outgoing s2s streams.
Tobias Markmann [Mon, 30 Nov 2009 22:23:42 +0000 (23:23 +0100)]
mod_compression: Enabeling compression for outgoing s2s streams.

14 years agoutil.hmac: Optimized.
Waqas Hussain [Mon, 30 Nov 2009 21:23:48 +0000 (02:23 +0500)]
util.hmac: Optimized.

14 years agoutil.sasl.scram: Optimized binaryXOR.
Waqas Hussain [Mon, 30 Nov 2009 20:45:56 +0000 (01:45 +0500)]
util.sasl.scram: Optimized binaryXOR.

14 years agoutil.sasl.scram: Fixed a variable redeclaration.
Waqas Hussain [Mon, 30 Nov 2009 20:41:31 +0000 (01:41 +0500)]
util.sasl.scram: Fixed a variable redeclaration.

14 years agoutil.sasl.scram: Making =2D and =3D substitution actually work.
Tobias Markmann [Mon, 30 Nov 2009 19:53:25 +0000 (20:53 +0100)]
util.sasl.scram: Making =2D and =3D substitution actually work.

14 years agoutil.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns
Matthew Wild [Mon, 30 Nov 2009 16:39:27 +0000 (16:39 +0000)]
util.stanza: Add stanza:get_child(name, xmlns) to find a child tag given a name/xmlns

14 years agomod_compression: Some further refactoring.
Tobias Markmann [Sun, 29 Nov 2009 22:43:12 +0000 (23:43 +0100)]
mod_compression: Some further refactoring.

14 years agomod_compression: Make setup_compression work for s2s sessions too.
Tobias Markmann [Sun, 29 Nov 2009 22:04:19 +0000 (23:04 +0100)]
mod_compression: Make setup_compression work for s2s sessions too.

14 years agomod_compression: Moving compression setup in a dedicated function.
Tobias Markmann [Sun, 29 Nov 2009 21:18:06 +0000 (22:18 +0100)]
mod_compression: Moving compression setup in a dedicated function.

14 years agomod_compression: Prepare activating of compression on s2s.
Tobias Markmann [Sun, 29 Nov 2009 21:02:21 +0000 (22:02 +0100)]
mod_compression: Prepare activating of compression on s2s.

14 years agoMerge with tip.
Tobias Markmann [Sun, 29 Nov 2009 20:33:37 +0000 (21:33 +0100)]
Merge with tip.

14 years agoEnable one way stream compression on s2s links.
Tobias Markmann [Sun, 29 Nov 2009 20:32:39 +0000 (21:32 +0100)]
Enable one way stream compression on s2s links.

14 years agoutil.sasl.plain: A little refactoring.
Waqas Hussain [Sun, 29 Nov 2009 13:30:33 +0000 (18:30 +0500)]
util.sasl.plain: A little refactoring.

14 years agoMerge with 0.6.
Waqas Hussain [Sun, 29 Nov 2009 13:29:19 +0000 (18:29 +0500)]
Merge with 0.6.

14 years agoutil.sasl.digest-md5: Fixing some variable access.
Tobias Markmann [Sat, 28 Nov 2009 17:58:58 +0000 (18:58 +0100)]
util.sasl.digest-md5: Fixing some variable access.

14 years agoMerge with Tobias
Matthew Wild [Sat, 28 Nov 2009 17:40:49 +0000 (17:40 +0000)]
Merge with Tobias

14 years agoxmppserver_listener: Update for new server API, fixes traceback when closing s2s...
Matthew Wild [Sat, 28 Nov 2009 17:40:37 +0000 (17:40 +0000)]
xmppserver_listener: Update for new server API, fixes traceback when closing s2s connections

14 years agomod_console: Update for new server API, fixes traceback when closing console sessions
Matthew Wild [Sat, 28 Nov 2009 17:39:05 +0000 (17:39 +0000)]
mod_console: Update for new server API, fixes traceback when closing console sessions

14 years agoMake some more variables to locals.
Tobias Markmann [Sat, 28 Nov 2009 17:32:41 +0000 (18:32 +0100)]
Make some more variables to locals.

14 years agoutil.sasl: Move some variables to local space. Fix a bug.
Tobias Markmann [Sat, 28 Nov 2009 17:23:25 +0000 (18:23 +0100)]
util.sasl: Move some variables to local space. Fix a bug.

14 years agoutil.sasl.plain: Fail gracefully on empty <auth/> tag
Matthew Wild [Sat, 28 Nov 2009 15:12:43 +0000 (15:12 +0000)]
util.sasl.plain: Fail gracefully on empty <auth/> tag

14 years agomod_saslauth: Fix typo in variable name
Matthew Wild [Sat, 28 Nov 2009 15:12:07 +0000 (15:12 +0000)]
mod_saslauth: Fix typo in variable name

14 years agonet.server_select: Update conn.close() to use new connection method convention
Matthew Wild [Sat, 28 Nov 2009 14:09:53 +0000 (14:09 +0000)]
net.server_select: Update conn.close() to use new connection method convention

14 years agocore.xmlhandlers: Fixed processing of empty namespaces (which caused an issue with...
Waqas Hussain [Sat, 28 Nov 2009 07:00:31 +0000 (12:00 +0500)]
core.xmlhandlers: Fixed processing of empty namespaces (which caused an issue with jwchat).

14 years agomod_register: Properly notify contacts of subscription removal on account deletion.
Waqas Hussain [Sat, 28 Nov 2009 06:59:06 +0000 (11:59 +0500)]
mod_register: Properly notify contacts of subscription removal on account deletion.

14 years agomod_proxy65: Use new jid.join() from util.jid
Matthew Wild [Fri, 27 Nov 2009 18:02:24 +0000 (18:02 +0000)]
mod_proxy65: Use new jid.join() from util.jid

14 years agotests/test.lua: Changes to environment handling of tests, and replace module() with...
Matthew Wild [Fri, 27 Nov 2009 18:00:47 +0000 (18:00 +0000)]
tests/test.lua: Changes to environment handling of tests, and replace module() with dummy function that doesn't alter the current environment