]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: prepare the hot refresh of timeouts
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 10 Dec 2020 12:43:51 +0000 (13:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Dec 2020 11:01:07 +0000 (12:01 +0100)
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.

include/haproxy/stream.h
src/stream.c

index 766740c6265a6145124f52c81e15c64476640bf8..f3302609302cc8ff4588e9f928334063641dbe12 100644 (file)
@@ -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);
index 690fe3e5afeee4520be419251801828e962a7b6d..65c67d10ea06a088bfe89ebe565ecb5a9c39a53f 100644 (file)
@@ -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