MINOR: build: Fix build in mux_h1

We want to check if the input buffer contains data, not the connection.
This should unbreak the build.
This commit is contained in:
Olivier Houchard 2020-03-25 17:05:21 +01:00
parent 69664419d2
commit c3500c3ccd

View File

@ -2492,7 +2492,7 @@ static void h1_detach(struct conn_stream *cs)
}
else {
/* If we have a new request, process it immediately */
if (unlikely(b_data(&h1c->conn)))
if (unlikely(b_data(&h1c->ibuf)))
h1_process(h1c);
else
h1c->conn->xprt->subscribe(h1c->conn, h1c->conn->xprt_ctx, SUB_RETRY_RECV, &h1c->wait_event);