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.

(0) -1000 -300 -100 -10 +10 +100 +300 +1000 tip

mercurial