]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1459: 504 Gateway Time-out on FTP uploads
authorserassio <>
Sun, 9 Apr 2006 18:21:52 +0000 (18:21 +0000)
committerserassio <>
Sun, 9 Apr 2006 18:21:52 +0000 (18:21 +0000)
Forward port of 2.5 patch.

src/ftp.cc

index cd4493e97935d13af15ab422dfb2e2f842448fe2..6bcc0915ee50421e8185d4616cc6cb1d52a20c10 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.389 2006/02/26 11:27:16 serassio Exp $
+ * $Id: ftp.cc,v 1.390 2006/04/09 12:21:52 serassio Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -2796,12 +2796,12 @@ FtpStateData::ftpDataWriteCallback(int fd, char *buf, size_t size, comm_err_t er
         return;
 
     if (!err) {
-        /* Shedule the rest of the request */
-        clientReadBody(ftpState->request,
-                       ftpState->data.readBuf->content(),
-                       ftpState->data.readBuf->contentSize(),
-                       ftpRequestBody,
-                       ftpState);
+        /* Schedule the rest of the request */
+        commSetSelect(fd,
+                      COMM_SELECT_WRITE,
+                      ftpDataWrite,
+                      ftpState,
+                      Config.Timeout.read);
     } else {
         debug(9, 1) ("ftpDataWriteCallback: write error: %s\n", xstrerr(xerrno));
         ftpState->failed(ERR_WRITE_ERROR, xerrno);