add checks for other Win32 POSIX substitutes
[spider.git] / perl / AGWMsg.pm
index 4d1068ff35707ca813b03d5ad2dbf86d7da07705..fdd4bc18314fa3cd5caab58afc0674abec2043a6 100644 (file)
@@ -46,13 +46,16 @@ $hpolltime = 300 unless defined $hpolltime;
 %circuit = ();
 $total_in = $total_out = 0;
 $lastconnect = 0;
-$connectinterval = 60;
+$connectinterval = 30;
 
 sub init
 {
        return unless $enable;
-       $rproc = shift;
        
+       # only set $rproc if there is something to set rproc from!
+       my $rp = shift;
+       $rproc = $rp if defined $rp;
+
        finish();
 
        dbg("AGW initialising and connecting to $addr/$port ...");