cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Files Open...?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 15 Dec 2001 16:41:56 +0100 (MET)

On Fri, 14 Dec 2001, Jonathan Hilgeman wrote:

(CC'ing the curl and php list.)

> I am using PHP and cURL to connect to a gateway, retrieve a page, and
> repeat the whole process about 1500 times. PHP is version 4.0.3 and cURL is
> 7.4.1.

Wow. Those are really old versions. We've fixed hundreds of curl bugs since
that version.

> Now, after a while, I begin getting cURL errors saying that cURL can't open
> a temporary file and that there are too many files open on the system.

That is a PHP-related bug, libcurl itself doesn't open any temporary files.

> Needless to say, this causes problems with the rest of the system until we
> stop the script and let the files close gradually. I was wondering if this
> was a known problem with cURL 7.4.1; I looked at the changelog and I didn't
> see anything related to that error...

I remember a bug that was similar to this a long time ago. It could've been
the same.

> My question, I guess, is - does cURL wait a while before closing out a
> file?

The file in question is opened by the curl binding for PHP, but I can't
figure out any reason why it would wait.

I think you're experiencing a bug here.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-12-15