X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=09b0e634e6fc28c6f81ff4faac933e734ceb5109;hb=c7a3cfda9336d765d387e9328f817d1f0e5230d1;hp=3c4b51f3d0d2504adff8ccaf7bd61781bf6163f9;hpb=2b89a309f1c5658fbadac1a5d3e5e03d541e1005;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index 3c4b51f3..09b0e634 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -29,6 +29,7 @@ $now = time; $cnum = 0; $connect_timeout = 5; $disc_waittime = 1.5; +%conns; our %delqueue; @@ -102,6 +103,12 @@ sub conns return $ref; } +# this is called as a FUNCTION i.e my $conn = Msg::get($call); +sub get +{ + return $conns{shift}; +} + # this is only called by any dependent processes going away unexpectedly sub pid_gone {