/*
- * $Id: ftp.cc,v 1.49 1996/07/26 17:18:21 wessels Exp $
+ * $Id: ftp.cc,v 1.50 1996/08/26 19:16:05 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
COMM_SELECT_WRITE,
(PF) ftpSendRequest,
(void *) data);
+ if (opt_no_ipcache)
+ ipcacheInvalidate(data->request->host);
}
COMM_SELECT_LIFETIME,
(PF) ftpLifetimeExpire,
(void *) data);
+ if (opt_no_ipcache)
+ ipcacheInvalidate(data->request->host);
return COMM_OK;
}
/*
- * $Id: gopher.cc,v 1.38 1996/07/26 17:18:23 wessels Exp $
+ * $Id: gopher.cc,v 1.39 1996/08/26 19:16:05 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
}
}
/* Install connection complete handler. */
+ if (opt_no_ipcache)
+ ipcacheInvalidate(data->host);
comm_set_select_handler(sock,
COMM_SELECT_LIFETIME,
(PF) gopherLifetimeExpire,
/*
- * $Id: http.cc,v 1.67 1996/07/26 17:18:23 wessels Exp $
+ * $Id: http.cc,v 1.68 1996/08/26 19:16:06 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
}
}
/* Call the real write handler, now that we're fully connected */
+ if (opt_no_ipcache)
+ ipcacheInvalidate(entry->mem_obj->request->host);
comm_set_select_handler(fd, COMM_SELECT_WRITE,
(PF) httpSendRequest, (void *) httpState);
}
}
}
/* Install connection complete handler. */
+ if (opt_no_ipcache)
+ ipcacheInvalidate(request->host);
fd_note(fd, entry->url);
comm_set_select_handler(fd, COMM_SELECT_LIFETIME,
(PF) httpLifetimeExpire, (void *) httpState);
/*
- * $Id: ipcache.cc,v 1.40 1996/08/21 05:50:08 wessels Exp $
+ * $Id: ipcache.cc,v 1.41 1996/08/26 19:16:07 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
return;
ipcache_release(i);
}
+
+void ipcacheInvalidate(name)
+ char *name;
+{
+ ipcache_entry *i;
+ if ((i = ipcache_get(name)) == NULL)
+ return;
+ if (i->status != IP_CACHED)
+ i->ttl = 0;
+ else
+ ipcache_release(i);
+}
/*
- * $Id: ssl.cc,v 1.10 1996/07/26 19:28:51 wessels Exp $
+ * $Id: ssl.cc,v 1.11 1996/08/26 19:16:08 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
return;
}
}
+ if (opt_no_ipcache)
+ ipcacheInvalidate(sslState->host);
/* We are now fully connected */
if (Config.sslProxy.host)
sslProxyConnected(fd, sslState);
(void *) sslState);
return COMM_OK;
}
+ if (opt_no_ipcache)
+ ipcacheInvalidate(sslState->host);
}
if (Config.sslProxy.host)
sslProxyConnected(sslState->server.fd, sslState);
/*
- * $Id: tunnel.cc,v 1.10 1996/07/26 19:28:51 wessels Exp $
+ * $Id: tunnel.cc,v 1.11 1996/08/26 19:16:08 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
return;
}
}
+ if (opt_no_ipcache)
+ ipcacheInvalidate(sslState->host);
/* We are now fully connected */
if (Config.sslProxy.host)
sslProxyConnected(fd, sslState);
(void *) sslState);
return COMM_OK;
}
+ if (opt_no_ipcache)
+ ipcacheInvalidate(sslState->host);
}
if (Config.sslProxy.host)
sslProxyConnected(sslState->server.fd, sslState);
+
/*
- * $Id: wais.cc,v 1.35 1996/07/25 07:10:45 wessels Exp $
+ * $Id: wais.cc,v 1.36 1996/08/26 19:16:08 wessels Exp $
*
* DEBUG: section 24 WAIS Relay
* AUTHOR: Harvest Derived
}
}
/* Call the real write handler, now that we're fully connected */
+ if (opt_no_ipcache)
+ ipcacheInvalidate(waisState->relayhost);
comm_set_select_handler(fd, COMM_SELECT_WRITE,
(PF) waisSendRequest, (void *) waisState);
}
}
}
/* Install connection complete handler. */
+ if (opt_no_ipcache)
+ ipcacheInvalidate(host);
comm_set_select_handler(fd,
COMM_SELECT_LIFETIME,
(PF) waisLifetimeExpire,