/*
- * $Id: ipcache.cc,v 1.95 1997/01/13 20:44:45 wessels Exp $
+ * $Id: ipcache.cc,v 1.96 1997/01/18 06:04:02 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
IpcacheStats.pending_hits++;
ipcacheAddPending(i, fd, handler, handlerData);
if (squid_curtime - i->expires > 60) {
- ipcacheChangeKey(i);
- i->status = IP_NEGATIVE_CACHED;
+ debug(14,0,"ipcache_nbgethostbyname: '%s' PENDING for %d seconds, aborting\n", name, squid_curtime + Config.negativeDnsTtl - i->expires);
ipcache_call_pending(i);
+ ipcacheChangeKey(i);
}
return;
} else {
debug_trap("ipcacheChangeKey: hash_remove_link() failed\n");
return;
}
- sprintf(new_key, "%d/%128.128s", ++index, i->name);
+ sprintf(new_key, "%d/%-128.128s", ++index, i->name);
safe_free(i->name);
i->name = xstrdup(new_key);
ipcache_add_to_hash(i);