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:
6cc7afa
)
MEDIUM: backend: don't rely on mux_pt_ops in connect_server()
author
Christopher Faulet
<cfaulet@haproxy.com>
Wed, 23 May 2018 14:53:38 +0000
(16:53 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Wed, 8 Aug 2018 07:54:22 +0000
(09:54 +0200)
The comment above the change remains true. We assume there is always 1
conn_stream per outgoing connectionq. Today, it is always true because H2 is not
supported yet for server connections.
src/backend.c
patch
|
blob
|
history
diff --git
a/src/backend.c
b/src/backend.c
index
a52eacc
..
50ef3b7
100644
(file)
--- a/
src/backend.c
+++ b/
src/backend.c
@@
-1123,7
+1123,7
@@
int connect_server(struct stream *s)
*/
srv_cs = srv_conn->mux_ctx;
- if (srv_conn->mux == &mux_pt_ops && srv_cs->data) {
+ if (srv_cs->data) {
si_detach_endpoint(srv_cs->data);
if (old_cs && !(old_cs->conn->flags & CO_FL_PRIVATE)) {
si_attach_cs(srv_cs->data, old_cs);