From 421f0505b97070dd785331e596713947d89adc95 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 27 Mar 2024 19:49:07 +0300 Subject: [PATCH] tpws: do not use split if split pos at the end of the buffer --- tpws/tpws_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpws/tpws_conn.c b/tpws/tpws_conn.c index 82a87e5..f17455b 100644 --- a/tpws/tpws_conn.c +++ b/tpws/tpws_conn.c @@ -1076,7 +1076,7 @@ static bool handle_epoll(tproxy_conn_t *conn, struct tailhead *conn_list, uint32 conn->tnrd++; conn->trd+=rd; - if (split_pos && bs<=sizeof(buf)) + if (split_pos && bs