diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-09-15 20:30:24 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-09-15 20:30:24 +0300 |
commit | 0bec14878e99de280046e1d1b1a0195e5478c808 (patch) | |
tree | f5f40c8b9b4d1f3679d6daf38031002b4160d05b /src/nxt_conn.c | |
parent | 90ae152ce0ace8f2c41a012b9fa52b2f3283a845 (diff) | |
download | unit-0bec14878e99de280046e1d1b1a0195e5478c808.tar.gz unit-0bec14878e99de280046e1d1b1a0195e5478c808.tar.bz2 |
Introducing application timeout.
Diffstat (limited to 'src/nxt_conn.c')
-rw-r--r-- | src/nxt_conn.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/nxt_conn.c b/src/nxt_conn.c index 5d84cbb4..a5549eda 100644 --- a/src/nxt_conn.c +++ b/src/nxt_conn.c @@ -152,35 +152,3 @@ nxt_conn_work_queue_set(nxt_conn_t *c, nxt_work_queue_t *wq) c->read_timer.work_queue = wq; c->write_timer.work_queue = wq; } - - -nxt_req_conn_link_t * -nxt_conn_request_add(nxt_conn_t *c, nxt_req_id_t req_id) -{ - nxt_req_conn_link_t *rc; - - rc = nxt_mp_zalloc(c->mem_pool, sizeof(nxt_req_conn_link_t)); - if (nxt_slow_path(rc == NULL)) { - nxt_thread_log_error(NXT_LOG_WARN, "failed to allocate req %08uxD " - "to conn", req_id); - return NULL; - } - - rc->req_id = req_id; - rc->conn = c; - - nxt_queue_insert_tail(&c->requests, &rc->link); - - return rc; -} - - -void -nxt_conn_request_remove(nxt_conn_t *c, nxt_req_conn_link_t *rc) -{ - nxt_queue_remove(&rc->link); - - nxt_mp_free(c->mem_pool, rc); -} - - |