From 6c70174b75174e3dff180fa637b7e6ff5d97ed82 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 5 Jul 2023 22:03:02 +0200 Subject: tcp_server: close client connections I kinda forgot that I'm supposed to clean up client connections, and they immediately blew up in my face. --- src/tcp_server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tcp_server.c b/src/tcp_server.c index 2681ec0..ca85ff2 100644 --- a/src/tcp_server.c +++ b/src/tcp_server.c @@ -89,6 +89,7 @@ static void client_destroy(struct client *client) SIMPLEQ_REMOVE(&client->server->client_queue, client, client, entries); pthread_errno_if(pthread_join(client->thread, NULL), "pthread_join"); net_close(client->cleanup_fd); + net_close(client->conn_fd); free(client); } -- cgit v1.2.3