From 983d7c61b8aa57a66006f24897f1163f91effa40 Mon Sep 17 00:00:00 2001 From: DavidBar-On Date: Sat, 27 Dec 2025 11:27:31 +0200 Subject: [PATCH] renove data sockets closing from server_timer_proc as it caused threads crash --- src/iperf_server_api.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/iperf_server_api.c b/src/iperf_server_api.c index e9313244f..8e9b41623 100644 --- a/src/iperf_server_api.c +++ b/src/iperf_server_api.c @@ -319,19 +319,11 @@ static void server_timer_proc(TimerClientData client_data, struct iperf_time *nowP) { struct iperf_test *test = client_data.p; - struct iperf_stream *sp; test->timer = NULL; if (test->done) return; test->done = 1; - /* Free streams */ - while (!SLIST_EMPTY(&test->streams)) { - sp = SLIST_FIRST(&test->streams); - SLIST_REMOVE_HEAD(&test->streams, streams); - close(sp->socket); - iperf_free_stream(sp); - } close(test->ctrl_sck); test->ctrl_sck = -1; }