]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
associate storeRegisterAbort calls with comm_add_close_handler calls
authorwessels <>
Wed, 18 Jun 1997 10:04:13 +0000 (10:04 +0000)
committerwessels <>
Wed, 18 Jun 1997 10:04:13 +0000 (10:04 +0000)
src/ftp.cc
src/http.cc

index e64277ab8b7a61a68b7240405ecd6479d50431ac..532acb348247714dd71d3eeca003a72942d2d46a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.123 1997/06/18 01:43:42 wessels Exp $
+ * $Id: ftp.cc,v 1.124 1997/06/18 04:04:13 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -858,6 +858,7 @@ ftpStart(request_t * request, StoreEntry * entry)
     }
     ftpState->ctrl.fd = fd;
     comm_add_close_handler(fd, ftpStateFree, ftpState);
+    storeRegisterAbort(entry, ftpAbort, ftpState);
     commSetTimeout(fd, Config.Timeout.connect, ftpTimeout, ftpState);
     commConnectStart(ftpState->ctrl.fd,
        request->host,
@@ -884,7 +885,6 @@ ftpConnectDone(int fd, int status, void *data)
     ftpState->data.buf = xmalloc(SQUID_TCP_SO_RCVBUF);
     ftpState->data.size = SQUID_TCP_SO_RCVBUF;
     ftpState->data.freefunc = xfree;
-    storeRegisterAbort(ftpState->entry, ftpAbort, ftpState);
     commSetSelect(fd, COMM_SELECT_READ, ftpReadControlReply, ftpState, 0);
 }
 
index 684550b0fb64780425450a9e4a3c9a57185f8fe8..8a7f2e344ddb419b376667f21ecc9ab50036baa2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: http.cc,v 1.172 1997/06/18 01:43:44 wessels Exp $
+ * $Id: http.cc,v 1.173 1997/06/18 04:04:14 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -898,7 +898,6 @@ httpConnectDone(int fd, int status, void *data)
        if (opt_no_ipcache)
            ipcacheInvalidate(request->host);
        fd_note(fd, entry->url);
-       storeRegisterAbort(entry, httpAbort, httpState);
        commSetSelect(fd, COMM_SELECT_WRITE, httpSendRequest, httpState, 0);
     }
 }
@@ -931,6 +930,7 @@ httpStart(request_t * request, StoreEntry * entry)
     comm_add_close_handler(httpState->fd,
        httpStateFree,
        httpState);
+    storeRegisterAbort(entry, httpAbort, httpState);
     commSetTimeout(fd, Config.Timeout.connect, httpTimeout, httpState);
     commConnectStart(httpState->fd,
        request->host,