I'm having difficulty with PHP hanging for 60 seconds while accessing certain resources via https. file_get_contents
I am not sure if this is a problem with the client or server.
On the client
Work with the command line:
$ URL="https://example.com/some/path"
$ wget "$URL" -O /dev/null -q
$ curl "$URL" >/dev/null
$ php -r 'file_get_contents("'"$URL"'")'
On server
The string is written to the Apache access log (2.4) for the correct SSL host immediately , with a response of 200 (success). This confuses the confusing timeline:
- 0s php file_get_contents running on the client
- Apache 0.2s access protocol for server completed successfully (200).
- who knows what is going on here ???
- Client 60.2s receives the file.
Ubuntu 14.04 Debian 8. Debian 8, Apache 2.4 ITK- PHP 5.6. ( ACCEPT ), . IPv6, , , , - IPv6. , , AAAA, apache , (a) SSL Ok (b) .