/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-06 / config.c line 220

[ << ] [ >> ]

[ Touble with moodle / Sergio Moyano Serrano ... ] [ HA options for pound? / "Jay West" ... ]

config.c line 220
Paul Chvostek <paul+pound(at)it.ca>
2004-06-03 22:11:39 [ SNIP ]
Line 220 of config.c from v1.7 is matches a session IP value as
"^[ \t]*Session[ \t]+IP[ \t]+([0-9-][0-9]*)[ \t]*$".

Why accept hyphens?  What's the purpose of negative time values?

-- 
  Paul Chvostek                                             <paul(at)it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/


Re: config.c line 220
Robert Segall <roseg(at)apsis.ch>
2004-06-04 15:29:42 [ SNIP ]
On Thursday 03 June 2004 22.11, Paul Chvostek wrote:
> Line 220 of config.c from v1.7 is matches a session IP value as
> "^[ \t]*Session[ \t]+IP[ \t]+([0-9-][0-9]*)[ \t]*$".
>
> Why accept hyphens?  What's the purpose of negative time values?

If the time is positive a session is kept for that long (number of seconds). 
The client IP address is the session key. This works exactly like the cookie 
or id based sessions.

If the value is negative Pound uses "sticky" sessions: a client IP address is 
always mapped (hashed) to the the same back-end. See get_be() in svc.c for 
details.

I appreciate your going over the code with a fine comb - keep up the good work 
and let us know whatever else you find.
-- 
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-1-920 4904

MailBoxer