-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Re-use curl connection #5101
Labels
Comments
Can not share the same |
Each request needs to create different connections and maintain IO state of different connections. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I need some help, please.
Please answer these questions before submitting your issue.
I expect curl to reuse the connection in the second request.
I see that curl creates a new connection for each request.
The problem is only with SWOOLE_HOOK_NATIVE_CURL. When using SWOOLE_HOOK_CURL or curl without swoole, there is no problem.
I checked on Ubuntu 20.04, 22.04 and Debian 11, and on older versions of swoole.
php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?The text was updated successfully, but these errors were encountered: