diff options
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r-- | src/microhttpd/mhd_send.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 161c515e..8dbecdc2 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -452,6 +452,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
452 | const char *buffer, | 452 | const char *buffer, |
453 | size_t buffer_size) | 453 | size_t buffer_size) |
454 | { | 454 | { |
455 | MHD_socket s = connection->socket_fd; | ||
456 | ssize_t ret; | ||
457 | struct iovec vector[2]; | ||
455 | #ifdef HTTPS_SUPPORT | 458 | #ifdef HTTPS_SUPPORT |
456 | const bool tls_conn = (connection->daemon->options & MHD_USE_TLS); | 459 | const bool tls_conn = (connection->daemon->options & MHD_USE_TLS); |
457 | #else /* ! HTTPS_SUPPORT */ | 460 | #else /* ! HTTPS_SUPPORT */ |
@@ -471,10 +474,6 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
471 | } | 474 | } |
472 | #endif | 475 | #endif |
473 | #if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) | 476 | #if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV) |
474 | MHD_socket s = connection->socket_fd; | ||
475 | ssize_t ret; | ||
476 | struct iovec vector[2]; | ||
477 | |||
478 | /* Since we generally give the fully answer, we do not want | 477 | /* Since we generally give the fully answer, we do not want |
479 | corking to happen */ | 478 | corking to happen */ |
480 | pre_cork_setsockopt (connection, tls_conn, false); | 479 | pre_cork_setsockopt (connection, tls_conn, false); |