From: Amos Jeffries Date: Sat, 27 Sep 2008 10:20:13 +0000 (+1200) Subject: Bug 2433: Ftp put gives bad gateway but put is correct X-Git-Tag: SQUID_3_0_STABLE10~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e44da196aef956f016559a49480f055345682bd2;p=thirdparty%2Fsquid.git Bug 2433: Ftp put gives bad gateway but put is correct --- diff --git a/src/ftp.cc b/src/ftp.cc index 4607c2b790..1cb6d35319 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -3352,8 +3352,12 @@ FtpStateData::writeReplyBody(const char *data, size_t len) void FtpStateData::doneSendingRequestBody() { - debugs(9,3,HERE << "doneSendingRequestBody"); - ftpWriteTransferDone(this); + debugs(9,3,HERE); + dataComplete(); +/* NP: RFC 959 3.3. DATA CONNECTION MANAGEMENT + * if transfer type is 'stream' call dataComplete() + * otherwise leave open. (reschedule control channel read?) + */ } // a hack to ensure we do not double-complete on the forward entry.