mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 23:01:24 +02:00
MINOR: backend: Remove test on HTX streams to reuse idle connections on connect
In connect_server() function, there is a test to be able to reuse idle connections for HTX streams only. Till now, only HTTP connections can be idle. And this tests was added to be sure to now reuse idle connections for legacy HTTP streams. But the legacy HTTP was removed in HAProxy-2.1. So we can safely remove this test. The related issue is #2502.
This commit is contained in:
parent
3a7879a652
commit
d2ce835fb7
@ -1377,12 +1377,6 @@ int connect_server(struct stream *s)
|
|||||||
srv->pool_conn_name_expr, SMP_T_STR);
|
srv->pool_conn_name_expr, SMP_T_STR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* do not reuse if mode is not http */
|
|
||||||
if (!IS_HTX_STRM(s)) {
|
|
||||||
DBG_TRACE_STATE("skip idle connections reuse: no htx", STRM_EV_STRM_PROC|STRM_EV_CS_ST, s);
|
|
||||||
goto skip_reuse;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* disable reuse if websocket stream and the protocol to use is not the
|
/* disable reuse if websocket stream and the protocol to use is not the
|
||||||
* same as the main protocol of the server.
|
* same as the main protocol of the server.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user