Skip to content

Commit

Permalink
Update tls.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zxm256 authored Apr 20, 2024
1 parent df189eb commit fca6924
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
{
int flags;
#ifdef WIN32
if( ioctlsocket(sockfd,FIONBIO,&flags) != 0) {
if( ioctlsocket(sock, FIONBIO, &flags) != 0) {
error_puts("socket in non-blocking mode");
//nginx will pass a socket in non-blocking mode
//return -1;
Expand All @@ -2332,7 +2332,6 @@ int tls_set_socket(TLS_CONNECT *conn, tls_socket_t sock)
perror("fcntl error");
return -1;
}

if (flags & O_NONBLOCK) {
error_puts("socket in non-blocking mode");
//nginx will pass a socket in non-blocking mode
Expand Down

0 comments on commit fca6924

Please sign in to comment.