static void mk_header_cb_finished(struct mk_stream_input *in) { struct mk_iov *iov = in->buffer; mk_iov_free_marked(iov); #if defined(__APPLE__) /* * Disable TCP_CORK right away, according to: * * --- * commit 81e8b869d70f9da93ddfbfb17ec7f12ce3c28fc6 * Author: Sonny Karlsson <*****@*****.**> * Date: Sat Oct 18 12:11:49 2014 +0200 * * http: Remove cork before first call to sendfile(). * * This removes a large delay on Mac OS X when headers and file content * does not fill a single frame. * Deactivating TCP_NOPUSH does not cause pending frames to be sent until * the next write operation. * --- */ mk_server_cork_flag(in->stream->channel->fd, TCP_CORK_OFF); #endif }
void mk_iov_free(struct mk_iov *mk_io) { mk_iov_free_marked(mk_io); mk_mem_free(mk_io->buf_to_free); mk_mem_free(mk_io->io); mk_mem_free(mk_io); }
void mk_iov_free(struct mk_iov *mk_io) { mk_iov_free_marked(mk_io); mk_mem_free(mk_io); }
static void mk_header_iov_free(struct mk_iov *iov) { mk_iov_free_marked(iov); }