diff options
author | ng0 <ng0@n0.is> | 2019-07-24 15:59:17 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-24 15:59:17 +0000 |
commit | eb3035f63a5674cc3642a46b0d1b42f299fb0dea (patch) | |
tree | e99f8c794886f0f396cd97c023ea82fa4a5f3717 | |
parent | e1807005969ccf5d0a9b53d9f8eb8f329e509e3e (diff) | |
download | libmicrohttpd-eb3035f63a5674cc3642a46b0d1b42f299fb0dea.tar.gz libmicrohttpd-eb3035f63a5674cc3642a46b0d1b42f299fb0dea.zip |
switch functions.
-rw-r--r-- | src/microhttpd/mhd_send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 47ff09cc..6ead1d6c 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -419,7 +419,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
419 | #if TCP_NODELAY | 419 | #if TCP_NODELAY |
420 | if ((! use_corknopush) && (! have_cork && want_cork)) | 420 | if ((! use_corknopush) && (! have_cork && want_cork)) |
421 | { | 421 | { |
422 | MHD_setsockopt_(connection, TCP_NODELAY, false, false); | 422 | MHD_setsockopt_ (connection, TCP_NODELAY, false, false); |
423 | } | 423 | } |
424 | #endif | 424 | #endif |
425 | 425 | ||
@@ -447,7 +447,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
447 | if ((ret == header_len + buffer_len) && have_cork) | 447 | if ((ret == header_len + buffer_len) && have_cork) |
448 | { | 448 | { |
449 | // Response complete, definitely uncork! | 449 | // Response complete, definitely uncork! |
450 | MHD_setsockopt_(connection, TCP_CORK, false, true); | 450 | MHD_setsockopt_ (connection, TCP_CORK, false, true); |
451 | } | 451 | } |
452 | errno = eno; | 452 | errno = eno; |
453 | } | 453 | } |
@@ -461,7 +461,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
461 | if (ret == header_len + buffer_len) | 461 | if (ret == header_len + buffer_len) |
462 | { | 462 | { |
463 | /* Response complete, set NOPUSH to off */ | 463 | /* Response complete, set NOPUSH to off */ |
464 | MHD_send_socket_state_nopush_ (connection, false, false); | 464 | MHD_setsockopt_ (connection, TCP_NOPUSH, false, false); |
465 | } | 465 | } |
466 | errno = eno; | 466 | errno = eno; |
467 | } | 467 | } |