From 469ab151cd32c3c18be3cd51c8a71e3929fd87e8 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 9 Dec 2006 14:31:58 +0200 Subject: [PATCH] Document the c_domains and cookie_servers lists. --- src/cookies/cookies.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cookies/cookies.c b/src/cookies/cookies.c index 77d24ac1..cdf24dfa 100644 --- a/src/cookies/cookies.c +++ b/src/cookies/cookies.c @@ -58,8 +58,15 @@ struct c_domain { unsigned char domain[1]; /* Must be at end of struct. */ }; +/* List of domains for which there may be cookies. This supposedly + * speeds up @send_cookies for other domains. Each element is a + * struct c_domain. No other data structures have pointers to these + * objects. Currently the domains remain in the list until + * @done_cookies clears the whole list. */ static INIT_LIST_HEAD(c_domains); +/* List of servers for which there are cookies. Each element is a + * struct cookie_server. */ static INIT_LIST_HEAD(cookie_servers); static int cookies_dirty = 0;