gocardless-legacy-php
gocardless-legacy-php copied to clipboard
Possible Curl timeout in Request.php
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.