diff options
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r-- | src/microhttpd/mhd_send.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 656a4b5c..fa128fa1 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -61,11 +61,7 @@ post_cork_setsockopt (struct MHD_Connection *connection, | |||
61 | &off_val, | 61 | &off_val, |
62 | sizeof (off_val)); | 62 | sizeof (off_val)); |
63 | #elif TCP_NODELAY | 63 | #elif TCP_NODELAY |
64 | ret = setsockopt (connection->socket_fd, | 64 | /* nothing to do */ |
65 | IPPROTO_TCP, | ||
66 | TCP_NODELAY, | ||
67 | (const void *) &off_val, | ||
68 | sizeof (off_val)); | ||
69 | #elif TCP_NOPUSH | 65 | #elif TCP_NOPUSH |
70 | ret = setsockopt (connection->socket_fd, | 66 | ret = setsockopt (connection->socket_fd, |
71 | IPPROTO_TCP, | 67 | IPPROTO_TCP, |
@@ -108,7 +104,7 @@ pre_cork_setsockopt (struct MHD_Connection *connection, | |||
108 | ret = setsockopt (connection->socket_fd, | 104 | ret = setsockopt (connection->socket_fd, |
109 | IPPROTO_TCP, | 105 | IPPROTO_TCP, |
110 | TCP_NODELAY, | 106 | TCP_NODELAY, |
111 | (const void *) &on_val, | 107 | (const void *) want_cork ? &off_val : &on_val, |
112 | sizeof (on_val)); | 108 | sizeof (on_val)); |
113 | #elif TCP_NOPUSH | 109 | #elif TCP_NOPUSH |
114 | ret = setsockopt (connection->socket_fd, | 110 | ret = setsockopt (connection->socket_fd, |