]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: spoe: Remove the spop version from the SPOE appctx context
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jul 2024 17:22:02 +0000 (19:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Jul 2024 13:27:05 +0000 (15:27 +0200)
The SPOE applet no longer manipulate the SPOP verison. So it can be safely
removed from its context.

The related issue is #2502.

src/flt_spoe.c
src/mux_spop.c

index fcceee230dd6fc21e595d7e6d85ece85e636d17f..d6f4c4e3c3a3e9d00c05b640e38fa58f953e303e 100644 (file)
@@ -206,7 +206,6 @@ struct spoe_context {
 struct spoe_appctx {
        struct appctx      *owner;          /* the owner */
        struct spoe_agent  *agent;          /* agent on which the applet is attached */
-       unsigned int        version;        /* the negotiated version */
        unsigned int        flags;          /* SPOE_APPCTX_FL_* */
        unsigned int        status_code;    /* SPOE_FRM_ERR_* */
        struct spoe_context *spoe_ctx;      /* The SPOE context to handle */
@@ -569,7 +568,6 @@ static struct appctx *spoe_create_appctx(struct spoe_context *ctx)
                goto out_error;
 
        spoe_appctx->agent           = agent;
-       spoe_appctx->version         = 0;
        spoe_appctx->flags           = 0;
        spoe_appctx->status_code     = SPOP_ERR_NONE;
        spoe_appctx->spoe_ctx        = ctx;
index 1ec77b93f8bf0b210b5acebfd2970b9e8bf57caf..b8d3fcb976e08a02db3bd94813f92c33a5b14ac5 100644 (file)
@@ -1724,7 +1724,6 @@ static int spop_conn_handle_hello(struct spop_conn *spop_conn)
        /*              flags &= ~SPOE_APPCTX_FL_PIPELINING; */
        /* } */
 
-       /* SPOE_APPCTX(appctx)->version        = (unsigned int)vsn; */
        /* SPOE_APPCTX(appctx)->flags         |= flags; */
        spop_conn->max_frame_size = (unsigned int)max_frame_size;