prosody.git
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 agomod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where...
Matthew Wild [Tue, 8 Dec 2009 01:24:16 +0000 (01:24 +0000)]
mod_posix: Fix to not loop in SIGTERM either, but the same happens with SIGHUP (where the same 'fix' can't be applied) - shall investigate tomorrow

14 years agoprosody: Report the current socket backend in use
Matthew Wild [Tue, 8 Dec 2009 01:23:22 +0000 (01:23 +0000)]
prosody: Report the current socket backend in use

14 years agonet.server_event: Add get_backend() method
Matthew Wild [Tue, 8 Dec 2009 01:22:54 +0000 (01:22 +0000)]
net.server_event: Add get_backend() method

14 years agonet.server_select: Add get_backend() method
Matthew Wild [Tue, 8 Dec 2009 01:22:09 +0000 (01:22 +0000)]
net.server_select: Add get_backend() method

14 years agomod_posix: Set empty SIGINT handler when a SIGINT is caught
Matthew Wild [Tue, 8 Dec 2009 01:16:24 +0000 (01:16 +0000)]
mod_posix: Set empty SIGINT handler when a SIGINT is caught

14 years agoprosody: Clarify and add some comments to describe what we're doing when and why
Matthew Wild [Tue, 8 Dec 2009 00:55:17 +0000 (00:55 +0000)]
prosody: Clarify and add some comments to describe what we're doing when and why

14 years agoRename closeallservers to closeall in the public API (same as net.server_select)...
Matthew Wild [Mon, 7 Dec 2009 19:26:50 +0000 (19:26 +0000)]
Rename closeallservers to closeall in the public API (same as net.server_select) and expose setquitting

14 years agonet.server_event: Add setquitting() function to be compatible with net.server_select
Matthew Wild [Mon, 7 Dec 2009 19:26:12 +0000 (19:26 +0000)]
net.server_event: Add setquitting() function to be compatible with net.server_select

14 years agonet.server_event: Fix closeallservers() to work correctly after the giant refactorizi...
Matthew Wild [Mon, 7 Dec 2009 19:25:16 +0000 (19:25 +0000)]
net.server_event: Fix closeallservers() to work correctly after the giant refactorizification

14 years agonet.server_event: Return "quitting" on loop exit to be compatible with net.server_sel...
Matthew Wild [Mon, 7 Dec 2009 18:42:31 +0000 (18:42 +0000)]
net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke

14 years agomod_posix: Catch SIGINT
Matthew Wild [Mon, 7 Dec 2009 18:38:35 +0000 (18:38 +0000)]
mod_posix: Catch SIGINT

14 years agoMerge with trunk
Matthew Wild [Mon, 7 Dec 2009 18:32:50 +0000 (18:32 +0000)]
Merge with trunk

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 agoprosodyctl: Nicer errors when addplugin command fails
Matthew Wild [Mon, 7 Dec 2009 18:30:57 +0000 (18:30 +0000)]
prosodyctl: Nicer errors when addplugin command fails

14 years agoutil.datamanager: Store data stores with no host in '_global' folder
Matthew Wild [Sun, 6 Dec 2009 00:35:06 +0000 (00:35 +0000)]
util.datamanager: Store data stores with no host in '_global' folder

14 years agomod_pep: Support item retrieval use cases
Paul Aurich [Sat, 5 Dec 2009 18:26:43 +0000 (10:26 -0800)]
mod_pep: Support item retrieval use cases

14 years agomod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)
Paul Aurich [Sat, 5 Dec 2009 17:43:53 +0000 (09:43 -0800)]
mod_pep: Allow storage of urn:xmpp:avatar:data node (payload only with base64 data)

14 years agoutil.pluginloader: Don't specify a host for the plugin data store (clever waqas...)
Matthew Wild [Sat, 5 Dec 2009 13:34:45 +0000 (13:34 +0000)]
util.pluginloader: Don't specify a host for the plugin data store (clever waqas...)

14 years agomod_compression: Tweak some log levels
Matthew Wild [Fri, 4 Dec 2009 19:04:03 +0000 (19:04 +0000)]
mod_compression: Tweak some log levels

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 agoprosody: Expose global_ssl_ctx through prosody object
Matthew Wild [Fri, 4 Dec 2009 18:57:54 +0000 (18:57 +0000)]
prosody: Expose global_ssl_ctx through prosody object

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 agomod_proxy65: Strip trailing whitespace
Matthew Wild [Fri, 4 Dec 2009 14:41:53 +0000 (14:41 +0000)]
mod_proxy65: Strip trailing whitespace

14 years agoutil-src/Makefile: Clean up makefile (re-commit because MattJ shouldn't commit anythi...
Brian Cully [Fri, 4 Dec 2009 12:14:14 +0000 (12:14 +0000)]
util-src/Makefile: Clean up makefile (re-commit because MattJ shouldn't commit anything at 3AM)

14 years agonet.server_select, net.server_event: Convert to unix line endings from Windows
Matthew Wild [Fri, 4 Dec 2009 03:07:17 +0000 (03:07 +0000)]
net.server_select, net.server_event: Convert to unix line endings from Windows

14 years agoutil-src/Makefile: Clean up makefile, rename lsignal.c to signal.c
Brian Cully [Fri, 4 Dec 2009 03:02:25 +0000 (03:02 +0000)]
util-src/Makefile: Clean up makefile, rename lsignal.c to signal.c

14 years agoconfigure: fix typo of 'yes' -> 'yet'
Matthew Wild [Fri, 4 Dec 2009 02:51:43 +0000 (02:51 +0000)]
configure: fix typo of 'yes' -> 'yet'

14 years agoconfigure: Add 'linux' ostype and rename lflags to LDFLAGS to match expectations.
Brian Cully [Fri, 4 Dec 2009 02:51:03 +0000 (02:51 +0000)]
configure: Add 'linux' ostype and rename lflags to LDFLAGS to match expectations.

14 years agoRedo merge with Waqas' PBKDF2 optimizations.
Tobias Markmann [Thu, 3 Dec 2009 20:57:47 +0000 (21:57 +0100)]
Redo merge with Waqas' PBKDF2 optimizations.

14 years agoMerge with Waqas.
Tobias Markmann [Thu, 3 Dec 2009 20:53:36 +0000 (21:53 +0100)]
Merge with Waqas.

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 agomod_proxy65: Don't read data from the connection untill the proxying is activated
Sjoerd Simons [Thu, 3 Dec 2009 16:07:37 +0000 (17:07 +0100)]
mod_proxy65: Don't read data from the connection untill the proxying is activated

14 years agomod_proxy65: Make the proxying bidirectional
Sjoerd Simons [Thu, 3 Dec 2009 16:05:35 +0000 (17:05 +0100)]
mod_proxy65: Make the proxying bidirectional

14 years agomod_proxy65: Use a bigger buffer for data we're proxying
Sjoerd Simons [Thu, 3 Dec 2009 16:04:54 +0000 (17:04 +0100)]
mod_proxy65: Use a bigger buffer for data we're proxying

A slightly larger buffer seems to preform a lot better

14 years agomod_proxy65: Only lock the reading side when throttling
Sjoerd Simons [Thu, 3 Dec 2009 16:02:38 +0000 (17:02 +0100)]
mod_proxy65: Only lock the reading side when throttling

14 years agonet.server_select: Add a function to just lock a stream for reading
Sjoerd Simons [Thu, 3 Dec 2009 15:53:58 +0000 (16:53 +0100)]
net.server_select: Add a function to just lock a stream for reading

14 years agomod_proxy65: Throttle connections to prevent senders flooding the server's buffers...
Matthew Wild [Thu, 3 Dec 2009 14:15:30 +0000 (14:15 +0000)]
mod_proxy65: Throttle connections to prevent senders flooding the server's buffers if the receiver doesn't receive fast enough

14 years agomod_proxy65: Replace error() calls with module:log("error", ...)
Matthew Wild [Thu, 3 Dec 2009 14:13:09 +0000 (14:13 +0000)]
mod_proxy65: Replace error() calls with module:log("error", ...)

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_event: Port fix in 2dc9bbf25447 to libevent-based backend
Matthew Wild [Thu, 3 Dec 2009 02:30:09 +0000 (02:30 +0000)]
net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend

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 agoMerge with 0.6
Matthew Wild [Wed, 2 Dec 2009 22:15:17 +0000 (22:15 +0000)]
Merge with 0.6

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

14 years agotests: Add tests for util.jid.join()
Matthew Wild [Fri, 27 Nov 2009 17:41:52 +0000 (17:41 +0000)]
tests: Add tests for util.jid.join()

14 years agotests/test.lua: Print the current test being run if verbosity sufficient
Matthew Wild [Fri, 27 Nov 2009 17:39:17 +0000 (17:39 +0000)]
tests/test.lua: Print the current test being run if verbosity sufficient

14 years agoutil.jid: Add join(node, host, resource) function to join the components and return...
Matthew Wild [Fri, 27 Nov 2009 17:33:55 +0000 (17:33 +0000)]
util.jid: Add join(node, host, resource) function to join the components and return nil if invalid

14 years agomod_proxy65: Update listener callback names for new server API
sjoerd.simons@collabora.co.uk [Fri, 27 Nov 2009 16:51:05 +0000 (16:51 +0000)]
mod_proxy65: Update listener callback names for new server API

14 years agoMerged with tip.
Tobias Markmann [Thu, 26 Nov 2009 23:19:56 +0000 (00:19 +0100)]
Merged with tip.

14 years agonet.server_event: Add addclient/wrapclient compatible with server_select, DNS and...
Matthew Wild [Thu, 26 Nov 2009 22:25:13 +0000 (22:25 +0000)]
net.server_event: Add addclient/wrapclient compatible with server_select, DNS and s2s should now work with libevent \o/