[PATCH] lib/telemetry:fix telemetry conns leak in case of socket write fail

2024-01-19 Thread sunshaowei01
Telemetry can only create 10 conns by default, each of which is processed by a thread. When a thread fails to write using socket, the thread will end directly without reducing the total number of conns. This will result in the machine running for a long time, and if there are 10 failures, the tel

[PATCH] lib/telemetry:fix telemetry conns leak in case of socket write fail

2024-01-19 Thread sunshaowei01
telemetry will be unavailable Signed-off-by: sunshaowei01 <1819846...@qq.com> --- lib/telemetry/telemetry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/telemetry/telemetry.c b/lib/telemetry/telemetry.c index 31e2391867..0b00c04090 100644 --- a/lib/tel