nxt_port_socket.c (978:13b7e32876cf) nxt_port_socket.c (1002:ba4c745528cf)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

344 sb.nmax = nxt_min(NXT_IOBUF_MAX * 10 - 1,
345 port->max_size / PORT_MMAP_MIN_SIZE);
346 }
347
348 if (msg->port_msg.tracking) {
349 iov[0].iov_len += sizeof(msg->tracking_msg);
350 }
351
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

344 sb.nmax = nxt_min(NXT_IOBUF_MAX * 10 - 1,
345 port->max_size / PORT_MMAP_MIN_SIZE);
346 }
347
348 if (msg->port_msg.tracking) {
349 iov[0].iov_len += sizeof(msg->tracking_msg);
350 }
351
352 sb.limit -= iov[0].iov_len;
353
352 nxt_sendbuf_mem_coalesce(task, &sb);
353
354 plain_size = sb.size;
355
356 /*
357 * Send through mmap enabled only when payload
358 * is bigger than PORT_MMAP_MIN_SIZE.
359 */

--- 599 unchanged lines hidden ---
354 nxt_sendbuf_mem_coalesce(task, &sb);
355
356 plain_size = sb.size;
357
358 /*
359 * Send through mmap enabled only when payload
360 * is bigger than PORT_MMAP_MIN_SIZE.
361 */

--- 599 unchanged lines hidden ---