]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
storeAppend() might abort an entry in httpReadReply()
authorwessels <>
Wed, 13 Jan 1999 12:54:48 +0000 (12:54 +0000)
committerwessels <>
Wed, 13 Jan 1999 12:54:48 +0000 (12:54 +0000)
src/http.cc

index 8c093bf408d18174e4b15851812b45eaf9327a7f..e30920a1e856a7407c8d123170205fd5479fa760 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.338 1999/01/12 23:37:46 wessels Exp $
+ * $Id: http.cc,v 1.339 1999/01/13 05:54:48 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -503,7 +503,6 @@ httpReadReply(int fd, void *data)
            }
        }
        storeAppend(entry, buf, len);
-#ifdef OPTIMISTIC_IO
        if (EBIT_TEST(entry->flags, ENTRY_ABORTED)) {
            /*
             * the above storeAppend() call could ABORT this entry,
@@ -511,9 +510,7 @@ httpReadReply(int fd, void *data)
             * there's nothing for us to do.
             */
            (void) 0;
-       } else
-#endif
-       if (httpPconnTransferDone(httpState)) {
+       } else if (httpPconnTransferDone(httpState)) {
            /* yes we have to clear all these! */
            commSetDefer(fd, NULL, NULL);
            commSetTimeout(fd, -1, NULL, NULL);