Comparison

plugins/mod_bosh.lua @ 5651:c968c8e3596d

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Jun 2013 13:23:04 +0100
parent 5649:c321f1fed851
parent 5650:aa3465183b01
child 5652:bfb290c8cd73
comparison
equal deleted inserted replaced
5649:c321f1fed851 5651:c968c8e3596d
322 local diff = rid - session.rid; 322 local diff = rid - session.rid;
323 if diff > 1 then 323 if diff > 1 then
324 session.log("warn", "rid too large (means a request was lost). Last rid: %d New rid: %s", session.rid, attr.rid); 324 session.log("warn", "rid too large (means a request was lost). Last rid: %d New rid: %s", session.rid, attr.rid);
325 elseif diff <= 0 then 325 elseif diff <= 0 then
326 -- Repeated, ignore 326 -- Repeated, ignore
327 session.log("debug", "rid repeated (on request %s), ignoring: %s (diff %d)", request.id, session.rid, diff); 327 session.log("debug", "rid repeated, ignoring: %s (diff %d)", session.rid, diff);
328 context.notopen = nil; 328 context.notopen = nil;
329 context.ignore = true; 329 context.ignore = true;
330 context.sid = sid; 330 context.sid = sid;
331 t_insert(session.requests, response); 331 t_insert(session.requests, response);
332 return; 332 return;