The attached patch makes mgr:idns show a bit more detail about the queue. And one more thing to check in the cachemgr data.
squidclient mgr:events | grep idns do that give you a idnsCheckQueue entry? (it should, when there is entries in the queue...) Note: the test above does not require the attached patch. The patch just extends mgr:idns a little including which protocol is being used and what is being queried for. Regards Henrik
Index: src/dns_internal.c
===================================================================
RCS file: /cvsroot/squid/squid/src/dns_internal.c,v
retrieving revision 1.68
diff -u -p -r1.68 dns_internal.c
--- src/dns_internal.c 3 May 2008 08:49:36 -0000 1.68
+++ src/dns_internal.c 25 Jun 2008 23:20:44 -0000
@@ -522,14 +522,16 @@ idnsStats(StoreEntry * sentry)
storeAppendPrintf(sentry, "Internal DNS Statistics:\n");
storeAppendPrintf(sentry, "\nThe Queue:\n");
storeAppendPrintf(sentry, " DELAY SINCE\n");
- storeAppendPrintf(sentry, " ID SIZE SENDS FIRST SEND LAST SEND\n");
- storeAppendPrintf(sentry, "------ ---- ----- ---------- ---------\n");
+ storeAppendPrintf(sentry, " ID SIZE SENDS FIRST SEND LAST SEND PRO NAME\n");
+ storeAppendPrintf(sentry, "------ ---- ----- ---------- --------- --- ------------------\n");
for (n = lru_list.head; n; n = n->next) {
q = n->data;
- storeAppendPrintf(sentry, "%#06x %4d %5d %10.3f %9.3f\n",
+ storeAppendPrintf(sentry, "%#06x %4d %5d %10.3f %9.3f %3s %s\n",
(int) q->id, (int) q->sz, q->nsends,
tvSubDsec(q->start_t, current_time),
- tvSubDsec(q->sent_t, current_time));
+ tvSubDsec(q->sent_t, current_time),
+ q->tcp_socket != -1 ? "TCP" : "UDP",
+ q->name);
}
storeAppendPrintf(sentry, "\nNameservers:\n");
storeAppendPrintf(sentry, "IP ADDRESS # QUERIES # REPLIES\n");
signature.asc
Description: This is a digitally signed message part
