ActiveCampaign / activecampaign-api-php

MIT License
115 stars 76 forks source link

CURL not timing out, wrapper stuck 'indefinitely' #76

Closed Jkwakkel closed 6 years ago

Jkwakkel commented 7 years ago

Currently having an issue where there is a connection made to the API, but the API is very slow (Been loading for a few minutes). This in turn block the whole website.

I suggest adding the following to the curl function

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0); curl_setopt($ch, CURLOPT_TIMEOUT, 10);

So that if after 10 second in total CURL will stop. 10 seconds should be long enough for this API.

Jkwakkel commented 7 years ago

Created a fork and made it 8 second. Will see how it goes once the API is fully operating again.

mthommes commented 7 years ago

Hello! We did have some minor API availability issues the last couple of days, but we believe that to be resolved now. Are you still experiencing this issue consistently?

cristiangrama commented 6 years ago

Addressed in #78