xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua

xmppclient_listener: Switch to .onincoming listener method, to be compatible with new server_event.lua

net.server: Small fix for addtimer() compatibility code

net.connlisteners: Standardise on new syntax for addserver(), and clean up a bit

sessionmanager: Use : syntax for calling connection methods

mod_bosh: Don't log response XML

util.timer: Fix libevent timers (event.base doesn't exist...)

net.server_event: Export base as event_base

net.server_event: Comment overly verbose log message

util.timer: Use libevent for lightweight timers if available and configured (use_libevent option)

net.server: New net.server to choose the appropriate library from server_select/server_event based on the availability of luaevent and the use_libevent config option

net.server: Rename to net.server_select

net.server_event: Remove redundant getid() function

net.server_event: Initial commit of server_event.lua. Don't get too excited, it's not used at all yet, and is still incomplete :)

s2smanager: Fail outgoing s2s connection if hostname does not pass idna_to_ascii(), thanks Flo + waqas

s2smanager: Queue db:verify unless we already sent a db:result (if we had then it can could a dialback deadlock). Also remove some redundant code which could cause a db:result to be sent while still negotiating features (e.g. TLS) and break things. Collectively these fix a 'random' s2s failure (usually with ejabberd for some reason) - resulting in an 'unbound prefix' XML error, or 'ssl handshake failure'. Was this commit message long enough? I think so.

util.sasl: Add COMPAT comment

mod_console: Moved activation of the console port from the main file to mod_console.

prosody.net_activate_ports: Slightly refactored and definition moved to before modules are loaded.

mod_register: Log a debug message when a session's IP is not available.

mod_bosh: Set session.ip for BOSH sessions.

util.sasl: Added compatibility workaround for jwchat sending an encoded trailing '\0' in SASL responses.

net.dns: Be more strict about the records we cache

net.dns: Be more strict about checking the DNS replies we receive

util.sasl: Improved a log message.

util.sasl: Allow authzid=username (for compatibility with Smack's non-compliant behavior).

util.sasl: Return proper error when client provides authzid.

Changed separator between attribute names and prefixes from '|' to '\1' (optimization and cleanup).

(0) -1000 -300 -100 -50 -28 +28 +50 +100 +300 +1000 tip

mercurial