CLEANUP: conn_stream: tree-wide rename to stconn (stream connector)
This renames the "struct conn_stream" to "struct stconn" and updates
the descriptions in all comments (and the rare help descriptions) to
"stream connector" or "connector". This touches a lot of files but
the change is minimal. The local variables were not even renamed, so
there's still a lot of "cs" everywhere.
diff --git a/src/proxy.c b/src/proxy.c
index 9c856f3..f3ace05 100644
--- a/src/proxy.c
+++ b/src/proxy.c
@@ -2706,7 +2706,7 @@
* ->px, the proxy's id ->only_pxid, the server's pointer from ->sv, and the
* choice of what to dump from ->show_conn.
*/
-static int dump_servers_state(struct conn_stream *cs)
+static int dump_servers_state(struct stconn *cs)
{
struct appctx *appctx = __cs_appctx(cs);
struct show_srv_ctx *ctx = appctx->svcctx;
@@ -2787,7 +2787,7 @@
static int cli_io_handler_servers_state(struct appctx *appctx)
{
struct show_srv_ctx *ctx = appctx->svcctx;
- struct conn_stream *cs = appctx_cs(appctx);
+ struct stconn *cs = appctx_cs(appctx);
struct proxy *curproxy;
if (ctx->state == SHOW_SRV_HEAD) {
@@ -2828,7 +2828,7 @@
*/
static int cli_io_handler_show_backend(struct appctx *appctx)
{
- struct conn_stream *cs = appctx_cs(appctx);
+ struct stconn *cs = appctx_cs(appctx);
struct proxy *curproxy;
chunk_reset(&trash);
@@ -3137,14 +3137,14 @@
return 0;
}
-/* This function dumps all captured errors onto the conn-stream's
+/* This function dumps all captured errors onto the stream connector's
* read buffer. It returns 0 if the output buffer is full and it needs
* to be called again, otherwise non-zero.
*/
static int cli_io_handler_show_errors(struct appctx *appctx)
{
struct show_errors_ctx *ctx = appctx->svcctx;
- struct conn_stream *cs = appctx_cs(appctx);
+ struct stconn *cs = appctx_cs(appctx);
extern const char *monthname[12];
if (unlikely(cs_ic(cs)->flags & (CF_WRITE_ERROR|CF_SHUTW)))