CLEANUP: stream: rename stream_upgrade_from_cs() to stream_upgrade_from_sc()

It upgrades the protocol on a stream connector, let's update the name.
This commit is contained in:
Willy Tarreau 2022-05-27 11:11:15 +02:00
parent c12b321661
commit df1a2fc234
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ extern struct data_cb sess_conn_cb;
struct stream *stream_new(struct session *sess, struct stconn *sc, struct buffer *input);
void stream_free(struct stream *s);
int stream_upgrade_from_cs(struct stconn *sc, struct buffer *input);
int stream_upgrade_from_sc(struct stconn *sc, struct buffer *input);
int stream_set_http_mode(struct stream *s, const struct mux_proto_list *mux_proto);
/* kill a stream and set the termination flags to <why> (one of SF_ERR_*) */

View File

@ -753,7 +753,7 @@ static struct stconn *h1s_upgrade_sc(struct h1s *h1s, struct buffer *input)
{
TRACE_ENTER(H1_EV_STRM_NEW, h1s->h1c->conn, h1s);
if (stream_upgrade_from_cs(h1s_sc(h1s), input) < 0) {
if (stream_upgrade_from_sc(h1s_sc(h1s), input) < 0) {
TRACE_ERROR("stream upgrade failure", H1_EV_STRM_NEW|H1_EV_STRM_END|H1_EV_STRM_ERR, h1s->h1c->conn, h1s);
goto err;
}

View File

@ -275,7 +275,7 @@ static void strm_trace(enum trace_level level, uint64_t mask, const struct trace
* BUF_NULL. On error, it is unchanged and it is the caller responsibility to
* release it (this never happens for now).
*/
int stream_upgrade_from_cs(struct stconn *sc, struct buffer *input)
int stream_upgrade_from_sc(struct stconn *sc, struct buffer *input)
{
struct stream *s = __sc_strm(sc);
const struct mux_ops *mux = sc_mux_ops(sc);