Skip to content

Commit

Permalink
Update tls.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zxm256 committed Apr 20, 2024
1 parent 2411cb2 commit 7149fb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@ void tls_cleanup(TLS_CONNECT *conn)
int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
{
int flags;

#ifndef WIN32
if ((flags = fcntl(sock, F_GETFL)) == -1) {
error_print();
perror("fcntl error");
Expand All @@ -2331,6 +2331,7 @@ int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
//nginx will pass a socket in non-blocking mode
//return -1;
}
#endif
conn->sock = sock;
return 1;
}
Expand Down

0 comments on commit 7149fb6

Please sign in to comment.