]> dxcluster.org Git - spider.git/commitdiff
slight change to echo logic in perl client
authorminima <minima>
Sat, 4 Nov 2000 01:42:19 +0000 (01:42 +0000)
committerminima <minima>
Sat, 4 Nov 2000 01:42:19 +0000 (01:42 +0000)
perl/client.pl

index b36be34715282605f542948529e1c2f96e375dc4..5e975c157bf18d903e8a11b3acdef0838cc6340a 100755 (executable)
@@ -119,7 +119,7 @@ sub rec_socket
                        if ($buffered) {
                                if (length $outqueue >= $client_buffer_lth) {
                                        print $stdout $outqueue;
-                                       pop @echo if @echo > $maxecho;
+                                       pop @echo while (@echo > $maxecho);
                                        push @echo, $outqueue;
                                        $outqueue = "";
                                }
@@ -146,7 +146,7 @@ sub rec_socket
                } elsif ($sort eq 'B') {
                        if ($buffered && $outqueue) {
                                print $stdout $outqueue;
-                               pop @echo if @echo > $maxecho;
+                               pop @echo while(@echo > $maxecho);
                                push @echo, $outqueue;
                                $outqueue = "";
                        }