gocardless-legacy-php icon indicating copy to clipboard operation
gocardless-legacy-php copied to clipboard

Possible Curl timeout in Request.php

Open saga64 opened this issue 11 years ago • 0 comments

Hi

I notice our server occasionally throw GoCardlessApiException which give a "Unknown error" message, the HTTP response code from the sandbox server was 0.

After read through the Request.php, I noticed that the timeout of curl connection is set to 10

CURLOPT_CONNECTTIMEOUT => 10

I'm concerning there might be a connection timeout that may delayed by DNS server as curl doesn't really cache the DNS request, thus I would recommend you to increase this CONNECTTIMEOUT to 30 or greater, after I change it in our system, this issue seems somehow resolved.

saga64 avatar Nov 20 '13 16:11 saga64