projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6966441
)
MINOR: build: Fix build in mux_h1
author
Olivier Houchard
<cognet@ci0.org>
Wed, 25 Mar 2020 16:05:21 +0000
(17:05 +0100)
committer
Olivier Houchard
<cognet@ci0.org>
Wed, 25 Mar 2020 16:06:16 +0000
(17:06 +0100)
We want to check if the input buffer contains data, not the connection.
This should unbreak the build.
src/mux_h1.c
patch
|
blob
|
history
diff --git
a/src/mux_h1.c
b/src/mux_h1.c
index
c1eefe2
..
7eaf8cc
100644
(file)
--- a/
src/mux_h1.c
+++ b/
src/mux_h1.c
@@
-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);