Skip to content

Commit 6b76500

Browse files
authored
renove data sockets closing from server_timer_proc as it caused threads crash (#1990)
1 parent e4bcbf9 commit 6b76500

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/iperf_server_api.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -319,19 +319,11 @@ static void
319319
server_timer_proc(TimerClientData client_data, struct iperf_time *nowP)
320320
{
321321
struct iperf_test *test = client_data.p;
322-
struct iperf_stream *sp;
323322

324323
test->timer = NULL;
325324
if (test->done)
326325
return;
327326
test->done = 1;
328-
/* Free streams */
329-
while (!SLIST_EMPTY(&test->streams)) {
330-
sp = SLIST_FIRST(&test->streams);
331-
SLIST_REMOVE_HEAD(&test->streams, streams);
332-
close(sp->socket);
333-
iperf_free_stream(sp);
334-
}
335327
close(test->ctrl_sck);
336328
test->ctrl_sck = -1;
337329
}

0 commit comments

Comments
 (0)