diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-09-17 14:11:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-09-17 14:11:20 +0000 |
commit | a60850c633663e38f858adbd6cf3310b63ee50d0 (patch) | |
tree | c5ab16f3f81082c147d84ed04035f9c69cf634f0 | |
parent | 639bedbdcb037654285687aa9eead8592fea5dd1 (diff) | |
download | libmicrohttpd-a60850c633663e38f858adbd6cf3310b63ee50d0.tar.gz libmicrohttpd-a60850c633663e38f858adbd6cf3310b63ee50d0.zip |
fixing 1425
-rw-r--r-- | src/daemon/connection.c | 7 | ||||
-rw-r--r-- | 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 @@ | |||
31 | #include "response.h" | 31 | #include "response.h" |
32 | #include "reason_phrase.h" | 32 | #include "reason_phrase.h" |
33 | 33 | ||
34 | #ifndef LINUX | ||
35 | #ifndef MSG_NOSIGNAL | ||
36 | #define MSG_NOSIGNAL 0 | ||
37 | #endif | ||
38 | #endif | ||
39 | |||
40 | /** | 34 | /** |
41 | * Message to transmit when http 1.1 request is received | 35 | * Message to transmit when http 1.1 request is received |
42 | */ | 36 | */ |
@@ -1634,7 +1628,6 @@ MHD_connection_handle_write (struct MHD_Connection *connection) | |||
1634 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; | 1628 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; |
1635 | break; | 1629 | break; |
1636 | } | 1630 | } |
1637 | /* TODO clean - missing MSG_NOSIGNAL on gnutls record send call */ | ||
1638 | #if HTTPS_SUPPORT | 1631 | #if HTTPS_SUPPORT |
1639 | if (connection->daemon->options & MHD_USE_SSL) | 1632 | if (connection->daemon->options & MHD_USE_SSL) |
1640 | { | 1633 | { |
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 @@ | |||
59 | */ | 59 | */ |
60 | #define DEBUG_CONNECT MHD_NO | 60 | #define DEBUG_CONNECT MHD_NO |
61 | 61 | ||
62 | #ifndef LINUX | ||
63 | #ifndef MSG_NOSIGNAL | ||
64 | #define MSG_NOSIGNAL 0 | ||
65 | #endif | ||
66 | #endif | ||
67 | |||
62 | #if HTTPS_SUPPORT | 68 | #if HTTPS_SUPPORT |
63 | /** | 69 | /** |
64 | * Note: code duplication with code in gnutls_priority.c | 70 | * Note: code duplication with code in gnutls_priority.c |