add first take on IP address remembering
[spider.git] / perl / Msg.pm
index 3c4b51f3d0d2504adff8ccaf7bd61781bf6163f9..09b0e634e6fc28c6f81ff4faac933e734ceb5109 100644 (file)
@@ -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
 {