curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: A single request in loop on macOS

From: Dmitry Karpov via curl-library <>
Date: Wed, 20 Mar 2024 23:58:45 +0000

Oh! I think I was confused by this part:

" The behaviour is a little different when switching server (for instance, with the Python one, error is a timeout 28). I really don't understand what's happening and would be glad to have an explantion about what I'm missing."

So, I thought that it wasn't clear why timeouts were happening.

Dmitry Karpov

-----Original Message-----
From: Daniel Stenberg <>
Sent: Wednesday, March 20, 2024 3:40 PM
To: Dmitry Karpov via curl-library <>
Cc: Dmitry Karpov <>
Subject: [EXTERNAL] Re: A single request in loop on macOS

On Wed, 20 Mar 2024, Dmitry Karpov via curl-library wrote:

> "To me, that indicates that a resource of some sort has run out, which
> possibly makes curl fail to create the new socket."
> I think it is fair to expect that if libcurl fails to create a new
> socket, then it will fail the transfer instantly with an error code
> different from timeout, isn't it?

The output he showed from his program said error code 7, that is CURLE_COULDNT_CONNECT. Not a timeout.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2024-03-21