diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 4b9049d1..ced8a64c 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -765,7 +765,6 @@ send_param_adapter (struct MHD_Connection *connection, | |||
765 | } | 765 | } |
766 | 766 | ||
767 | 767 | ||
768 | #if HTTPS_SUPPORT | ||
769 | /** | 768 | /** |
770 | * Set if a socket should use non-blocking IO. | 769 | * Set if a socket should use non-blocking IO. |
771 | * @param fd socket | 770 | * @param fd socket |
@@ -798,7 +797,6 @@ socket_set_nonblocking (int fd) | |||
798 | } | 797 | } |
799 | #endif | 798 | #endif |
800 | } | 799 | } |
801 | #endif | ||
802 | 800 | ||
803 | 801 | ||
804 | /** | 802 | /** |
@@ -978,6 +976,7 @@ MHD_add_connection (struct MHD_Daemon *daemon, | |||
978 | MHD_set_http_callbacks_ (connection); | 976 | MHD_set_http_callbacks_ (connection); |
979 | connection->recv_cls = &recv_param_adapter; | 977 | connection->recv_cls = &recv_param_adapter; |
980 | connection->send_cls = &send_param_adapter; | 978 | connection->send_cls = &send_param_adapter; |
979 | socket_set_nonblocking (connection->socket_fd); | ||
981 | #if HTTPS_SUPPORT | 980 | #if HTTPS_SUPPORT |
982 | if (0 != (daemon->options & MHD_USE_SSL)) | 981 | if (0 != (daemon->options & MHD_USE_SSL)) |
983 | { | 982 | { |
@@ -988,11 +987,6 @@ MHD_add_connection (struct MHD_Daemon *daemon, | |||
988 | gnutls_init (&connection->tls_session, GNUTLS_SERVER); | 987 | gnutls_init (&connection->tls_session, GNUTLS_SERVER); |
989 | gnutls_priority_set (connection->tls_session, | 988 | gnutls_priority_set (connection->tls_session, |
990 | daemon->priority_cache); | 989 | daemon->priority_cache); |
991 | if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) | ||
992 | { | ||
993 | /* use non-blocking IO for gnutls */ | ||
994 | socket_set_nonblocking (connection->socket_fd); | ||
995 | } | ||
996 | switch (daemon->cred_type) | 990 | switch (daemon->cred_type) |
997 | { | 991 | { |
998 | /* set needed credentials for certificate authentication. */ | 992 | /* set needed credentials for certificate authentication. */ |