nxt_conn.c (62:5e1efcc7b740) nxt_conn.c (65:10688b89aa16)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

37 nxt_event_conn_io_writev,
38 nxt_event_conn_io_send,
39
40 nxt_conn_io_shutdown,
41};
42
43
44nxt_conn_t *
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

37 nxt_event_conn_io_writev,
38 nxt_event_conn_io_send,
39
40 nxt_conn_io_shutdown,
41};
42
43
44nxt_conn_t *
45nxt_conn_create(nxt_mem_pool_t *mp, nxt_task_t *task)
45nxt_conn_create(nxt_mp_t *mp, nxt_task_t *task)
46{
47 nxt_conn_t *c;
48 nxt_thread_t *thr;
49
46{
47 nxt_conn_t *c;
48 nxt_thread_t *thr;
49
50 c = nxt_mem_zalloc(mp, sizeof(nxt_conn_t));
50 c = nxt_mp_zget(mp, sizeof(nxt_conn_t));
51 if (nxt_slow_path(c == NULL)) {
52 return NULL;
53 }
54
55 c->mem_pool = mp;
56
57 c->socket.fd = -1;
58

--- 94 unchanged lines hidden ---
51 if (nxt_slow_path(c == NULL)) {
52 return NULL;
53 }
54
55 c->mem_pool = mp;
56
57 c->socket.fd = -1;
58

--- 94 unchanged lines hidden ---