MINOR: stream: add sample fetches
Prepare the possibility to register sample fetches on the stream. This commit is necessary to implement sample fetches to retrieve the current timeout values.
This commit is contained in:
parent
d91d779618
commit
12bada5662
10
src/stream.c
10
src/stream.c
@ -48,6 +48,7 @@
|
||||
#include <haproxy/proxy.h>
|
||||
#include <haproxy/queue.h>
|
||||
#include <haproxy/server.h>
|
||||
#include <haproxy/sample.h>
|
||||
#include <haproxy/session.h>
|
||||
#include <haproxy/stats-t.h>
|
||||
#include <haproxy/stick_table.h>
|
||||
@ -3456,6 +3457,15 @@ static struct action_kw_list stream_http_keywords = { ILH, {
|
||||
|
||||
INITCALL1(STG_REGISTER, http_req_keywords_register, &stream_http_keywords);
|
||||
|
||||
/* Note: must not be declared <const> as its list will be overwritten.
|
||||
* Please take care of keeping this list alphabetically sorted.
|
||||
*/
|
||||
static struct sample_fetch_kw_list smp_kws = {ILH, {
|
||||
{ NULL, NULL, 0, 0, 0 },
|
||||
}};
|
||||
|
||||
INITCALL1(STG_REGISTER, sample_register_fetches, &smp_kws);
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* c-indent-level: 8
|
||||
|
Loading…
x
Reference in New Issue
Block a user