[MEDIUM] stick_table: separate storage and update of session entries
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jun 2010 15:58:34 +0000 (17:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 13:10:26 +0000 (15:10 +0200)
commitcb18364ca71715dceb3664486047db83ddff0efc
treef4324ecfe8443501b1895bdfc0e7af7d5fc2ce61
parenta975b8f381acc5a7486a8287d5ef6495dbd0b72b
[MEDIUM] stick_table: separate storage and update of session entries

When an entry already exists, we just need to update its expiration
timer. Let's have a dedicated function for that instead of spreading
open code everywhere.

This change also ensures that an update of an existing sticky session
really leads to an update of its expiration timer, which was apparently
not the case till now. This point needs to be checked in 1.4.
include/proto/stick_table.h
src/proto_tcp.c
src/session.c
src/stick_table.c