/*
- * $Id: ACLChecklist.cc,v 1.11 2003/05/17 17:35:03 hno Exp $
+ * $Id: ACLChecklist.cc,v 1.12 2003/05/18 00:04:07 robertc Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
if (cbdataReferenceValidDone(callback_data, &cbdata_))
callback_(answer, cbdata_);
- delete this;
+ deleteSelf();
}
void
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.74 2003/05/17 17:35:03 hno Exp $
+# $Id: Makefile.am,v 1.75 2003/05/18 00:04:07 robertc Exp $
#
# Uncomment and customize the following to suit your needs:
#
acl.cc \
ACL.h \
ACLChecklist.cc \
- ACLChecklist.cci \
ACLChecklist.h \
$(squid_ACLSOURCES) \
asn.cc \
whois.cc \
$(WIN32SOURCE)
-noinst_HEADERS = MemBuf.cci \
+noinst_HEADERS = ACLChecklist.cci \
+ MemBuf.cci \
MemBuf.h \
Store.cci \
String.cci \
/*
- * $Id: client_side_request.cc,v 1.21 2003/05/11 13:53:03 hno Exp $
+ * $Id: client_side_request.cc,v 1.22 2003/05/18 00:04:07 robertc Exp $
*
* DEBUG: section 85 Client-side Request Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
cbdataReferenceDone(http);
if (acl_checklist)
- delete acl_checklist;
+ acl_checklist->deleteSelf();
}
ClientRequestContext::ClientRequestContext() : acl_checklist (NULL), redirect_state (REDIRECT_NONE), http(NULL)
{
ClientRequestContext *context = (ClientRequestContext *)data;
+ context->acl_checklist = NULL;
clientHttpRequest *http_ = context->http;
if (!cbdataReferenceValid (http_)) {
proxy_auth_msg = authenticateAuthUserRequestMessage((http->conn
&& http->conn->auth_user_request) ? http->conn->
auth_user_request : http->request->auth_user_request);
- context->acl_checklist = NULL;
if (answer == ACCESS_ALLOWED) {
safe_free(http->uri);
/*
- * $Id: comm.cc,v 1.374 2003/04/24 06:35:08 hno Exp $
+ * $Id: comm.cc,v 1.375 2003/05/18 00:03:55 robertc Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
int fd = ((fdc_t *)(data))->fd;
if (fdNFree() < RESERVED_FD) {
+ /* activate accept checking rather than period event based checks */
commSetSelect(fd, COMM_SELECT_READ, comm_accept_try, NULL, 0);
return;
}
/*
- * $Id: store.cc,v 1.565 2003/03/15 04:17:41 robertc Exp $
+ * $Id: store.cc,v 1.566 2003/05/18 00:04:07 robertc Exp $
*
* DEBUG: section 20 Storage Manager
* AUTHOR: Harvest Derived
store_client_t
StoreEntry::storeClientType() const
{
+ /* The needed offset isn't in memory
+ * XXX TODO: this is wrong for range requests
+ * as the needed offset may *not* be 0, AND
+ * offset 0 in the memory object is the HTTP headers.
+ */
+
if (mem_obj->inmem_lo)
return STORE_DISK_CLIENT;
}
if (store_status == STORE_OK) {
+ /* the object has completed. */
+
if (mem_obj->inmem_lo == 0 && !isEmpty())
+ /* hot object */
return STORE_MEM_CLIENT;
else
return STORE_DISK_CLIENT;
return;
}
+ /* This is suspect: mem obj offsets include the headers. do we adjust for that
+ * in use of object_sz?
+ */
mem_obj->object_sz = mem_obj->endOffset();
+
store_status = STORE_OK;
+
assert(mem_status == NOT_IN_MEMORY);
if (!validLength()) {