nxt_linux_sendfile.c (0:a63ceefd6ab0) nxt_linux_sendfile.c (1:fdc027c56872)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 48 unchanged lines hidden (view full) ---

57
58 sb.buf = b;
59 sb.iobuf = iov;
60 sb.nmax = NXT_IOBUF_MAX;
61 sb.sync = 0;
62 sb.size = 0;
63 sb.limit = limit;
64
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 48 unchanged lines hidden (view full) ---

57
58 sb.buf = b;
59 sb.iobuf = iov;
60 sb.nmax = NXT_IOBUF_MAX;
61 sb.sync = 0;
62 sb.size = 0;
63 sb.limit = limit;
64
65 niov = nxt_sendbuf_mem_coalesce(&sb);
65 niov = nxt_sendbuf_mem_coalesce(c->socket.task, &sb);
66
67 if (niov == 0 && sb.sync) {
68 return 0;
69 }
70
71 fb = (sb.buf != NULL && nxt_buf_is_file(sb.buf)) ? sb.buf : NULL;
72
73 if (niov != 0) {

--- 167 unchanged lines hidden ---
66
67 if (niov == 0 && sb.sync) {
68 return 0;
69 }
70
71 fb = (sb.buf != NULL && nxt_buf_is_file(sb.buf)) ? sb.buf : NULL;
72
73 if (niov != 0) {

--- 167 unchanged lines hidden ---