# HG changeset patch # User Thilo Cestonaro # Date 1257018832 -3600 # Node ID adb9d1b879c2c9ddd55e742a4734c91f648a7027 # Parent 2bf6c7c590a153719185321dd392f521d01052eb mod_proxy65: changed the listener name to be unique on a per component basis and display a good error description when connlistener register fails diff -r 2bf6c7c590a1 -r adb9d1b879c2 mod_proxy65/mod_proxy65.lua --- a/mod_proxy65/mod_proxy65.lua Sat Oct 31 20:33:42 2009 +0100 +++ b/mod_proxy65/mod_proxy65.lua Sat Oct 31 20:53:52 2009 +0100 @@ -8,7 +8,6 @@ error("proxy65 should be loaded as a component, please see http://prosody.im/doc/components", 0); end - local jid_split = require "util.jid".split; local st = require "util.stanza"; local componentmanager = require "core.componentmanager"; @@ -191,8 +190,9 @@ return; end -if not connlisteners.register('proxy65', connlistener) then +if not connlisteners.register(module.host .. ':proxy65', connlistener) then error("mod_proxy65: Could not establish a connection listener. Check your configuration please."); + error(" one possible cause for this would be that two proxy65 components share the same port."); end connlisteners.start('proxy65');