Tofser - 2019-04-25 08:37:04
Why have you separated out the first url from the array - what do you think this is supposed to do? How does this differ from the way the other urls are added/executed?
I suggest your improved stability is not because of that, but because you have added the option to set CURLMOPT_MAXCONNECTS
curl_multi_setopt($mh, CURLMOPT_MAXCONNECTS, $n);
Did you try simply adding that option to the stock php.net code?
Or try removing it from your code to see if it is still "stable"?
see https://stackoverflow.com/questions/39032880/why-does-libcurl-calculate-4-times-the-number-of-added-easy-handles