Do not reuse connection as that feature seems to be broken
This commit is contained in:
parent
a5f5f63c27
commit
579945c2e7
|
@ -98,6 +98,9 @@ bool cmCTestSubmit::SubmitUsingFTP(const std::string& localprefix,
|
|||
/* In windows, this will init the winsock stuff */
|
||||
::curl_global_init(CURL_GLOBAL_ALL);
|
||||
|
||||
std::string::size_type cc;
|
||||
for ( cc = 0; cc < files.size(); cc ++ )
|
||||
{
|
||||
/* get a curl handle */
|
||||
curl = curl_easy_init();
|
||||
if(curl)
|
||||
|
@ -122,9 +125,6 @@ bool cmCTestSubmit::SubmitUsingFTP(const std::string& localprefix,
|
|||
// enable uploading
|
||||
::curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE) ;
|
||||
|
||||
std::string::size_type cc;
|
||||
for ( cc = 0; cc < files.size(); cc ++ )
|
||||
{
|
||||
std::string local_file = localprefix + "/" + files[cc];
|
||||
std::string upload_as = url + "/" + remoteprefix + files[cc];
|
||||
|
||||
|
@ -158,10 +158,10 @@ bool cmCTestSubmit::SubmitUsingFTP(const std::string& localprefix,
|
|||
::curl_global_cleanup();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// always cleanup
|
||||
::curl_easy_cleanup(curl);
|
||||
}
|
||||
}
|
||||
::curl_global_cleanup();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue