projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add first take on IP address remembering
[spider.git]
/
perl
/
Msg.pm
diff --git
a/perl/Msg.pm
b/perl/Msg.pm
index 3c4b51f3d0d2504adff8ccaf7bd61781bf6163f9..09b0e634e6fc28c6f81ff4faac933e734ceb5109 100644
(file)
--- a/
perl/Msg.pm
+++ b/
perl/Msg.pm
@@
-29,6
+29,7
@@
$now = time;
$cnum = 0;
$connect_timeout = 5;
$disc_waittime = 1.5;
$cnum = 0;
$connect_timeout = 5;
$disc_waittime = 1.5;
+%conns;
our %delqueue;
our %delqueue;
@@
-102,6
+103,12
@@
sub conns
return $ref;
}
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
{
# this is only called by any dependent processes going away unexpectedly
sub pid_gone
{