-
/*
- * $Id: client.cc,v 1.25 1997/08/10 06:34:27 wessels Exp $
+ * $Id: client.cc,v 1.26 1997/08/25 02:19:30 wessels Exp $
*
* DEBUG: section 0 WWW Client
* AUTHOR: Harvest Derived
/*
- * $Id: client_side.cc,v 1.122 1997/08/24 23:13:26 wessels Exp $
+ * $Id: client_side.cc,v 1.123 1997/08/25 02:19:31 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
err->redirect_url = xstrdup(redirectUrl);
} else {
/* NOTE: don't use HTTP_UNAUTHORIZED because then the
- stupid browser wants us to authenticate */
+ * stupid browser wants us to authenticate */
err->http_status = HTTP_FORBIDDEN;
}
errorSend(fd, err);
/*
- * $Id: errorpage.cc,v 1.66 1997/08/24 01:59:47 wessels Exp $
+ * $Id: errorpage.cc,v 1.67 1997/08/25 02:19:32 wessels Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
break;
case 'p':
if (r) {
- snprintf(buf, CVT_BUF_SZ, "%d", (int) r->port);
- p = buf;
+ snprintf(buf, CVT_BUF_SZ, "%d", (int) r->port);
+ p = buf;
} else {
- p = "[unknown port]";
+ p = "[unknown port]";
}
break;
case 'P':
p = err->dnsserver_msg;
break;
/*
- e - errno
- E - strerror()
- t - local time
- T - UTC
- c - Squid error code
- I - server IP address
- i - client IP address
- L - HREF link for more info/contact
- w - cachemgr email address
- h - cache hostname
- d - seconds elapsed since request received
- p - URL port #
-*/
+ * e - errno
+ * E - strerror()
+ * t - local time
+ * T - UTC
+ * c - Squid error code
+ * I - server IP address
+ * i - client IP address
+ * L - HREF link for more info/contact
+ * w - cachemgr email address
+ * h - cache hostname
+ * d - seconds elapsed since request received
+ * p - URL port #
+ */
default:
p = "%UNKNOWN%";
break;
}
if (p == NULL)
p = "<NULL>";
- debug(4, 1)("errorConvert: %%%c --> '%s'\n", token, p);
+ debug(4, 1) ("errorConvert: %%%c --> '%s'\n", token, p);
return p;
}
err->http_status,
"text/html",
clen,
- 0, /* no LMT for error pages */
+ 0, /* no LMT for error pages */
squid_curtime);
tlen = snprintf(buf, ERROR_BUF_SZ, "%s\r\n%s", hdr, content);
if (len)
/*
- * $Id: neighbors.cc,v 1.157 1997/08/25 02:17:47 wessels Exp $
+ * $Id: neighbors.cc,v 1.158 1997/08/25 02:19:32 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
}
static void
-peerCountHandleIcpReply(peer * p, peer_t type, icp_common_t *hdr, void *data)
+peerCountHandleIcpReply(peer * p, peer_t type, icp_common_t * hdr, void *data)
{
ps_state *psstate = data;
psstate->icp.n_recv++;
/*
- * $Id: peer_select.cc,v 1.26 1997/08/25 02:17:48 wessels Exp $
+ * $Id: peer_select.cc,v 1.27 1997/08/25 02:19:33 wessels Exp $
*
* DEBUG: section 44 Peer Selection Algorithm
* AUTHOR: Duane Wessels
if (p == NULL)
return 0;
myrtt = netdbHostRtt(psstate->request->host);
-debug(44, 3) ("peerCheckNetdbDirect: MY RTT = %d\n", myrtt);
-debug(44, 3) ("peerCheckNetdbDirect: closest_parent_miss RTT = %d\n",
+ debug(44, 3) ("peerCheckNetdbDirect: MY RTT = %d\n", myrtt);
+ debug(44, 3) ("peerCheckNetdbDirect: closest_parent_miss RTT = %d\n",
psstate->icp.p_rtt);
if (myrtt && myrtt < psstate->icp.p_rtt)
return 1;
myhops = netdbHostHops(psstate->request->host);
-debug(44, 3) ("peerCheckNetdbDirect: MY hops = %d\n", myhops);
-debug(44, 3) ("peerCheckNetdbDirect: minimum_direct_hops = %d\n",
+ debug(44, 3) ("peerCheckNetdbDirect: MY hops = %d\n", myhops);
+ debug(44, 3) ("peerCheckNetdbDirect: minimum_direct_hops = %d\n",
Config.minDirectHops);
if (myhops && myhops <= Config.minDirectHops)
return 1;