projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
630f99a
)
MINOR: backend: use conn_full_close() instead of conn_force_close()
author
Willy Tarreau
<w@1wt.eu>
Sun, 22 Oct 2017 07:35:01 +0000
(09:35 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Sun, 22 Oct 2017 07:54:18 +0000
(09:54 +0200)
There's no point in using conn_force_close() in outgoing connect()
since XPRT_TRACKED is not set so both functions are equivalent.
src/backend.c
patch
|
blob
|
history
diff --git
a/src/backend.c
b/src/backend.c
index
06f15a1
..
d0810e2
100644
(file)
--- a/
src/backend.c
+++ b/
src/backend.c
@@
-1106,7
+1106,7
@@
int connect_server(struct stream *s)
/* we may have to release our connection if we couldn't swap it */
if (old_conn && !old_conn->owner) {
LIST_DEL(&old_conn->list);
- conn_force_close(old_conn);
+ conn_full_close(old_conn);
conn_free(old_conn);
}
}