[MINOR] stick_table: add support for variable-sized data
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jun 2010 10:11:37 +0000 (12:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 13:10:23 +0000 (15:10 +0200)
commit393379c3e0a39aacc3d87065ae7cb7cbcc52cc7e
tree2daf29db7d1f8f1abcd077d2f4510dcc50348366
parentf8f33284bdba124a5bc54805b820a11fce1ba5c3
[MINOR] stick_table: add support for variable-sized data

Right now we're only able to store a server ID in a sticky session.
The goal is to be able to store anything whose size is known at startup
time. For this, we store the extra data before the stksess pointer,
using a negative offset. It will then be easy to cumulate multiple
data provided they each have their own offset.
include/proto/stick_table.h
include/types/stick_table.h
src/session.c
src/stick_table.c