Subject: | Failures during redirects go missing |
It seems we can't talk HTTPS to yahoo (possibly a separate bug):
$ perl -Mblib examples/GET.pl https://www.yahoo.com
Failed - uk.yahoo.com:80 - SSL connect attempt failed with unknown error error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol failed [ssl]
uk.yahoo.com:80 - SSL connect attempt failed with unknown error error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol failed [ssl] at examples/GET.pl line 39.
However, if this failure occurs during a redirect, that failure gets ignored:
$ perl -Mblib examples/GET.pl http://www.yahoo.com
^C
((hangs forever until timeout/SIGINT))
$ IO_ASYNC_DEBUG=1 perl -Mblib examples/GET.pl http://www.yahoo.com
[Na:HTTP::Connection{www.yahoo.com:80,connecting}<-Na:HTTP] CONNECT www.yahoo.com:80
[Ia:Resolver] CALL
[Ia:Stream{r=5}<-Ia:Channel<-Ia:Function::Worker<-Ia:Resolver] EVENT on_read
[Na:HTTP::Connection{www.yahoo.com:80,connecting}<-Na:HTTP] CONNECTED
[Na:HTTP::Connection{www.yahoo.com:80,connecting}<-Na:HTTP] READY non-pipelined
[Na:HTTP::Connection{www.yahoo.com:80,connecting}<-Na:HTTP] REQUEST GET http://www.yahoo.com
[Na:HTTP::Connection{www.yahoo.com:80,fd=3}<-Na:HTTP] HEADER 301 Redirect
[Na:HTTP::Connection{www.yahoo.com:80,fd=3}<-Na:HTTP] BODY length 213
[Na:HTTP::Connection{www.yahoo.com:80,fd=3}<-Na:HTTP] BODY done
[Na:HTTP::Connection{www.yahoo.com:80,fd=3}<-Na:HTTP] CLOSED
[Na:HTTP::Connection{www.yahoo.com:443,connecting}<-Na:HTTP] CONNECT www.yahoo.com:443
[Ia:Resolver] CALL
[Na:HTTP::Connection{www.yahoo.com:80,fd=3}] DONE remaining in-flight=0
[Ia:Stream{r=5}<-Ia:Channel<-Ia:Function::Worker<-Ia:Resolver] EVENT on_read
[Na:HTTP::Connection{www.yahoo.com:443,connecting}<-Na:HTTP] CONNECTED
[Na:HTTP::Connection{www.yahoo.com:443,connecting}<-Na:HTTP] READY non-pipelined
[Na:HTTP::Connection{www.yahoo.com:443,connecting}<-Na:HTTP] REQUEST GET https://www.yahoo.com/
^C
--
Paul Evans