summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-08-01 14:26:54 +0000
committerng0 <ng0@n0.is>2019-08-01 14:26:54 +0000
commit9edfc8f8f7a548e0dad8f3d18f671b822601a384 (patch)
tree317e36f8fc36f1daeaf26ecc5b46fa454d8a3fe7
parent8c6c3d4555dfb08c89332036f70c901275891b6b (diff)
mhd_send commented,
-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,
msg.msg_iov = vector;
msg.msg_iovlen = 2;
+ /*
+ * questionable for this case, bus maybe worth considering for now:
+ * On at least NetBSD (and FreeBSD?) we need to set both msg_control and
+ * mgs_controllen to 0.
+ * If you set msg_control to nonnull, NetBSD expects you to have
+ * msg_controllen > 0. (sys/kern/uipc_syscalls.c in do_sys_sendmsg_so)
+ * for reference. Thanks to pDNS (for FreeBSD), Riastradh for NetBSD.
+ */
+ /*
+ msg.msg_control = 0;
+ msg.msg_controllen = 0;
+ */
ret = sendmsg (s, &msg, MAYBE_MSG_NOSIGNAL);
#elif HAVE_WRITEV
iovcnt = sizeof (vector) / sizeof (struct iovec);