Comparison

plugins/mod_c2s.lua @ 6368:bd0c8b361589

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 Aug 2014 12:05:18 +0100
parent 6367:769a3577dd85
child 6382:57d23c26039b
comparison
equal deleted inserted replaced
6354:bbb4a82db32e 6368:bd0c8b361589
89 session:close(false); 89 session:close(false);
90 end 90 end
91 91
92 function stream_callbacks.error(session, error, data) 92 function stream_callbacks.error(session, error, data)
93 if error == "no-stream" then 93 if error == "no-stream" then
94 session.log("debug", "Invalid opening stream header"); 94 session.log("debug", "Invalid opening stream header (%s)", (data:gsub("^([^\1]+)\1", "{%1}")));
95 session:close("invalid-namespace"); 95 session:close("invalid-namespace");
96 elseif error == "parse-error" then 96 elseif error == "parse-error" then
97 (session.log or log)("debug", "Client XML parse error: %s", tostring(data)); 97 (session.log or log)("debug", "Client XML parse error: %s", tostring(data));
98 session:close("not-well-formed"); 98 session:close("not-well-formed");
99 elseif error == "stream-error" then 99 elseif error == "stream-error" then