From 7149fb646a08f45539a950d4b51e372cd33c3127 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 20 Apr 2024 11:35:25 +0800 Subject: [PATCH] Update tls.c --- src/tls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tls.c b/src/tls.c index e800d818a..7aa86ba23 100644 --- a/src/tls.c +++ b/src/tls.c @@ -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"); @@ -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; }