Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Possible Curl timeout in Request.php #31

@saga64

Description

@saga64

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions