/*
- * $Id: stat.cc,v 1.395 2006/05/29 00:15:02 robertc Exp $
+ * $Id: stat.cc,v 1.396 2006/07/08 16:38:07 serassio Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
int fd;
for (i = ClientActiveRequests.head; i; i = i->next) {
+ const char *p = NULL;
http = static_cast<ClientHttpRequest *>(i->data);
assert(http);
ConnStateData::Pointer conn = http->getConn();
(int) http->start.tv_usec,
tvSubDsec(http->start, current_time));
- if (http->request->auth_user_request) {
- const char *p;
-
+ if (http->request->auth_user_request)
p = http->request->auth_user_request->username();
+ else if (http->request->extacl_user.buf() != NULL) {
+ p = http->request->extacl_user.buf();
+ }
- if (!p)
- p = "-";
+ if (!p && (conn.getRaw() != NULL && conn->rfc931[0]))
+ p = conn->rfc931;
- storeAppendPrintf(s, "username %s\n", p);
- }
+#if USE_SSL
+
+ if (!p && conn.getRaw() != NULL)
+ p = sslGetUserEmail(fd_table[conn->fd].ssl);
+
+#endif
+
+ if (!p)
+ p = dash_str;
+
+ storeAppendPrintf(s, "username %s\n", p);
#if DELAY_POOLS
+
storeAppendPrintf(s, "delay_pool %d\n", DelayId::DelayClient(http) >> 16);
#endif