Comparison

core/s2smanager.lua @ 1345:35b5686d73ea

s2smanager: Remove srv_hosts from session when connected, this fixes attempting to reconnect s2s sessions when they are closed during shutdown
author Matthew Wild <mwild1@gmail.com>
date Fri, 19 Jun 2009 17:27:03 +0100
parent 1308:7b20a3d87244
child 1450:c1c7b27b983b
comparison
equal deleted inserted replaced
1344:ca74a6a38dfb 1345:35b5686d73ea
377 send(data[1]); 377 send(data[1]);
378 sendq[i] = nil; 378 sendq[i] = nil;
379 end 379 end
380 session.sendq = nil; 380 session.sendq = nil;
381 end 381 end
382
383 session.srv_hosts = nil;
382 end 384 end
383 end 385 end
384 386
385 function destroy_session(session) 387 function destroy_session(session)
386 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host)); 388 (session.log or log)("info", "Destroying "..tostring(session.direction).." session "..tostring(session.from_host).."->"..tostring(session.to_host));