hi,

I've been trying to post this error before, but somehow it did not make it
to the list, so I'm trying once again ...

As I saw, the new 1.99_08 version of mod_perl has $r->read fixed now to
correctly read the given bytes.
                                                                                       
                   
$r->get_client_block however is still buggy. If for example I do the
following:
                                                                                       
                   
--------CUT--------
my $len = $r->headers_in->{'content-length'};
print "reported length is $len<br>";
                                                                                       
                   
my $buf;
$r->get_client_block( $buf, $len );
print "read length is: ".length($buf)."<br>";
--------CUT--------
                                                                                       
                   
... then I get extremely different values for the reported and the read
length.
                                                                                       
                   
This does _not_ happen on small amounts of data, I think the threshold is
somewhere near 7K of data pending to be read.
                                                                                       
                   
The example works perfect, if I use $r->read instead, so at least there is
a workaround for this ;-)
                                                                                       
                   
udo

Reply via email to