From 1148b7d22f19834013aadbe3b5ccde2fb7104995 Mon Sep 17 00:00:00 2001 From: kostas <> Date: Sat, 18 Oct 1997 02:29:41 +0000 Subject: [PATCH] Improved IP cache chapter. --- doc/Programming-Guide/prog-guide.sgml | 37 ++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/doc/Programming-Guide/prog-guide.sgml b/doc/Programming-Guide/prog-guide.sgml index 1b66c3f0a5..3fe9eb0de5 100644 --- a/doc/Programming-Guide/prog-guide.sgml +++ b/doc/Programming-Guide/prog-guide.sgml @@ -298,16 +298,24 @@ chapter. IP Cache + Introduction +

The IP cache is a built-in component of squid providing Hostname to IP-Number translation functionality and managing -the involved data-structures . It usually -doesn't block on a request except for special cases where this -is desired (explained below). +the involved data-structures. Efficiency concerns require +mechanisms that allow non-blocking access to these mappings. +The IP cache usually doesn't block on a request except for special +cases where this is desired (see below). + + Data Structures + +

The data structure used for storing name-address mappings is a small hashtable (static hash_table *ip_table), where structures of type ipcache_entry whose most interesting members are: + struct _ipcache_entry { char *name; @@ -320,6 +328,10 @@ ipcache_status_t status:3; } + + External overview + +

Main functionality is provided through calls to: @@ -341,6 +353,20 @@ cancel all pending requests. Currently, it is only called from + Internal Operation + +

+Internally, the execution flow is as follows: On a miss, + Server Protocols @@ -363,6 +389,11 @@ cancel all pending requests. Currently, it is only called from ICP + +Error Pages + +As of version 1.2, squid has external custom error page support. + Cache Manager -- 2.47.3