cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: EPSV and PASV Errors from Dreamhost

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 17 Jul 2007 22:27:57 +0200 (CEST)

On Tue, 17 Jul 2007, Jofell Gallardo wrote:

> I'm actually a fan of yours when it comes to support... you're like superman
> for mailing lists...

Thanks!

> * control connection looks dead
> * Connection #0 to host crackerjack.dreamhost.com left intact

While I share Dan F's views on this not being the full log, I believe the
above two lines reveal a bug! When the control connection "seems dead", we
should not re-use that in a subsequent request!

I'll commit the change below, that may make your case behave differently:

--- lib/ftp.c 13 Jul 2007 20:04:53 -0000 1.419
+++ lib/ftp.c 17 Jul 2007 20:27:36 -0000
@@ -3137,7 +3137,7 @@
      if(!nread && (CURLE_OPERATION_TIMEDOUT == result)) {
        failf(data, "control connection looks dead");
        ftpc->ctl_valid = FALSE; /* mark control connection as bad */
- return result;
+ conn->bits.close = TRUE; /* mark for closure */
      }

      if(result)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-07-17