Bug#596927: PATCH for libsoap-lite-perl

Michiel Beijen michiel.beijen at gmail.com
Fri Dec 17 11:51:01 UTC 2010


It's a little bit more complicated than reporter mentioned; it depends
on wether or not you run mod_perl; there's a patch in
https://rt.cpan.org/Public/Bug/Display.html?id=58538 (see below) which
I would very much like to see included in the Debian package.

--- lib/SOAP/Transport/HTTP.pm.orig 2010-10-05 16:06:05.563710856 +0100
+++ lib/SOAP/Transport/HTTP.pm 2010-10-05 16:09:20.142813758 +0100
@@ -566,9 +566,16 @@
if ( !$chunked ) {
my $buffer;
binmode(STDIN);
- while ( sysread( STDIN, $buffer, $length ) ) {
- $content .= $buffer;
- last if ( length($content) >= $length );
+ if ( defined $ENV{'MOD_PERL'} ) {
+ while ( read( STDIN, $buffer, $length ) ) {
+ $content .= $buffer;
+ last if ( length($content) >= $length );
+ }
+ } else {
+ while ( sysread( STDIN, $buffer, $length ) ) {
+ $content .= $buffer;
+ last if ( length($content) >= $length );
+ }
}
}





More information about the pkg-perl-maintainers mailing list