curl-library
Re: Problem reusing ftp connections
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 11 Dec 2002 14:20:24 +0100 (MET)
Date: Wed, 11 Dec 2002 14:20:24 +0100 (MET)
On Wed, 11 Dec 2002, Cadime wrote:
> I was trying to reuse connections and I got a strange behaviour.
>
> I do the following sequence of commands several times:
> a) list remote files of a known extension
> b) reuse connection to get each file individually.
> c) close connection ( curl_easy_cleanup )
>
> After a while I am reaching the maximum number of open sockets for my
> process and I am not able to open a new one.
>
> If I do not reuse the connections, everything is OK.
This certainly sounds as if there is a file handle leak.
Please follow the few simple steps outlined in the README.memoryleak document
(online here: http://curl.haxx.se/lxr/source/lib/README.memoryleak) in order
to verify/track this down.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/Received on 2002-12-11