fixing close_socket

git-svn-id: file:///raid/svn-personal/tewi/trunk@46 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-18 09:58:45 +00:00
parent c4fcee5f94
commit 0a4e92a453
3 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -687,8 +687,8 @@ cleanup:
SSL_shutdown(s);
}
SSL_free(s);
close_socket(sock);
#endif
close_socket(sock);
#ifdef __MINGW32__
_endthreadex(0);
#endif

View File

@ -3,7 +3,7 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
#undef NO_SSL
#define NO_SSL
/* DO NOT EDIT BELOW THIS LINE */