Comparison

plugins/mod_bosh.lua @ 5650:aa3465183b01

mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth)
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Jun 2013 13:22:13 +0100
parent 5644:f9cfe6f5d60f
child 5651:c968c8e3596d
child 5670:9218a0e81a41
comparison
equal deleted inserted replaced
5644:f9cfe6f5d60f 5650:aa3465183b01
319 local diff = rid - session.rid; 319 local diff = rid - session.rid;
320 if diff > 1 then 320 if diff > 1 then
321 session.log("warn", "rid too large (means a request was lost). Last rid: %d New rid: %s", session.rid, attr.rid); 321 session.log("warn", "rid too large (means a request was lost). Last rid: %d New rid: %s", session.rid, attr.rid);
322 elseif diff <= 0 then 322 elseif diff <= 0 then
323 -- Repeated, ignore 323 -- Repeated, ignore
324 session.log("debug", "rid repeated (on request %s), ignoring: %s (diff %d)", request.id, session.rid, diff); 324 session.log("debug", "rid repeated, ignoring: %s (diff %d)", session.rid, diff);
325 context.notopen = nil; 325 context.notopen = nil;
326 context.ignore = true; 326 context.ignore = true;
327 context.sid = sid; 327 context.sid = sid;
328 t_insert(session.requests, response); 328 t_insert(session.requests, response);
329 return; 329 return;