From: wessels <> Date: Wed, 15 Oct 1997 00:31:24 +0000 (+0000) Subject: - More cleanup relating to reduced error code set. protostart() doesn't X-Git-Tag: SQUID_3_0_PRE1~4795 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd85f13697d698223b19a8b8d4d4813cd35f334b;p=thirdparty%2Fsquid.git - More cleanup relating to reduced error code set. protostart() doesn't really need ERR_NOT_IMPLEMENTED. - Start working on VM_WINDOW code, removed/replaced old DONT_USE_VM defines - Replaced !DONT_USE_VM defines with USE_ICP_HIT_OBJ. --- diff --git a/src/http.cc b/src/http.cc index b04c4ff8ab..00c071ed5c 100644 --- a/src/http.cc +++ b/src/http.cc @@ -1,5 +1,5 @@ /* - * $Id: http.cc,v 1.188 1997/10/13 22:09:11 kostas Exp $ + * $Id: http.cc,v 1.189 1997/10/14 18:31:24 wessels Exp $ * * DEBUG: section 11 Hypertext Transfer Protocol (HTTP) * AUTHOR: Harvest Derived @@ -1015,11 +1015,7 @@ httpStart(request_t * request, StoreEntry * entry, peer * e) RequestMethodStr[request->method], entry->url); if (e) { if (e->options & NEIGHBOR_PROXY_ONLY) -#if DONT_USE_VM storeReleaseRequest(entry); -#else - storeStartDeleteBehind(entry); -#endif if ((fd = pconnPop(e->host, e->http_port)) >= 0) { debug(11, 3) ("httpStart: reusing pconn FD %d\n", fd); httpState = httpBuildState(fd, entry, request, e); diff --git a/src/structs.h b/src/structs.h index 49ae3c336e..a6086941d1 100644 --- a/src/structs.h +++ b/src/structs.h @@ -721,12 +721,16 @@ struct _stmem_stats { /* keep track each client receiving data from that particular StoreEntry */ struct _store_client { +#if VM_WINDOW + int swapin_fd; +#else off_t copy_offset; off_t seen_offset; size_t copy_size; char *copy_buf; STCB *callback; void *callback_data; +#endif }; @@ -741,7 +745,9 @@ struct _MemObject { struct _store_client *clients; int nclients; off_t swap_offset; +#if !VM_WINDOW short swapin_fd; +#endif short swapout_fd; struct _http_reply *reply; request_t *request; diff --git a/src/wais.cc b/src/wais.cc index a4b8536a90..0cf694a239 100644 --- a/src/wais.cc +++ b/src/wais.cc @@ -1,6 +1,6 @@ /* - * $Id: wais.cc,v 1.81 1997/10/13 22:09:26 kostas Exp $ + * $Id: wais.cc,v 1.82 1997/10/14 18:31:28 wessels Exp $ * * DEBUG: section 24 WAIS Relay * AUTHOR: Harvest Derived @@ -171,7 +171,6 @@ waisReadReply(int fd, void *data) } if (entry->flag & DELETE_BEHIND && !storeClientWaiting(entry)) { /* we can terminate connection right now */ - assert(!ERR_NO_CLIENTS); storeAbort(entry, 0); comm_close(fd); return;