Subject: | bug in Net::HTTP leads to 500 Status read error when fetching some HTTPS websites via LWP::UA |
Hello!
System is Windows7 SP1 x64
Bug is found in Strawberry perl 5.20.2.1 x64 portable
When I switched from Strawberry perl 5.20.1.1 x32 portable to perl 5.20.2.1 x64 portable, one of my scripts stopped working, showing some silly error "500 Status read failed: A non-blocking socket operation could not be completed immediately"
After some googling, the solution was found. It appeared, that Net::HTTP 6.07 is not very compatible with IO::Socket::SSL 2.012, or something of the sorts. The patch that fixes the problem can be found here: https://github.com/libwww-perl/net-http/commit/8311cd11544f59100d1f135e63007b8f3ded50d9
The issue is not easily reproduced, for example fetching https://google.com works perfectly on either version.
But at the moment of writing this ticket, running this command in Strawberry perl 5.20.2.1 x64 portable shell raises an error:
lwp-download https://www.e-activist.com/hello everyone
lwp-download: 500 Status read failed: A non-blocking socket operation could not be completed immediately.