]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: mux_quic: fix indentation in rcv_buf
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Nov 2026 10:23:20 +0000 (11:23 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 26 Nov 2026 14:29:48 +0000 (15:29 +0100)
Recently added code was badly indented as spaces were used. Adjust the
code to use tabs for alignment.

src/mux_quic.c

index 5004cbd55321fb9baf9c62dc53f0153c0023baee..fb88cd7eb63ae790e26a17f12fd29450421668a7 100644 (file)
@@ -4531,18 +4531,18 @@ static size_t qcm_strm_rcv_buf(struct stconn *sc, struct buffer *buf,
        ret = qcs_http_rcv_buf(qcs, buf, count, &fin);
 
        if (b_data(&qcs->rx.app_buf)) {
-               if (b_data(buf))
-                       se_fl_set(qcs->sd, SE_FL_RCV_MORE | SE_FL_WANT_ROOM);
-               else {
-                       /* we have pending data and the output buf is empty,
-                        * this is typical of too large a non-fragmentable
-                        * data (e.g headers, trailers) combined with a
-                        * reserve, so this will never unblock.
-                        */
-                       TRACE_STATE("report xfer error", QMUX_EV_STRM_RECV, qcc->conn, qcs);
-                       se_fl_set(qcs->sd, SE_FL_ERROR);
-                       goto leave;
-               }
+               if (b_data(buf))
+                       se_fl_set(qcs->sd, SE_FL_RCV_MORE | SE_FL_WANT_ROOM);
+               else {
+                       /* we have pending data and the output buf is empty,
+                        * this is typical of too large a non-fragmentable
+                        * data (e.g headers, trailers) combined with a
+                        * reserve, so this will never unblock.
+                        */
+                       TRACE_STATE("report xfer error", QMUX_EV_STRM_RECV, qcc->conn, qcs);
+                       se_fl_set(qcs->sd, SE_FL_ERROR);
+                       goto leave;
+               }
        }
        else {
                se_fl_clr(qcs->sd, SE_FL_RCV_MORE | SE_FL_WANT_ROOM);
@@ -4603,7 +4603,7 @@ static size_t qcm_strm_rcv_buf(struct stconn *sc, struct buffer *buf,
                        tasklet_wakeup(qcc->wait_event.tasklet);
                }
        }
-leave:
+ leave:
        TRACE_LEAVE(QMUX_EV_STRM_RECV, qcc->conn, qcs);
 
        return ret;