]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Changed ttlSet to NOT return the ttl, instead set entry->expires and
authorwessels <>
Fri, 19 Jul 1996 23:38:36 +0000 (23:38 +0000)
committerwessels <>
Fri, 19 Jul 1996 23:38:36 +0000 (23:38 +0000)
entry->lastmod directly.

src/ftp.cc
src/gopher.cc
src/http.cc
src/squid.h

index a33390fd251381223871a5c06f46a51c59c18572..890e00b77e045153e3c118d310380afed600f889 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.44 1996/07/19 02:42:21 wessels Exp $
+ * $Id: ftp.cc,v 1.45 1996/07/19 17:38:36 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -274,7 +274,7 @@ static void ftpProcessReplyHeader(data, buf, size)
        case 301:               /* Moved Permanently */
        case 410:               /* Gone */
            /* These can be cached for a long time, make the key public */
-           entry->expires = squid_curtime + ttlSet(entry);
+           ttlSet(entry);
            if (BIT_TEST(entry->flag, CACHABLE))
                storeSetPublicKey(entry);
            break;
@@ -382,7 +382,7 @@ int ftpReadReply(fd, data)
            BIT_RESET(entry->flag, CACHABLE);
            storeReleaseRequest(entry);
        } else if (!(entry->flag & DELETE_BEHIND)) {
-           entry->expires = squid_curtime + ttlSet(entry);
+           ttlSet(entry);
        }
        /* update fdstat and fdtable */
        storeComplete(entry);
index 44ebf033fedd826c96d3e9eaa4b84f4b89e653d0..e8308f8fdbb0f5cc1caa0681e86ebd185c20e606 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: gopher.cc,v 1.33 1996/07/18 20:27:01 wessels Exp $
+ * $Id: gopher.cc,v 1.34 1996/07/19 17:38:37 wessels Exp $
  *
  * DEBUG: section 10    Gopher
  * AUTHOR: Harvest Derived
@@ -772,7 +772,7 @@ int gopherReadReply(fd, data)
        if (data->conversion != NORMAL)
            gopherEndHTML(data);
        if (!(entry->flag & DELETE_BEHIND))
-           entry->expires = squid_curtime + ttlSet(entry);
+           ttlSet(entry);
        BIT_RESET(entry->flag, DELAY_SENDING);
        storeComplete(entry);
        comm_close(fd);
index 0f416b1217c75809f086333cb0d1199b53612d96..da70118f63136c7080daf3e325547af576f5e2ad 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: http.cc,v 1.62 1996/07/18 20:27:02 wessels Exp $
+ * $Id: http.cc,v 1.63 1996/07/19 17:38:38 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -203,7 +203,7 @@ static void httpLifetimeExpire(fd, httpState)
 static void httpMakePublic(entry)
      StoreEntry *entry;
 {
-    entry->expires = squid_curtime + ttlSet(entry);
+    ttlSet(entry);
     if (BIT_TEST(entry->flag, CACHABLE))
        storeSetPublicKey(entry);
 }
index d9e16d6a240d37b3f2dbfc19197902a5f54985e9..5c2d367f54ab73417d06af740e1f55c57eacea26 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.28 1996/07/18 20:27:08 wessels Exp $
+ * $Id: squid.h,v 1.29 1996/07/19 17:38:38 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -281,6 +281,6 @@ extern int objcacheStart _PARAMS((int, char *, StoreEntry *));
 extern void send_announce _PARAMS((void));
 extern int sslStart _PARAMS((int fd, char *, request_t *, char *, int *sz));
 extern char *storeToString _PARAMS((StoreEntry *));
-extern time_t ttlSet _PARAMS((StoreEntry *));
+extern void ttlSet _PARAMS((StoreEntry *));
 extern void ttlAddToList _PARAMS((char *, time_t, int, time_t));
 extern int waisStart _PARAMS((int, char *, method_t, char *, StoreEntry *));