Subject: | Client-Response-Num check may fail |
t/simple.t fails on some of my systems:
...
$ perl5.30.0-RC1 -Mblib t/simple.t
1..6
ok 1
ok 2
ok 3
not ok 4
# Failed test at t/simple.t line 22.
# got: '1'
# expected: '2'
ok 5
ok 6
# Looks like you failed 1 test of 6.
...
Looking with LWP::ConsoleLogger::Everywhere into the responses it seems that the test server sometimes responds with Connection:close instead of Connection:keep-alive, hence the 2nd request starts with a fresh connection and resets the Client-Response-Num counter.
This could be a similar issue like https://github.com/libwww-perl/Net-HTTP/issues/57 , but in this case I was not able to force the failure by manipulating /etc/hosts.