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

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

mercurial