]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream: Export stream_free()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 May 2022 12:56:55 +0000 (14:56 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:21 +0000 (16:13 +0200)
The stream_free() function is now public. It is mandatory to properly handle
errors when a new applet is started.

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

index 5660857d426698623137e7dce142c7060c17bbf8..a469e4b355680dd524845a8a7966822ec7085507 100644 (file)
@@ -60,6 +60,7 @@ extern struct pool_head *pool_head_uniqueid;
 extern struct data_cb sess_conn_cb;
 
 struct stream *stream_new(struct session *sess, struct conn_stream *cs, struct buffer *input);
+void stream_free(struct stream *s);
 int stream_upgrade_from_cs(struct conn_stream *cs, struct buffer *input);
 int stream_set_http_mode(struct stream *s, const struct mux_proto_list *mux_proto);
 
index 00abce656e95f6fda681f4acdcf18c53ae287e7e..dd3358e48588ac1d62a068d013502304b56b8ee7 100644 (file)
@@ -580,7 +580,7 @@ struct stream *stream_new(struct session *sess, struct conn_stream *cs, struct b
 /*
  * frees  the context associated to a stream. It must have been removed first.
  */
-static void stream_free(struct stream *s)
+void stream_free(struct stream *s)
 {
        struct session *sess = strm_sess(s);
        struct proxy *fe = sess->fe;