/*
- * $Id: client_side.cc,v 1.191 1998/01/06 05:12:07 wessels Exp $
+ * $Id: client_side.cc,v 1.192 1998/01/06 05:15:39 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
static CWCB clientHandleIMSComplete;
static CWCB clientWriteComplete;
-#if UNUSED_CODE
-static CWCB clientShortWriteComplete;
-#endif
static PF clientReadRequest;
static PF connStateFree;
static PF requestTimeout;
static STCB clientHandleIMSReply;
static int clientGetsOldEntry(StoreEntry * new, StoreEntry * old, request_t * request);
static int checkAccelOnly(clientHttpRequest *);
-#if UNUSED_CODE
-static ERCB clientErrorComplete;
-#endif
static STCB clientSendMoreData;
static STCB clientCacheHit;
static void clientParseRequestHeaders(clientHttpRequest *);
return 1;
}
-#if UNUSED_CODE
-static void
-clientErrorComplete(int fd, void *data, size_t size)
-{
- clientHttpRequest *http = data;
- if (http)
- http->out.size += size;
- comm_close(fd);
-}
-#endif
-
int
isTcpHit(log_type code)
{
comm_close(fd);
}
-#if UNUSED_CODE
-static void
-clientShortWriteComplete(int fd, char *bufnotused, size_t size, int flag, void *data)
-{
- clientHttpRequest *http = data;
- http->out.size += size;
- if (flag != COMM_ERR_CLOSING)
- comm_close(fd);
-}
-#endif
-
static log_type
clientProcessRequest2(clientHttpRequest * http)
{
#define FD_DESC_SZ 64
-#define FQDN_FLAG_UNUSED_01 0x01
-#define FQDN_LOOKUP_IF_MISS 0x02
+#define FQDN_LOOKUP_IF_MISS 0x01
#define FQDN_MAX_NAMES 5
#define FQDNCACHE_AV_FACTOR 1000
#define IDENT_PENDING 1
#define IDENT_DONE 2
-#define IP_UNUSED_FLAG_01 0x01
-#define IP_LOOKUP_IF_MISS 0x02
+#define IP_LOOKUP_IF_MISS 0x01
#define IPCACHE_AV_FACTOR 1000
#define SM_PAGE_SIZE 4096
#define DISK_PAGE_SIZE 8192
-#if UNUSED_CODE
-#define BIT_SET(flag, bit) ((flag) |= (bit))
-#define BIT_CLR(flag, bit) ((flag) &= ~(bit))
-#define BIT_TEST(flag, bit) ((flag) & (bit))
-#endif
-
#define EBIT_SET(flag, bit) ((flag) |= ((1<<bit)))
#define EBIT_CLR(flag, bit) ((flag) &= ~((1<<bit)))
#define EBIT_TEST(flag, bit) ((flag) & ((1<<bit)))
/*
- * $Id: dns.cc,v 1.48 1998/01/02 22:03:41 wessels Exp $
+ * $Id: dns.cc,v 1.49 1998/01/06 05:15:40 wessels Exp $
*
* DEBUG: section 34 Dnsserver interface
* AUTHOR: Harvest Derived
{
dnsserver_t *dns = NULL;
int k;
-
debug(34, 3) ("dnsShutdownServers:\n");
-
-#if OLD_CODE
- /*
- * We used to do this when we waited for all active connections
- * to close before reconfiguring.
- */
- k = ipcacheQueueDrain();
- if (fqdncacheQueueDrain() || k)
- return;
-#endif
for (k = 0; k < NDnsServersAlloc; k++) {
dns = *(dns_child_table + k);
if (!EBIT_TEST(dns->flags, HELPER_ALIVE)) {
/*
- * $Id: fqdncache.cc,v 1.76 1998/01/02 22:03:41 wessels Exp $
+ * $Id: fqdncache.cc,v 1.77 1998/01/06 05:15:40 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
return buf;
}
-#if OLD_CODE
-int
-fqdncacheQueueDrain(void)
-{
- fqdncache_entry *i;
- dnsserver_t *dnsData;
- if (!fqdncacheQueueHead)
- return 0;
- while ((dnsData = dnsGetFirstAvailable()) && (i = fqdncacheDequeue()))
- fqdncache_dnsDispatch(dnsData, i);
- return 1;
-}
-#endif
-
static void
fqdncacheLockEntry(fqdncache_entry * f)
{
/*
- * $Id: ipcache.cc,v 1.152 1998/01/02 22:03:40 wessels Exp $
+ * $Id: ipcache.cc,v 1.153 1998/01/06 05:15:41 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
return &static_addrs;
}
-#if OLD_CODE
-int
-ipcacheQueueDrain(void)
-{
- if (!ipcacheQueueHead)
- return 0;
- ipcacheNudgeQueue();
- return 1;
-}
-#endif
-
static void
ipcacheLockEntry(ipcache_entry * i)
{