]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2433: Ftp put gives bad gateway but put is correct
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Sep 2008 10:20:13 +0000 (22:20 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Sep 2008 10:20:13 +0000 (22:20 +1200)
src/ftp.cc

index 4607c2b7909e838460a1e8ebbe8c63839c82a7dc..1cb6d3531999984813be6e60b505674ac0606374 100644 (file)
@@ -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.