mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: stream: Export stream_free()
The stream_free() function is now public. It is mandatory to properly handle errors when a new applet is started.
This commit is contained in:
parent
c9929380a4
commit
ab5d1dceed
2 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue