Ver código fonte

run_tls_handshake(): fixed wrong return value resulting in slower TLS connection setup

Evgeny Grin (Karlson2k) 9 anos atrás
pai
commit
589983325b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/microhttpd/connection_https.c

+ 1 - 1
src/microhttpd/connection_https.c

@@ -56,7 +56,7 @@ run_tls_handshake (struct MHD_Connection *connection)
 	{
 	  /* set connection state to enable HTTP processing */
 	  connection->state = MHD_CONNECTION_INIT;
-	  return MHD_YES;
+	  return MHD_NO;
 	}
       if ( (GNUTLS_E_AGAIN == ret) ||
 	   (GNUTLS_E_INTERRUPTED == ret) )