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

Purging works sporadically due to API client timeout #29

Open
fiasco opened this issue Dec 3, 2017 · 1 comment · May be fixed by #31
Open

Purging works sporadically due to API client timeout #29

fiasco opened this issue Dec 3, 2017 · 1 comment · May be fixed by #31

Comments

@fiasco
Copy link

fiasco commented Dec 3, 2017

I'm getting errors from the Cloudflare purger at times due to the client set timeout. I've verified API limits have not been breached but instead this is simply because Cloudflare had not responded in a timely manor.

Reported Error:

purger_cloudflare_055f11ff77: cURL error 28: Operation timed out after 3000 milliseconds with 0 bytes received (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Whats unclear to me, is why, even after three seconds waiting for a response, no purging takes place. My default thought would be to extend the timeout to see if cloudflare timeouts to the API reduce.

@fiasco fiasco linked a pull request Dec 3, 2017 that will close this issue
@doz007
Copy link

doz007 commented Dec 17, 2020

I had the same problem with purging tags on my Drupal site. After such a timeout, the invalidations stay in the purge queue. When new tag invalidations are added, they are joined into the next purge request, which makes the purge request even slower.
I tried to repeat such a purge request of 30 tags using Postman and it took 11 seconds to complete. The same request with 6 tags took 2.6 seconds.
So increasing to 6 seconds will be better, but it might not be enough when the number of tags add up, at least for my site.

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

Successfully merging a pull request may close this issue.

2 participants