net/xmppcomponent_listener.lua

changeset 3634
0d6b57edb7bd
parent 3604
3e89f0509967
child 3706
b758e4ad30a0
--- a/net/xmppcomponent_listener.lua	Sat Nov 20 02:28:40 2010 +0500
+++ b/net/xmppcomponent_listener.lua	Sat Nov 20 02:33:36 2010 +0500
@@ -42,7 +42,7 @@
 		session:close("invalid-namespace");
 	elseif error == "parse-error" then
 		session.log("warn", "External component %s XML parse error: %s", tostring(session.host), tostring(data));
-		session:close("xml-not-well-formed");
+		session:close("not-well-formed");
 	elseif error == "stream-error" then
 		local condition, text = "undefined-condition";
 		for child in data:children() do
@@ -186,7 +186,7 @@
 			local ok, err = parser:parse(data);
 			if ok then return; end
 			log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_"));
-			session:close("xml-not-well-formed");
+			session:close("not-well-formed");
 		end
 		
 		session.dispatch_stanza = stream_callbacks.handlestanza;

mercurial