nxt_conn.c (318:c2442f5e054d) nxt_conn.c (386:d9e23ae1617d)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

89
90 nxt_log_debug(&c->log, "connections: %uD", thr->engine->connections);
91
92 return c;
93}
94
95
96void
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

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

89
90 nxt_log_debug(&c->log, "connections: %uD", thr->engine->connections);
91
92 return c;
93}
94
95
96void
97nxt_conn_free(nxt_task_t *task, nxt_conn_t *c)
98{
99 task->thread->engine->connections--;
100
101 nxt_mp_release(c->mem_pool, c);
102}
103
104
105void
97nxt_conn_io_shutdown(nxt_task_t *task, void *obj, void *data)
98{
99 int ret;
100 nxt_conn_t *c;
101
102 static const struct linger linger_off = {
103 .l_onoff = 1,
104 .l_linger = 0,

--- 50 unchanged lines hidden ---
106nxt_conn_io_shutdown(nxt_task_t *task, void *obj, void *data)
107{
108 int ret;
109 nxt_conn_t *c;
110
111 static const struct linger linger_off = {
112 .l_onoff = 1,
113 .l_linger = 0,

--- 50 unchanged lines hidden ---