]> dxcluster.org Git - spider.git/commitdiff
fixed client line so it unconditionally starts a connection even with
authorminima <minima>
Fri, 2 Mar 2001 23:00:33 +0000 (23:00 +0000)
committerminima <minima>
Fri, 2 Mar 2001 23:00:33 +0000 (23:00 +0000)
buffered up lines.
always have an empty outqueue array available.

perl/ExtMsg.pm
perl/Msg.pm

index 33c17bfd44bcc18bef606c60a221453989da6259..58fb619f89925642561631e85dc6867e9b08b3ff 100644 (file)
@@ -270,6 +270,10 @@ sub _doclient
        my @f = split /\s+/, $line;
        $conn->{call} = uc $f[0] if $f[0];
        $conn->{csort} = $f[1] if $f[1];
+       $conn->{state} = 'C';
+       &{$conn->{rproc}}($conn, "O$conn->{call}|telnet");
+       delete $conn->{cmd};
+       $conn->{timeout}->del_timer if $conn->{timeout};
 }
 
 sub _send_file
index 774db635e627f0aeae5cc24fb7da8ce00f63116e..fd6e3b17dde3d015848675ec3f033e49381af631 100644 (file)
@@ -47,6 +47,7 @@ sub new
     my $conn = {
         rproc => $rproc,
                inqueue => [],
+               outqueue => [],
                state => 0,
                lineend => "\r\n",
                csort => 'telnet',