diff options
-rw-r--r-- | src/microhttpd/mhd_send.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 2770c921..b3d29942 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -97,7 +97,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
97 | switch (MHD_SendSocketOptions) | 97 | switch (MHD_SendSocketOptions) |
98 | { | 98 | { |
99 | /* No corking */ | 99 | /* No corking */ |
100 | case 0: | 100 | case MHD_SSO_NO_CORK: |
101 | if (! connection->sk_tcp_nodelay_on) | 101 | if (! connection->sk_tcp_nodelay_on) |
102 | { | 102 | { |
103 | opt1 = 1; | 103 | opt1 = 1; |
@@ -122,7 +122,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | /* Do corking, do MSG_MORE instead if available */ | 124 | /* Do corking, do MSG_MORE instead if available */ |
125 | case 1: | 125 | case MHD_SSO_MAY_CORK: |
126 | #if defined(TCP_CORK) && ! defined(MSG_MORE) | 126 | #if defined(TCP_CORK) && ! defined(MSG_MORE) |
127 | /* | 127 | /* |
128 | * We have TCP_CORK and we don't have MSG_MORE. | 128 | * We have TCP_CORK and we don't have MSG_MORE. |
@@ -184,7 +184,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
184 | } | 184 | } |
185 | #endif | 185 | #endif |
186 | /* Cork the header */ | 186 | /* Cork the header */ |
187 | case 2: | 187 | case MHD_SSO_HDR_CORK: |
188 | if (something_with_snd_mss > (sizeof (buffer - 10))) | 188 | if (something_with_snd_mss > (sizeof (buffer - 10))) |
189 | { // magic guessing? | 189 | { // magic guessing? |
190 | if ((! 100_Continue) && (sending_header)) | 190 | if ((! 100_Continue) && (sending_header)) |
@@ -209,7 +209,7 @@ MHD_send_on_connection_ (struct MHD_Connection *connection, | |||
209 | } | 209 | } |
210 | } | 210 | } |
211 | } | 211 | } |
212 | if (1 == MHD_SendSocketOptions) | 212 | if (MHD_SendSocketOptionsi == 1) |
213 | { | 213 | { |
214 | #ifdef MSG_MORE | 214 | #ifdef MSG_MORE |
215 | num_bytes = send (s, buffer, buffer_size, MSG_MORE); | 215 | num_bytes = send (s, buffer, buffer_size, MSG_MORE); |
@@ -313,12 +313,12 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
313 | size_t opt1, opt2, length; | 313 | size_t opt1, opt2, length; |
314 | switch (MHD_SendSocketOptions) | 314 | switch (MHD_SendSocketOptions) |
315 | { | 315 | { |
316 | case 0: | 316 | case MHD_SSO_NO_CORK: |
317 | /* No corking */ | 317 | /* No corking */ |
318 | case 1: | 318 | case MHD_SSO_MAY_CORK: |
319 | case 2: | 319 | case MHD_SSO_HDR_CORK: |
320 | } | 320 | } |
321 | if (1 == MHD_SendSocketOptions) | 321 | if (MHD_SendSocketOptions == 1) |
322 | { | 322 | { |
323 | // bla | 323 | // bla |
324 | } | 324 | } |