projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add CTY-2708 prefixes
[spider.git]
/
perl
/
rbn.pl
diff --git
a/perl/rbn.pl
b/perl/rbn.pl
index ee8f0ed3b2852753f01413dab09badcb25e5519c..2a72dd8e39b0ea37f6bf3ea970b2d0daf7840df7 100755
(executable)
--- a/
perl/rbn.pl
+++ b/
perl/rbn.pl
@@
-72,8
+72,10
@@
for ($attempts = 1; $attempts <= 5; ++$attempts) {
last if $sock;
}
last if $sock;
}
-die "ADMIN,Cannot connect to $host:$port after 5 attempts $!" unless $sock;
+die "ADMIN,Cannot connect to $host:$port after 5 attempts $!
\n
" unless $sock;
say "ADMIN,connected" if $dbg;
say "ADMIN,connected" if $dbg;
+$sock->timeout(0);
+
print $sock "$mycall\r\n";
say "ADMIN,call $mycall sent" if $dbg;
print $sock "$mycall\r\n";
say "ADMIN,call $mycall sent" if $dbg;