View | Details | Raw Unified | Return to bug 7183
Collapse All | Expand All

(-)a/spamd/spamd.raw (-3 / +2 lines)
Lines 1826-1837 sub zlib_inflate_read { Link Here
1826
1826
1827
    # TODO: inflate in smaller buffers instead of at EOF
1827
    # TODO: inflate in smaller buffers instead of at EOF
1828
    while (1) {
1828
    while (1) {
1829
      my $numbytes = $client->read($buf, (1024 * 64) + $red, $red);
1829
      my $numbytes = $client->read($buf, $expected_length - $red, $red);
1830
      if (!defined $numbytes) {
1830
      if (!defined $numbytes) {
1831
        die "read of zlib data failed: $!";
1831
        die "read of zlib data failed: $!";
1832
        return -1;
1832
        return -1;
1833
      }
1833
      }
1834
      last if $numbytes == 0;
1834
      last if $numbytes == $expected_length;
1835
      $red += $numbytes;
1835
      $red += $numbytes;
1836
    }
1836
    }
1837
1837
1838
- 

Return to bug 7183