Adding selftests module, but not enabling in config

Oops, never added the tests for s2smanager to the repo

Add run_tests.sh

Update unit testing to output coverage reports

Remove or comment useless prints, or change them to log()

Add event for server startup completed: server-started

Don't error reply to stanzas direct over the s2s stream they came from

Use a stanza for c2s stream features instead of an array of strings. Removes a FIXME.

Log number of open sessions on session creation

Remove a debug print() from xmlhandlers

Remove version=1.0 on s2s stream headers, again.

Remove an old FIXME comment

Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!

Comments and logging fixes

Send version=1.0 again in s2s stream header

Fix for setting the correct host on the socket, seems to fix s2s with XCP

Show which session got disconnected in log message

Don't error if the original s2s connection has closed before we get the dialback result

Don't send version 1.0. Who cares about Gmail?

Send version=1.0 in s2s stream header. Send s2s stream:features when in 1.0 mode.

Don't attempt to auth connection unless stanzas are being sent across it

Log sent s2s stanzas

Incorrect function set as callback

Don't error if streamopened/streamclosed callback is not specified for a session

Extra checks before sending error replies to incoming stanzas

Fix sending of unavailable presence on disconnect

Don't forget to escape XML in attributes. Thanks to the Postgres Q&A room on conference.jabber.org :)

We have SRV resolving \o/

Small fix for servermanager

Fix to prevent send retry when connection is already closed

*ahem* Yes, move along please... though really, quite a classic. :)

session:disconnect() -> session:close() for consistency with other Lua APIs

Remove useless check for unavailable presence (which never exists)

Quite some changes, to:

s2s sessions can now be disconnected, with or without a stream error. Fixes #8

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)

Flush write queue before closing socket

Fixed s2s manager's send queue to not store recieved stanza objects (as these can chnage after the send call)

Send unsubscribe and unsubscribed on roster item delete, and broadcast available resources' presence in reply to pre-approved subscription request

Adding logging for outbound presence broadcasts (changed it a bit)

Adding logging for outbound presence broadcasts

Second fix for broadcasting presence of available resources to newly approved contact

Fix for broadcasting presence of available resources to newly approved contact

Moved presence subscription code from stanza_router to presencemanager

Merge with waqas

Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.

Fix logging in some cases for client disconnects

Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send)

Fixed mod_tls to use session.send for sending stanzas

Fixed servermanager to use session.send for sending stanzas

Removed useless [[local send = require "core.sessionmanager".send_to_session]] from mod_uptime and mod_version

Fixed mod_saslauth to use session.send for sending stanzas

Fixed sessionmanager to not send session in place of stream features...

Fixed mod_register to use session.send for sending stanzas

Fixed mod_private to use session.send for sending stanzas

Fixed sessionmanager to use appropriate method for sending stream features

Fixed mod_legacyauth to use session.send for sending stanzas

Fix mod_vcard to use session.send for sending stanzas

Merge with myself (!)

Merge from waqas

(0) -300 -100 -60 +60 +100 +300 +1000 +3000 tip

mercurial