projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to fix crashes on AGW with peerhost.
[spider.git]
/
perl
/
AGWMsg.pm
diff --git
a/perl/AGWMsg.pm
b/perl/AGWMsg.pm
index fdd4bc18314fa3cd5caab58afc0674abec2043a6..76b80fde344ef5601c97df9df3f5837e1d744575 100644
(file)
--- a/
perl/AGWMsg.pm
+++ b/
perl/AGWMsg.pm
@@
-409,6
+409,13
@@
sub _find
return $circuit{$call};
}
return $circuit{$call};
}
+sub peerhost
+{
+ my $conn = shift;
+ $conn->{peerhost} ||= $conn->{agwcall} || "UNKNOWN";
+ return $conn->{peerhost};
+}
+
sub connect
{
my ($conn, $line) = @_;
sub connect
{
my ($conn, $line) = @_;