-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hangs with test connection #15
Comments
Is |
Doh! According to php this version was actually built with Curl 7.52.1 BUT with OpenSSL/1.0.2k So I guess that's the cause? I am curious as to why the simple loop without curl_multi_select would cause no issue though ? |
So your curl and openssl versions is ok. You should also check if curl compiled with HTTP/2 support. |
Implemented as in comment on php.net: http://php.net/manual/en/function.curl-multi-select.php#115381
I am trying to use this to make a simple connection to Apple. I pass an erroneous app ID + device ID and the connection just hangs in Client.php . IP is not blocked because a simple shell curl command to either dev or prod apple servers works fine (It returns an error of course).
With the current Client.php It hangs forever in the second while here:
` $active = null;
do {
$mrc = curl_multi_exec($mh, $active);
} while ($mrc == CURLM_CALL_MULTI_PERFORM);
However, If I replace this with this simple loop here.
do {
$mrc = curl_multi_exec($mh, $active);
} while ($active > 0);
`
All works fine.
System is out of the box Debian instance with PHP 7.0.16-3, OpenSSL 1.1.0e , cURL 7.52.1
Any ideas ?
The text was updated successfully, but these errors were encountered: