浏览代码

fixing 1425

Christian Grothoff 17 年之前
父节点
当前提交
a60850c633
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 0 7
      src/daemon/connection.c
  2. 6 0
      src/daemon/daemon.c

+ 0 - 7
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)
             {

+ 6 - 0
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