php - Page execution after cURL timed out
23
Can you please tell me what happens after multi cURL timed out (usingCURLOPT_TIMEOUT
)? I need pages that I call withcurl_multi_exec
to be executed 100% but I do not want to wait for the results.
- CURLOPT_TIMEOUT is 1 sec
- Each page execution time is ~20 secs
Answer
Solution:
The answer really depends on the remote page that you are calling. In most cases the server will completely execute the page that you call, but that may not always be true. It is possible for the server to detect that the client closed the connection an terminate execution.