]> git.kaiwu.me - haproxy.git/commit
[MEDIUM] reference the current hijack function in the buffer itself
authorWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 17:03:29 +0000 (18:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 17:03:29 +0000 (18:03 +0100)
commit01bf8675ed2d61f0106511424fc96734f2eb1b8e
treef0b0405279008e00e7f3b6f30bcae10eb7ef18da
parentb5654f6ff425b5d2deadad84fe6f31fc10e9d5c6
[MEDIUM] reference the current hijack function in the buffer itself

Instead of calling a hard-coded function to produce data, let's
reference this function into the buffer and call it from there
when BF_HIJACK is set. This goes in the direction of more generic
session management code.
include/proto/buffers.h
include/proto/dumpstats.h
include/proto/proto_http.h
include/types/buffers.h
src/dumpstats.c
src/proto_http.c
src/proto_uxst.c
src/session.c