curl_multi_select
did not complete or did timeout when calling curl functions 2 (or more) times on Guzzle or AWS-SDK.
#4393
Labels
Please answer these questions before submitting your issue. Thanks!
1. What did you do? If possible, provide a simple script for reproducing the error.
Pattern 1
I'm using Guzzle. (guzzlehttp/guzzle, v7.3.0)
The below script does timeout
curl_multi_select
inGuzzleHttp\Handler\CurlMultiHandler::tick
at line 161.And does not complete
GuzzleHttp\Handler\CurlMultiHandler::execute
at line 175.it was entered to infinity loop after output for divider line (did not output
int(0)
andfloat(0....)
after divider line).int(0) string(20) "--------------------"
Pattern 2
I'm using AWS-SDK (aws/aws-sdk-php, 3.192.0).
The below script has a problem at the same above.
However, the script was completed to execute the
GuzzleHttp\Handler\CurlMultiHandler::execute
but it is very very slow.The script is very slow to complete when calling 2 or more times.
2. What did you expect to see?
I want to complete to execute pattern 1 and pattern 2.
As for pattern 2, I hope it will be completed soon.
However, when using PHP 7.4.21 + Swoole 4.6.7, curl functions are executed successfully.
And if I use PHP 7.4.22 (or later), Swoole 4.6.7/4.7.0 (or later) will not work.
(Other than that, I tested that PHP 7.4.21 + Swoole 4.7.0 (or later) will work, but it is very slow to complete pattern 1 and pattern 2.)
I want to expect is here (The below output is using PHP 7.4.21 and Swoole v4.6.7):
Pattern1
int(0) string(20) "--------------------" int(0) float(0.60461807250977)
Pattern2
3. What did you see instead?
Pattern 1
int(0) string(20) "--------------------"
Pattern 2
4. What version of Swoole are you using (show your
php --ri swoole
)?5. What is your machine environment used (show your
uname -a
&php -v
&gcc -v
) ?uname -a
gcc -v
The problem pattern
php -v
php --ri swoole
The successful pattern
php -v
php --ri swoole
The text was updated successfully, but these errors were encountered: