fixing close_socket
git-svn-id: file:///raid/svn-personal/tewi/trunk@46 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
parent
c4fcee5f94
commit
0a4e92a453
|
@ -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;
|
||||
|
|
|
@ -687,8 +687,8 @@ cleanup:
|
|||
SSL_shutdown(s);
|
||||
}
|
||||
SSL_free(s);
|
||||
close_socket(sock);
|
||||
#endif
|
||||
close_socket(sock);
|
||||
#ifdef __MINGW32__
|
||||
_endthreadex(0);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user