Control: forwarded -1 https://github.com/chansen/p5-http-tiny/pull/117
Le 01/10/2018 à 21:21, Niko Tyni a écrit : > ... > On Sun, Sep 30, 2018 at 09:12:07AM +0200, Xavier wrote: >> Sometimes, a closed connection isn't detected by HTTP::Tiny. To >> reproduce the bug, use feersum sources: >> >> $ perl Makefile.PL && make >> $ taskset -c 0 perl -I blib/lib -I blib/arch t/63* >> >> HTTP::Tiny tries to reuse a closed connection. >> >> This little patch fixes the problem: >> >> --- HTTP/Tiny.pm.orig 2018-09-30 09:02:16.674730242 +0200 >> +++ HTTP/Tiny.pm 2018-09-30 09:02:43.274353687 +0200 >> @@ -647,6 +647,7 @@ >> if ( $self->{keep_alive} >> && $known_message_length >> && $response->{protocol} eq 'HTTP/1.1' >> + && $self->connected >> && ($response->{headers}{connection} || '') ne 'close' >> ) { >> $self->{handle} = $handle; > > Hi, thanks for digging into this. HTTP::Tiny is also separately > packaged in libhttp-tiny-perl, and this needs to be fixed there > first. Otherwise installing an unfixed libhttp-tiny-perl package > could override a fixed version in perl-modules-5.26. > > So cloning and blocking. Could you please take this upstream > (at https://github.com/chansen/p5-http-tiny/issues) yourself, > assuming it's not been fixed between 0.70 and 0.76 ? Hello, done, thanks