Skip to content

[CurlHttpClient] Problem with the ssl ca cert (path? access rights?) #15440

Closed
@Bryan988

Description

@Bryan988
Programs Version
Symfony 4.4
PHP 7.4.9
Windows 10

Description

I am using Multiplex Responses as described in the documentation. This is working fine for small amount of request like 400 / 500.
Unfortunately, when I start to do more that 500 requests, I get the following error displayed :

Error : problem with the ssl ca cert (path? access rights?)

In the curl debug, this is displayed :

error setting certificate verify locations:
CAfile: "C:\cacert\cacert.pem
CApath : none

The CAfile is working fine, The issue might come from the maximum number of simultaneous processes reading the same file.
The requests are all different.

Possible Solution

Loop on a smaller number of requests reset the client before beginning the loop.
After looking at CurlHttpClient.php . I spotted a method called reset().
The problem is that I have already tried this solution and it raises another issue.

In CurlResponse.php line 275:
 [ErrorException]                                      
  Warning: Invalid callback , no array or string given 

Curlresponse.php :

272  try {
273            self::$performing = true;
274            $active = 0;
275            while (\CURLM_CALL_MULTI_PERFORM === curl_multi_exec($multi->handle, $active));

Working

By limiting the max number of requests to 500, and without the reset() method, it is working. My issue is that it is too limited as I have to do more that 100k requests. It will be too long

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions