]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Uninline and export sess_set_term_flags() function
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Apr 2023 12:46:01 +0000 (14:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 10:13:09 +0000 (12:13 +0200)
This function will be used to set termination flags on TCP streams from
outside of process_stream(). Thus, it must be uninlined and exported.

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

index ac2158d1c1b4142d1b3c8f81bb9b26081912833a..c4009559257757b5c81407f34f67f569d41e2f3f 100644 (file)
@@ -387,6 +387,7 @@ static inline int stream_check_conn_timeout(struct stream *s)
 
 int stream_set_timeout(struct stream *s, enum act_timeout_name name, int timeout);
 void stream_retnclose(struct stream *s, const struct buffer *msg);
+void sess_set_term_flags(struct stream *s);
 
 void service_keywords_register(struct action_kw_list *kw_list);
 struct action_kw *service_find(const char *kw);
index ae92b1842539f97603cc14e56877a5d55bc9f1b2..f8fc06203bd12c65683e1eea9aaacbad806a0e27 100644 (file)
@@ -960,7 +960,7 @@ static void back_establish(struct stream *s)
  * also counts a failed request if the server state has not reached the request
  * stage.
  */
-static void sess_set_term_flags(struct stream *s)
+void sess_set_term_flags(struct stream *s)
 {
        if (!(s->flags & SF_FINST_MASK)) {
                if (s->scb->state == SC_ST_INI) {