curl-library
Re: Socket connect error after repeated failures
Date: Sun, 9 Jun 2002 20:22:09 +0200 (MET DST)
On Fri, 7 Jun 2002, Gautam Mani wrote:
> I am using libcurl 7.9.6 on solaris 8. I basically use libcurl to get a
> list of files to download from a directory and then download and delete
> them one after another using FTP. Due to some reason, there was no read
> access on the files which i needed to download, so although I could list
> the files, I could not download them. Repeatedly a data connection was made
> to the server and a permission denied was received for each of the files.
>
> After sometime (a large number of attempts) - libcurl started throwing
> socket errors; the error code returned is 15 "can't resovlve hostname xxx".
> In verbose mode, it says that gethostbyname_r failed for the host.
>
> Has anybody else faced a similar problem or does someone have any other
> ideas on this problem? I would really appreciate any pointers on this.
I agree with Rick Jones' analysis that it sounds and looks as if it is some
resource fatique that has happened.
I honestly don't think libcurl itself leaks file descriptors (though I may be
wrong) so I'd advice you to review your own code regarding this kinds of
stuff.
I don't think upgrading to libcurl 7.9.7 will solve this issue for you.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlinkReceived on 2002-06-09