cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP CURLOPT_POSTQUOTE with CURLOPT_NOBODY bug ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 24 Jan 2006 11:04:54 +0100 (CET)

On Tue, 24 Jan 2006, Philippe Vaucher wrote:

> I found a rather strange bug with libcurl in a multithreaded environnement
> doing FTP commands with CURLOPT_POSTQUOTE and CURLOPT_NOBODY together, when
> two threads connect to the same FTP server.

Only when done multi-threaded? Only when connecting to the same server?

> Sometimes libcurl gives me a weird CURLE_TOO_MANY_REDIRECTS (47) for an FTP
> "DELE" command. And sometimes not.

That is just a totally bogus return code for FTP that would indicate a serious
confusion somewhere...

> If I set CURLOPT_MAXREDIRS to -1 (which the docs says it is supposed to
> already be) then libcurl tries to delete the file twice and it ends in a
> CURLE_FTP_QUOTE_ERROR (21).
>
> I did set CURLOPT_NOBODY and I think I did everything fine. If I remove
> CURLOPT_NOBODY it works without the error above but then I have an FTP
> "LIST" occuring and this slows down my app a lot.

Aha. Any chance you can debug this to see if you can detect where it goes
wrong?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-01-24