]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: hlua: Always access the stream-int via the conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Dec 2021 12:39:38 +0000 (13:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:02 +0000 (11:00 +0100)
To be able to move the stream-interface from the stream to the conn-stream,
all access to the SI is done via the conn-stream. This patch is limited to
the hlua part.

src/hlua.c

index cc7a585965e5011cbc2a368dd3ce119f2edc5f20..a6cc839eb3c92ed8be15e8d0c7a2f9fd2e0bce84 100644 (file)
@@ -2794,8 +2794,8 @@ __LJMP static int hlua_socket_connect(struct lua_State *L)
        /* inform the stream that we want to be notified whenever the
         * connection completes.
         */
-       si_cant_get(&s->si[0]);
-       si_rx_endp_more(&s->si[0]);
+       si_cant_get(cs_si(s->csf));
+       si_rx_endp_more(cs_si(s->csf));
        appctx_wakeup(appctx);
 
        hlua->gc_count++;