From 0a4e92a4534c3878f166bc1931fd29b0ac267b89 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 18 Sep 2024 09:58:45 +0000 Subject: [PATCH] fixing close_socket git-svn-id: file:///raid/svn-personal/tewi/trunk@46 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/http.c | 1 + Server/server.c | 2 +- config.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Server/http.c b/Server/http.c index fdfa00e..c937fcf 100644 --- a/Server/http.c +++ b/Server/http.c @@ -66,6 +66,7 @@ int tw_http_parse(SSL* ssl, int sock, struct tw_http_request* req) { #endif int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv); if(n <= 0) { + cm_log("HTTP", "Timeout, disconncting"); free(header); tw_free_request(req); return -1; diff --git a/Server/server.c b/Server/server.c index 5f83de5..9140faf 100644 --- a/Server/server.c +++ b/Server/server.c @@ -687,8 +687,8 @@ cleanup: SSL_shutdown(s); } SSL_free(s); - close_socket(sock); #endif + close_socket(sock); #ifdef __MINGW32__ _endthreadex(0); #endif diff --git a/config.h b/config.h index 7d9d770..34ea876 100644 --- a/config.h +++ b/config.h @@ -3,7 +3,7 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#undef NO_SSL +#define NO_SSL /* DO NOT EDIT BELOW THIS LINE */ -- 2.43.0