cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_init() returns NULL occasionally

From: Daniel Stenberg <>
Date: Sat, 17 Oct 2009 21:47:55 +0200 (CEST)

On Fri, 16 Oct 2009, Singh, Sharad Kumar [OS-IE] wrote:

> I am using libcurl version 7.19.2 configured and compiled in default
> mode on a Linux box running fedora core 9. I am using four processes running
> simultaneously to send mutliple requests to Curl to download documents. Each
> process send around 10 requests per second. Occasionally, I get
> curl_easy_init to return NULL. The documentation says, "something went wrong
> and you cannot use the other curl functions".

As you can see in the code, it doesn't do a lot that can result in this
problem. I figure you can add some trace outputs and/or use a debugger to
further pinpoint exactly which of the few calls that fails for you.

List admin:
Received on 2009-10-17