Le 30/09/2018 à 09:12, Xavier a écrit : > Control: severity -1 normal > Control: tags -1 + patch > Control: reassign -1 perl-modules-5.26 > > 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;
So last problem for Feersum: it seems to close connection that were declared "Connection: keep-alive" (on heavy load or when only 1 CPU is available). Reported.