add CTY-2708 prefixes
[spider.git] / perl / rbn.pl
index ee8f0ed3b2852753f01413dab09badcb25e5519c..2a72dd8e39b0ea37f6bf3ea970b2d0daf7840df7 100755 (executable)
@@ -72,8 +72,10 @@ for ($attempts = 1; $attempts <= 5; ++$attempts) {
        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;
+$sock->timeout(0);
+
 print $sock "$mycall\r\n";
 say "ADMIN,call $mycall sent" if $dbg;