From 70541498d85d1879dcd9af9210b88a0b633a4fb9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 28 May 2015 22:14:43 +0900 Subject: [PATCH] ftp: Fix timeout when reusing FTP connection --- src/FtpNegotiationCommand.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FtpNegotiationCommand.cc b/src/FtpNegotiationCommand.cc index 1655a775..09e4d1d1 100644 --- a/src/FtpNegotiationCommand.cc +++ b/src/FtpNegotiationCommand.cc @@ -101,6 +101,7 @@ FtpNegotiationCommand::FtpNegotiationCommand if(seq == SEQ_RECV_GREETING) { setTimeout(getOption()->getAsInt(PREF_CONNECT_TIMEOUT)); } + setWriteCheckSocket(getSocket()); } FtpNegotiationCommand::~FtpNegotiationCommand() {}