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 b24b07a commit df189eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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(flags=ioctlsocket(sock,FIONBIO) != 0) {
if( ioctlsocket(sockfd,FIONBIO,&flags) != 0) {
error_puts("socket in non-blocking mode");
//nginx will pass a socket in non-blocking mode
//return -1;
Expand Down

0 comments on commit df189eb

Please sign in to comment.