Skip to content

curl_exec times out on large POSTs #2

Description

@scottsuhy

In MetrcApi.php function executeAction() I'm getting 504's when the POST is large (like a harvest) and the curl_exec($ch) is not returning in time

I've tried the following but it does not help:

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($ch, CURLOPT_TIMEOUT, 300);
set_time_limit(300);
ignore_user_abort(true);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions