diff options
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r-- | src/microhttpd/mhd_send.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index 1031426d..1394aa70 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -288,7 +288,6 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
288 | // -- </pseudo> | 288 | // -- </pseudo> |
289 | #ifdef WRITEV | 289 | #ifdef WRITEV |
290 | int iovcnt; | 290 | int iovcnt; |
291 | // TODO: iovec/writev needs no alloc, but consider looking into mmap? | ||
292 | struct iovec vector[2]; | 291 | struct iovec vector[2]; |
293 | vector[0].iov_base = header; | 292 | vector[0].iov_base = header; |
294 | vector[0].iov_len = strlen (header); | 293 | vector[0].iov_len = strlen (header); |
@@ -298,8 +297,7 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, | |||
298 | int i = writev (s, vector, iovcnt); | 297 | int i = writev (s, vector, iovcnt); |
299 | fprintf (stdout, "i=%d, errno=%d\n", i, errno); | 298 | fprintf (stdout, "i=%d, errno=%d\n", i, errno); |
300 | #else | 299 | #else |
301 | // wait for phonecall clearing this up? | 300 | // not available, send a combination of header + buffer. |
302 | // COMMENTARY: not available, send a combination of header + buffer. | ||
303 | size_t concatsize = header_size + buffer_size; | 301 | size_t concatsize = header_size + buffer_size; |
304 | const char *concatbuffer; | 302 | const char *concatbuffer; |
305 | concatbuffer = header + buffer; | 303 | concatbuffer = header + buffer; |