From: Amaury Denoyelle Date: Thu, 10 Dec 2020 12:43:51 +0000 (+0100) Subject: MINOR: stream: prepare the hot refresh of timeouts X-Git-Tag: v2.4-dev3~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b715078821446596bbef4261e454e059729f8aba;p=thirdparty%2Fhaproxy.git MINOR: stream: prepare the hot refresh of timeouts Define a stream function to allow to update the timeouts. This commit is in preparation for the support of dynamic timeouts with the set-timeout rule. --- diff --git a/include/haproxy/stream.h b/include/haproxy/stream.h index 766740c626..f330260930 100644 --- a/include/haproxy/stream.h +++ b/include/haproxy/stream.h @@ -343,6 +343,8 @@ static inline void stream_choose_redispatch(struct stream *s) } +int stream_set_timeout(struct stream *s, enum act_timeout_name name, int timeout); + void service_keywords_register(struct action_kw_list *kw_list); struct action_kw *service_find(const char *kw); void list_services(FILE *out); diff --git a/src/stream.c b/src/stream.c index 690fe3e5af..65c67d10ea 100644 --- a/src/stream.c +++ b/src/stream.c @@ -811,6 +811,11 @@ void stream_process_counters(struct stream *s) } } +int stream_set_timeout(struct stream *s, enum act_timeout_name name, int timeout) +{ + return 0; +} + /* * This function handles the transition between the SI_ST_CON state and the * SI_ST_EST state. It must only be called after switching from SI_ST_CON (or