I bought a jobs portal script, I’ve successfully installed it and when I try to register I get this error:
cURL error 28: Connection timed out after 2013 milliseconds (see
http://curl.haxx.se/libcurl/c/libcurl-errors.html)
I asked support and they said:
you need to increase read_timeout and timeout. The error is clear, you
don’t have enough time to get the response. increase time in php.ini
I tried increasing max_execution_time, default_socket_timeout in php.ini both to 500, but I’m getting the same error. Then I tried manually adding read_timeout=500 and timeout=500 and again the same error.
What should I do?
3
Answers
You can set the total time of the cURL transfer using:
Where 500 is the maximum number of seconds to allow cURL functions to execute.
Here is an example of initializing a new cURL session and fetching a web page:
Maybe you should enable stream_ socket_ server
Use the below mention in your curl request