From a60850c633663e38f858adbd6cf3310b63ee50d0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 17 Sep 2008 14:11:20 +0000 Subject: fixing 1425 --- src/daemon/connection.c | 7 ------- src/daemon/daemon.c | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 8477a9d0..c198b3c1 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c @@ -31,12 +31,6 @@ #include "response.h" #include "reason_phrase.h" -#ifndef LINUX -#ifndef MSG_NOSIGNAL -#define MSG_NOSIGNAL 0 -#endif -#endif - /** * Message to transmit when http 1.1 request is received */ @@ -1634,7 +1628,6 @@ MHD_connection_handle_write (struct MHD_Connection *connection) connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; break; } - /* TODO clean - missing MSG_NOSIGNAL on gnutls record send call */ #if HTTPS_SUPPORT if (connection->daemon->options & MHD_USE_SSL) { diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 7e3e7e3e..88e37c8c 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -59,6 +59,12 @@ */ #define DEBUG_CONNECT MHD_NO +#ifndef LINUX +#ifndef MSG_NOSIGNAL +#define MSG_NOSIGNAL 0 +#endif +#endif + #if HTTPS_SUPPORT /** * Note: code duplication with code in gnutls_priority.c -- cgit v1.2.3