aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/microhttpd/mhd_send.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 69239acc..a41586d9 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -342,6 +342,18 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
342 msg.msg_iov = vector; 342 msg.msg_iov = vector;
343 msg.msg_iovlen = 2; 343 msg.msg_iovlen = 2;
344 344
345 /*
346 * questionable for this case, bus maybe worth considering for now:
347 * On at least NetBSD (and FreeBSD?) we need to set both msg_control and
348 * mgs_controllen to 0.
349 * If you set msg_control to nonnull, NetBSD expects you to have
350 * msg_controllen > 0. (sys/kern/uipc_syscalls.c in do_sys_sendmsg_so)
351 * for reference. Thanks to pDNS (for FreeBSD), Riastradh for NetBSD.
352 */
353 /*
354 msg.msg_control = 0;
355 msg.msg_controllen = 0;
356 */
345 ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL); 357 ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL);
346#elif HAVE_WRITEV 358#elif HAVE_WRITEV
347 iovcnt = sizeof (vector) / sizeof (struct iovec); 359 iovcnt = sizeof (vector) / sizeof (struct iovec);