cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl_easy_cleanup()

From: Joe Halpin <j.p.h_at_comcast.net>
Date: Thu, 13 May 2004 10:25:36 -0500

The Guide says that curl_easy_cleanup() should only be called once. Is
this "once" during the life of the program, once for each transfer, or
something else?

I'm investigating a problem where ftp servers are emitting logs about
connections timing out even though the client appears to be closing the
connection properly. Personally I think they have a buggy server (it's a
vxWorks machine and the server came with the OS), but I need to be sure
that we're not doing something dumb.

Basically, every 30 minutes our client ftp's a directory listing and
then ftp's a file. The guy that wrote the code calls curl_easy_init(),
gets a directory listing, and curl_easy_cleanup(). Then
curl_easy_init(), transfers a file, followed by curl_easy_cleanup(). 30
minutes later the cycle repeats. Will this cause any problems?

Thanks

Joe
Received on 2004-05-13