]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: spoe: Remove unused label retry
authorTim Duesterhus <tim@bastelstu.be>
Mon, 19 Feb 2018 23:49:44 +0000 (00:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Feb 2018 07:30:12 +0000 (08:30 +0100)
This removes the retry labels from spoe_send_frame and spoe_recv_frame
which are unused since d5216d474d69856a282e4443f180af2093a80d6c, which
is unreleased, but was backported to haproxy 1.8 as
f13f3a4babdb1ce23a7e982c765704bca728111a.

src/flt_spoe.c

index 8694b07a76851280ef0b4f9bb8499aa9e82fd4fd..a53795861faf0ce3bd8b83ec2833a1c7cdf7da3b 100644 (file)
@@ -1125,7 +1125,6 @@ spoe_send_frame(struct appctx *appctx, char *buf, size_t framesz)
        ret = ci_putblk(si_ic(si), buf, framesz+4);
        if (ret <= 0) {
                if ((ret == -3 && si_ic(si)->buf == &buf_empty) || ret == -1) {
-                 retry:
                        si_applet_cant_put(si);
                        return 1; /* retry */
                }
@@ -1156,7 +1155,6 @@ spoe_recv_frame(struct appctx *appctx, char *buf, size_t framesz)
        }
        if (ret <= 0) {
                if (ret == 0) {
-                 retry:
                        return 1; /* retry */
                }
                SPOE_APPCTX(appctx)->status_code = SPOE_FRM_ERR_IO;