nxt_conn_accept.c (358:40bbd4c2349d) nxt_conn_accept.c (359:d4848619451a)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

96 c = nxt_conn_create(mp, lev->socket.task);
97 if (nxt_slow_path(c == NULL)) {
98 goto fail;
99 }
100
101 lev->next = c;
102 c->socket.read_work_queue = lev->socket.read_work_queue;
103 c->socket.write_ready = 1;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

96 c = nxt_conn_create(mp, lev->socket.task);
97 if (nxt_slow_path(c == NULL)) {
98 goto fail;
99 }
100
101 lev->next = c;
102 c->socket.read_work_queue = lev->socket.read_work_queue;
103 c->socket.write_ready = 1;
104 c->listen = lev;
105
106 c->remote = nxt_sockaddr_cache_alloc(engine, lev->listen);
107 if (nxt_fast_path(c->remote != NULL)) {
108 return c;
109 }
110 }
111
112 fail:

--- 249 unchanged lines hidden ---
104
105 c->remote = nxt_sockaddr_cache_alloc(engine, lev->listen);
106 if (nxt_fast_path(c->remote != NULL)) {
107 return c;
108 }
109 }
110
111 fail:

--- 249 unchanged lines hidden ---