Skip to content
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

Slow curl performance #9

Open
davidsayre opened this issue Aug 26, 2014 · 1 comment
Open

Slow curl performance #9

davidsayre opened this issue Aug 26, 2014 · 1 comment

Comments

@davidsayre
Copy link

I wanted to provide a tip regarding this extension and the php curl library on a server with both ipv4 and ipv6.

We ran into signifigant performance issues and the root of the problem was that on the server (RHEL 5 running 5.3) the curl requests were trying ipv6 DNS lookups before ipv4.

There are 2 fixes for this.

  1. edit ALL of the CURLOPT code blocks to include curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
  2. force the server to stop using ipv6.

Once this was done the curl API performance was near instant.

@SerheyDolgushev
Copy link
Contributor

Hi David,
Can you please push your changes in this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants