/*
- * $Id: asn.cc,v 1.19 1998/02/06 00:49:00 wessels Exp $
+ * $Id: asn.cc,v 1.20 1998/02/10 22:17:52 wessels Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
StoreEntry *e = asState->entry;
char *s;
char *t;
- debug(50, 3) ("asHandleReply: Called with size=%d.\n", size);
+ debug(53, 3) ("asHandleReply: Called with size=%d.\n", size);
if (e->store_status == STORE_ABORTED) {
memFree(MEM_4K_BUF, buf);
return;
memFree(MEM_4K_BUF, buf);
return;
} else if (size < 0) {
- debug(50, 1) ("asHandleReply: Called with size=%d.\n", size);
+ debug(53, 1) ("asHandleReply: Called with size=%d.\n", size);
memFree(MEM_4K_BUF, buf);
return;
}
/*
- * $Id: cf_gen.cc,v 1.19 1997/12/03 01:30:39 wessels Exp $
+ * $Id: cf_gen.cc,v 1.20 1998/02/10 22:17:53 wessels Exp $
*
- * DEBUG: section 1 Startup and Main Loop
+ * DEBUG: none
* AUTHOR: Max Okumoto
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
/*
- * $Id: ipc.cc,v 1.3 1998/02/10 00:58:42 wessels Exp $
+ * $Id: ipc.cc,v 1.4 1998/02/10 22:17:53 wessels Exp $
*
* DEBUG: section 54 Interprocess Communication
* AUTHOR: Duane Wessels
debug(50, 0) ("--> read: %s\n", xstrerror());
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
} else if (strcmp(hello_buf, hello_string)) {
- debug(50, 0) ("ipcCreate: PARENT: hello read test failed\n");
- debug(50, 0) ("--> got '%s'\n", rfc1738_escape(hello_buf));
+ debug(54, 0) ("ipcCreate: PARENT: hello read test failed\n");
+ debug(54, 0) ("--> got '%s'\n", rfc1738_escape(hello_buf));
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
}
commSetTimeout(prfd, -1, NULL, NULL);
/*
- * $Id: mem.cc,v 1.2 1998/01/31 05:32:00 wessels Exp $
+ * $Id: mem.cc,v 1.3 1998/02/10 22:17:54 wessels Exp $
*
- * DEBUG: section 19 Memory Primitives
+ * DEBUG: section 13 Memory Pool Management
* AUTHOR: Harvest Derived
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
/*
- * $Id: multicast.cc,v 1.4 1997/11/05 05:29:31 wessels Exp $
+ * $Id: multicast.cc,v 1.5 1998/02/10 22:17:54 wessels Exp $
*
- * DEBUG: section 5 Socket Functions
+ * DEBUG: section 7 Multicast
* AUTHOR: Martin Hamilton
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
int x;
char c = 0;
if (ia == NULL) {
- debug(5, 0) ("comm_join_mcast_groups: Unknown host\n");
+ debug(7, 0) ("comm_join_mcast_groups: Unknown host\n");
return;
}
for (i = 0; i < (int) ia->count; i++) {
- debug(5, 10) ("Listening for ICP requests on %s\n",
+ debug(7, 10) ("Listening for ICP requests on %s\n",
inet_ntoa(*(ia->in_addrs + i)));
mr.imr_multiaddr.s_addr = (ia->in_addrs + i)->s_addr;
mr.imr_interface.s_addr = INADDR_ANY;
x = setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,
(char *) &mr, sizeof(struct ip_mreq));
if (x < 0)
- debug(5, 1) ("comm_join_mcast_groups: FD %d, [%s]\n",
+ debug(7, 1) ("comm_join_mcast_groups: FD %d, [%s]\n",
fd, inet_ntoa(*(ia->in_addrs + i)));
x = setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &c, 1);
if (x < 0)
- debug(5, 1) ("Can't disable multicast loopback: %s\n", xstrerror());
+ debug(7, 1) ("Can't disable multicast loopback: %s\n", xstrerror());
}
#endif
}
/*
- * $Id: stmem.cc,v 1.57 1998/02/02 21:16:33 wessels Exp $
+ * $Id: stmem.cc,v 1.58 1998/02/10 22:17:55 wessels Exp $
*
- * DEBUG: section 19 Memory Primitives
+ * DEBUG: section 19 Store Memory Primitives
* AUTHOR: Harvest Derived
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
/*
- * $Id: unlinkd.cc,v 1.20 1998/02/10 02:47:35 wessels Exp $
+ * $Id: unlinkd.cc,v 1.21 1998/02/10 22:17:56 wessels Exp $
*
- * DEBUG: section 43 Unlink Daemon
+ * DEBUG: section 12 Unlink Daemon
* AUTHOR: Duane Wessels
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
debug_trap("unlinkdClose: unlinkd_wfd < 0");
return;
}
- debug(43, 1) ("Closing unlinkd pipe on FD %d\n", unlinkd_wfd);
+ debug(12, 1) ("Closing unlinkd pipe on FD %d\n", unlinkd_wfd);
file_close(unlinkd_wfd);
file_close(unlinkd_rfd);
unlinkd_wfd = -1;
commSetTimeout(unlinkd_wfd, -1, NULL, NULL);
commSetNonBlocking(unlinkd_wfd);
commSetNonBlocking(unlinkd_rfd);
- debug(43, 0) ("Unlinkd pipe opened on FD %d\n", unlinkd_wfd);
+ debug(12, 0) ("Unlinkd pipe opened on FD %d\n", unlinkd_wfd);
#endif
}
/*
- * DEBUG: section 51 URN Parsing
+ * DEBUG: section 52 URN Parsing
* AUTHOR: Kostas Anagnostakis
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
int rtt;
wordlist *w;
wordlist *min_w = NULL;
- debug(50, 3) ("urnFindMinRtt\n");
+ debug(52, 3) ("urnFindMinRtt\n");
assert(urls != NULL);
for (w = urls; w; w = w->next) {
r = urlParse(m, w->key);
if (r == NULL)
continue;
- debug(50, 3) ("Parsed %s\n", w->key);
+ debug(52, 3) ("Parsed %s\n", w->key);
rtt = netdbHostRtt(r->host);
if (rtt == 0) {
- debug(50, 3) ("Pinging %s\n", r->host);
+ debug(52, 3) ("Pinging %s\n", r->host);
netdbPingSite(r->host);
memFree(MEM_REQUEST_T, r);
continue;
}
- debug(50, 3) ("%s rtt=%d\n", r->host, rtt);
+ debug(52, 3) ("%s rtt=%d\n", r->host, rtt);
if (rtt == 0)
continue;
if (rtt > min_rtt && min_rtt != 0)
}
if (rtt_ret)
*rtt_ret = min_rtt;
- debug(50, 1) ("urnFindMinRtt: Returning '%s' RTT %d\n",
+ debug(52, 1) ("urnFindMinRtt: Returning '%s' RTT %d\n",
min_w ? min_w->key : "NONE",
min_rtt);
return min_w;
char *host;
UrnState *urnState;
StoreEntry *urlres_e;
- debug(50, 3) ("urnStart: '%s'\n", storeUrl(e));
+ debug(52, 3) ("urnStart: '%s'\n", storeUrl(e));
urnState = xcalloc(1, sizeof(UrnState));
urnState->entry = e;
urnState->request = requestLink(r);
double tmprtt;
StoreEntry *tmpentry;
- debug(50, 3) ("urnHandleReply: Called with size=%d.\n", size);
+ debug(52, 3) ("urnHandleReply: Called with size=%d.\n", size);
if (urlres_e->store_status == STORE_ABORTED) {
memFree(MEM_4K_BUF, buf);
return;
/* we know its STORE_OK */
s = mime_headers_end(buf);
if (s == NULL) {
- debug(50, 1) ("urnHandleReply: didn't find end-of-headers for %s\n",
+ debug(52, 1) ("urnHandleReply: didn't find end-of-headers for %s\n",
storeUrl(e));
return;
}
assert(urlres_e->mem_obj->reply);
httpParseReplyHeaders(buf, urlres_e->mem_obj->reply);
- debug(50, 3) ("mem->reply exists, code=%d.\n",
+ debug(52, 3) ("mem->reply exists, code=%d.\n",
urlres_e->mem_obj->reply->code);
if (urlres_e->mem_obj->reply->code != HTTP_OK) {
- debug(50, 3) ("urnHandleReply: failed.\n");
+ debug(52, 3) ("urnHandleReply: failed.\n");
err = errorCon(ERR_URN_RESOLVE, HTTP_NOT_FOUND);
err->request = requestLink(urnState->request);
err->url = xstrdup(storeUrl(e));
s++;
urls = urnParseReply(s);
if (urls == NULL) { /* unkown URN error */
- debug(50, 3) ("urnTranslateDone: unknown URN %s\n", storeUrl(e));
+ debug(52, 3) ("urnTranslateDone: unknown URN %s\n", storeUrl(e));
err = errorCon(ERR_URN_RESOLVE, HTTP_NOT_FOUND);
err->request = requestLink(urnState->request);
err->url = xstrdup(storeUrl(e));
storeAppend(e, hdr, strlen(hdr));
httpParseReplyHeaders(hdr, e->mem_obj->reply);
if (EBIT_TEST(urnState->flags, URN_FORCE_MENU)) {
- debug(51, 3) ("urnHandleReply: forcing menu\n");
+ debug(52, 3) ("urnHandleReply: forcing menu\n");
} else if (min_w) {
l = snprintf(line, 4096, "Location: %s\r\n", min_w->key);
storeAppend(e, line, l);
wordlist *u;
wordlist *head = NULL;
wordlist **last = &head;
- debug(50, 3) ("urnParseReply\n");
+ debug(52, 3) ("urnParseReply\n");
for (token = strtok(buf, crlf); token; token = strtok(NULL, crlf)) {
- debug(50, 3) ("urnParseReply: got '%s'\n", token);
+ debug(52, 3) ("urnParseReply: got '%s'\n", token);
u = xmalloc(sizeof(wordlist));
u->key = xstrdup(token);
u->next = NULL;