lib/url.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/url.c b/lib/url.c
index 1b65a92..4e2bce6 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2910,6 +2910,11 @@
check->data = data;
infof(data, "Connection #%ld seems to be dead!\n", i);
+ if(check->protocol & PROT_FTP)
+ /* FTP: avoid sending QUIT and waiting for response on a dead
+ * connection */
+ check->proto.ftpc.ctl_valid = FALSE;
+
/* disconnect resources */
Curl_disconnect(check, /* dead_connection */ TRUE);
data->state.connc->connects[i]=NULL; /* nothing here */