Matthew Wild [Sun, 23 Nov 2008 05:43:58 +0000 (05:43 +0000)]
Reverted my change to modulemanager, to restore those made by waqas
Matthew Wild [Sun, 23 Nov 2008 05:43:17 +0000 (05:43 +0000)]
Backed out changeset
79bd7a3e906c
Matthew Wild [Sun, 23 Nov 2008 05:21:21 +0000 (05:21 +0000)]
Merge from waqas
Waqas Hussain [Sun, 23 Nov 2008 05:20:56 +0000 (10:20 +0500)]
Ahem, a bit of an identity crisis..
Matthew Wild [Sun, 23 Nov 2008 05:20:33 +0000 (05:20 +0000)]
Removing lxmppd.cfg.dist
Matthew Wild [Sun, 23 Nov 2008 05:14:37 +0000 (05:14 +0000)]
Typo prevented modulemanager.load() from returning the error if load failed.
Matthew Wild [Sun, 23 Nov 2008 05:03:36 +0000 (05:03 +0000)]
Merge from waqas
Matthew Wild [Sun, 23 Nov 2008 04:56:46 +0000 (04:56 +0000)]
Only start console if it is enabled in the config. Note that the exact option is going to change tomorrow.
Matthew Wild [Sun, 23 Nov 2008 04:54:44 +0000 (04:54 +0000)]
Add initial mod_console
Matthew Wild [Sun, 23 Nov 2008 04:54:05 +0000 (04:54 +0000)]
Comment out remote debug, will later be enabled via config
Matthew Wild [Sun, 23 Nov 2008 04:53:12 +0000 (04:53 +0000)]
Small fix for connlisteners to accept nil for userdata
Matthew Wild [Sun, 23 Nov 2008 03:00:20 +0000 (03:00 +0000)]
Fix various mistakes in dns.lua
Matthew Wild [Sun, 23 Nov 2008 02:50:57 +0000 (02:50 +0000)]
Fix dns for poor Windows users, who have never seen a resolv.conf
Matthew Wild [Sun, 23 Nov 2008 02:42:21 +0000 (02:42 +0000)]
Add new lxmppd.cfg.lua.dist example config file
Matthew Wild [Sun, 23 Nov 2008 02:12:46 +0000 (02:12 +0000)]
New configmanager. Old-style config files still work, but will print a warning
Matthew Wild [Sun, 23 Nov 2008 02:11:58 +0000 (02:11 +0000)]
Fix mod_selftests syntax, and switch it to use config
Waqas Hussain [Sat, 22 Nov 2008 22:32:57 +0000 (03:32 +0500)]
Added mod_disco
Waqas Hussain [Sat, 22 Nov 2008 22:32:34 +0000 (03:32 +0500)]
Added discomanager
Waqas Hussain [Sat, 22 Nov 2008 22:32:20 +0000 (03:32 +0500)]
Added discohelper
Waqas Hussain [Sat, 22 Nov 2008 22:31:03 +0000 (03:31 +0500)]
Account deletion support
Matthew Wild [Sat, 22 Nov 2008 20:12:27 +0000 (20:12 +0000)]
All the people who don't use TLS, this one's for you.
Matthew Wild [Sat, 22 Nov 2008 19:07:41 +0000 (19:07 +0000)]
Add helper function for adding message bodies to stanzas
Waqas Hussain [Sat, 22 Nov 2008 18:14:31 +0000 (23:14 +0500)]
Check to prevent error for IQs from completely unhandled origins
Waqas Hussain [Sat, 22 Nov 2008 17:37:44 +0000 (22:37 +0500)]
Removed useless check
Matthew Wild [Fri, 21 Nov 2008 05:59:03 +0000 (05:59 +0000)]
Now possible to specify nil origin to core_route_stanza. Origin will be chosen as the host of the 'from' attribute on the stanza. Returns false on no such host.
Matthew Wild [Fri, 21 Nov 2008 05:47:27 +0000 (05:47 +0000)]
Import initial configmanager, not sure if it works yet, but it does pass the unit tests ;)
Matthew Wild [Fri, 21 Nov 2008 05:46:15 +0000 (05:46 +0000)]
Update test.lua with a work-in-progress
Matthew Wild [Fri, 21 Nov 2008 05:07:41 +0000 (05:07 +0000)]
Better names for variables
Matthew Wild [Fri, 21 Nov 2008 05:06:35 +0000 (05:06 +0000)]
Remove old TODO
Matthew Wild [Fri, 21 Nov 2008 05:06:01 +0000 (05:06 +0000)]
Remove some declarations I added while debugging
Matthew Wild [Fri, 21 Nov 2008 05:02:53 +0000 (05:02 +0000)]
Improve jid.split() and jid.bare() to pass new test cases with invalid JIDs
Matthew Wild [Thu, 20 Nov 2008 23:28:16 +0000 (23:28 +0000)]
Add jid.bare() helper function
Matthew Wild [Thu, 20 Nov 2008 22:42:37 +0000 (22:42 +0000)]
Adding selftests module, but not enabling in config
Matthew Wild [Thu, 20 Nov 2008 21:06:27 +0000 (21:06 +0000)]
Oops, never added the tests for s2smanager to the repo
Matthew Wild [Thu, 20 Nov 2008 21:04:46 +0000 (21:04 +0000)]
Add run_tests.sh
Matthew Wild [Thu, 20 Nov 2008 21:02:49 +0000 (21:02 +0000)]
Update unit testing to output coverage reports
Matthew Wild [Thu, 20 Nov 2008 03:00:43 +0000 (03:00 +0000)]
Remove or comment useless prints, or change them to log()
Matthew Wild [Thu, 20 Nov 2008 02:59:40 +0000 (02:59 +0000)]
Add event for server startup completed: server-started
Matthew Wild [Thu, 20 Nov 2008 02:05:26 +0000 (02:05 +0000)]
Don't error reply to stanzas direct over the s2s stream they came from
Matthew Wild [Thu, 20 Nov 2008 01:33:25 +0000 (01:33 +0000)]
Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.
Matthew Wild [Thu, 20 Nov 2008 01:32:24 +0000 (01:32 +0000)]
Log number of open sessions on session creation
Matthew Wild [Thu, 20 Nov 2008 01:31:15 +0000 (01:31 +0000)]
Remove a debug print() from xmlhandlers
Matthew Wild [Thu, 20 Nov 2008 01:14:31 +0000 (01:14 +0000)]
Remove version=1.0 on s2s stream headers, again.
Matthew Wild [Wed, 19 Nov 2008 23:25:04 +0000 (23:25 +0000)]
Remove an old FIXME comment
Matthew Wild [Wed, 19 Nov 2008 23:18:12 +0000 (23:18 +0000)]
Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!
Matthew Wild [Wed, 19 Nov 2008 22:50:37 +0000 (22:50 +0000)]
Comments and logging fixes
Matthew Wild [Wed, 19 Nov 2008 22:05:44 +0000 (22:05 +0000)]
Send version=1.0 again in s2s stream header
Matthew Wild [Wed, 19 Nov 2008 22:04:39 +0000 (22:04 +0000)]
Fix for setting the correct host on the socket, seems to fix s2s with XCP
Matthew Wild [Wed, 19 Nov 2008 22:03:39 +0000 (22:03 +0000)]
Show which session got disconnected in log message
Matthew Wild [Wed, 19 Nov 2008 21:07:40 +0000 (21:07 +0000)]
Don't error if the original s2s connection has closed before we get the dialback result
Matthew Wild [Wed, 19 Nov 2008 05:34:00 +0000 (05:34 +0000)]
Don't send version 1.0. Who cares about Gmail?
Matthew Wild [Wed, 19 Nov 2008 05:13:07 +0000 (05:13 +0000)]
Send version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode.
Matthew Wild [Wed, 19 Nov 2008 05:12:21 +0000 (05:12 +0000)]
Don't attempt to auth connection unless stanzas are being sent across it
Matthew Wild [Wed, 19 Nov 2008 05:11:37 +0000 (05:11 +0000)]
Log sent s2s stanzas
Matthew Wild [Wed, 19 Nov 2008 05:10:42 +0000 (05:10 +0000)]
Incorrect function set as callback
Matthew Wild [Wed, 19 Nov 2008 05:10:16 +0000 (05:10 +0000)]
Don't error if streamopened/streamclosed callback is not specified for a session
Matthew Wild [Wed, 19 Nov 2008 05:09:05 +0000 (05:09 +0000)]
Extra checks before sending error replies to incoming stanzas
Matthew Wild [Wed, 19 Nov 2008 05:07:52 +0000 (05:07 +0000)]
Fix sending of unavailable presence on disconnect
Matthew Wild [Wed, 19 Nov 2008 05:02:13 +0000 (05:02 +0000)]
Don't forget to escape XML in attributes. Thanks to the Postgres Q&A room on conference.jabber.org :)
Matthew Wild [Tue, 18 Nov 2008 22:41:04 +0000 (22:41 +0000)]
We have SRV resolving \o/
Matthew Wild [Tue, 18 Nov 2008 22:40:23 +0000 (22:40 +0000)]
Small fix for servermanager
Matthew Wild [Tue, 18 Nov 2008 22:16:06 +0000 (22:16 +0000)]
Fix to prevent send retry when connection is already closed
Matthew Wild [Tue, 18 Nov 2008 19:58:29 +0000 (19:58 +0000)]
*ahem* Yes, move along please... though really, quite a classic. :)
Matthew Wild [Tue, 18 Nov 2008 19:44:54 +0000 (19:44 +0000)]
session:disconnect() -> session:close() for consistency with other Lua APIs
Matthew Wild [Tue, 18 Nov 2008 19:40:04 +0000 (19:40 +0000)]
Remove useless check for unavailable presence (which never exists)
Matthew Wild [Tue, 18 Nov 2008 17:52:33 +0000 (17:52 +0000)]
Quite some changes, to:
- Small logging fix for s2smanager
- Send a stream error if an incoming s2s connection is to an unrecognised hostname (fixes #11)
- init_xmlhandlers now takes a table of callbacks (includes changes to net/xmpp*_listener for this)
- Move sending of unavailable presence to where it should be, sessionmanager.destroy_session
- Fix sending of stream errors to wrong connection
Matthew Wild [Tue, 18 Nov 2008 14:42:45 +0000 (14:42 +0000)]
s2s sessions can now be disconnected, with or without a stream error. Fixes #8
Matthew Wild [Tue, 18 Nov 2008 05:13:29 +0000 (05:13 +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:06:50 +0000 (05:06 +0000)]
Flush write queue before closing socket
Waqas Hussain [Mon, 17 Nov 2008 13:53:13 +0000 (18:53 +0500)]
Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)
Waqas Hussain [Mon, 17 Nov 2008 08:51:47 +0000 (13:51 +0500)]
Send unsubscribe and unsubscribed on roster item delete, and broadcast available resources' presence in reply to pre-approved subscription request
Waqas Hussain [Mon, 17 Nov 2008 07:27:02 +0000 (12:27 +0500)]
Adding logging for outbound presence broadcasts (changed it a bit)
Waqas Hussain [Mon, 17 Nov 2008 07:21:21 +0000 (12:21 +0500)]
Adding logging for outbound presence broadcasts
Waqas Hussain [Mon, 17 Nov 2008 06:28:09 +0000 (11:28 +0500)]
Second fix for broadcasting presence of available resources to newly approved contact
Waqas Hussain [Mon, 17 Nov 2008 05:24:47 +0000 (10:24 +0500)]
Fix for broadcasting presence of available resources to newly approved contact
Waqas Hussain [Mon, 17 Nov 2008 05:15:04 +0000 (10:15 +0500)]
Moved presence subscription code from stanza_router to presencemanager
Matthew Wild [Sun, 16 Nov 2008 00:30:13 +0000 (00:30 +0000)]
Merge with waqas
Matthew Wild [Sun, 16 Nov 2008 00:29:15 +0000 (00:29 +0000)]
Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.
Matthew Wild [Sun, 16 Nov 2008 00:27:40 +0000 (00:27 +0000)]
Fix logging in some cases for client disconnects
Waqas Hussain [Sun, 16 Nov 2008 00:06:38 +0000 (05:06 +0500)]
Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send)
Waqas Hussain [Sun, 16 Nov 2008 00:03:21 +0000 (05:03 +0500)]
Fixed mod_tls to use session.send for sending stanzas
Waqas Hussain [Sun, 16 Nov 2008 00:02:15 +0000 (05:02 +0500)]
Fixed servermanager to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:52:11 +0000 (04:52 +0500)]
Removed useless [[local send = require "core.sessionmanager".send_to_session]] from mod_uptime and mod_version
Waqas Hussain [Sat, 15 Nov 2008 23:47:34 +0000 (04:47 +0500)]
Fixed mod_saslauth to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:45:31 +0000 (04:45 +0500)]
Fixed sessionmanager to not send session in place of stream features...
Waqas Hussain [Sat, 15 Nov 2008 23:42:03 +0000 (04:42 +0500)]
Fixed mod_register to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:39:48 +0000 (04:39 +0500)]
Fixed mod_private to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:37:54 +0000 (04:37 +0500)]
Fixed sessionmanager to use appropriate method for sending stream features
Waqas Hussain [Sat, 15 Nov 2008 23:36:34 +0000 (04:36 +0500)]
Fixed mod_legacyauth to use session.send for sending stanzas
Waqas Hussain [Sat, 15 Nov 2008 23:28:37 +0000 (04:28 +0500)]
Fix mod_vcard to use session.send for sending stanzas
Matthew Wild [Sat, 15 Nov 2008 23:22:27 +0000 (23:22 +0000)]
Merge with myself (!)
Matthew Wild [Sat, 15 Nov 2008 23:14:32 +0000 (23:14 +0000)]
You can never have too many tests
Matthew Wild [Sat, 15 Nov 2008 23:11:17 +0000 (23:11 +0000)]
Warn when subtest function does not exist
Matthew Wild [Sat, 15 Nov 2008 23:10:41 +0000 (23:10 +0000)]
If iq child element has no xmlns, use parent's
Matthew Wild [Sat, 15 Nov 2008 23:09:08 +0000 (23:09 +0000)]
Fix mod_roster to use session.send for sending stanzas
Matthew Wild [Sat, 15 Nov 2008 22:29:24 +0000 (22:29 +0000)]
Merge from waqas
Waqas Hussain [Sat, 15 Nov 2008 22:16:53 +0000 (03:16 +0500)]
Code cleanup for resource binding
Matthew Wild [Sat, 15 Nov 2008 22:07:31 +0000 (22:07 +0000)]
Small fix for mod_version
Waqas Hussain [Sat, 15 Nov 2008 21:52:54 +0000 (02:52 +0500)]
Unused variables in mod_tls
Tobias Markmann [Sat, 15 Nov 2008 21:36:22 +0000 (22:36 +0100)]
Providing some human readable error messages and some fixes.