Re: fopen never ends?
| From: | Paul van Brouwershaven | Date: | Tue, 19 Feb 2008 13:33:20 +0000 |
| Subject: | Re: fopen never ends? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269610@lists.php.net to get a copy of this message | ||
Nathan Rixham wrote:
I don't think this is a php problem, just load the url up in a browser and you'll see the same, appears to be a misconfigured server at the otherside - probably confused about not being passed a name based "host" header in the request. I know that my browser is also waiting a long time, but strange that there is no timeout in fopen? My scripts are getting stuck and eventually they will hang my server. (when I start a new job every x minutes)
Perhaps concider moving to fsockopen or stream_socket_client with timeout parameters to solve your issue.fsockopen has no context and with stream_socket_client I have no timeout but stream_context_get_options is not returning the right data $options = stream_context_get_options($fp);