While using the default Request Handler, we observed that calling the call method in CurlRequestHandler can result in infinite waiting for a server response if the server does not return a reply.
Proposed Solution:
-
Add a default timeout to CurlHandler to prevent infinite waiting.
-
Allow configuring additional cURL options by exposing $curlHandle as a protected property or providing a getter to enable modification in extended classes.
These changes will allow users to better configure cURL settings and prevent other network issues.