summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-12-27 17:47:18 +0300
committerMax Romanov <max.romanov@nginx.com>2017-12-27 17:47:18 +0300
commitbef2ec483eaa525da770c024069b31320b63977e (patch)
treea0e89da5619533e84a045ae357b9fb44cb250c30 /src/nxt_port.c
parentab138c91661aa9b3ba36fb9a1a2154461a1e2372 (diff)
downloadunit-bef2ec483eaa525da770c024069b31320b63977e.tar.gz
unit-bef2ec483eaa525da770c024069b31320b63977e.tar.bz2
Fixing application timeout.
Application timeout limits maximum time of worker response in processing particular request. Not including the time required to start worker, time in request queue etc.
Diffstat (limited to '')
-rw-r--r--src/nxt_port.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c
index 4a07657d..5a1d4e6c 100644
--- a/src/nxt_port.c
+++ b/src/nxt_port.c
@@ -66,6 +66,7 @@ nxt_port_new(nxt_task_t *task, nxt_port_id_t id, nxt_pid_t pid,
nxt_queue_init(&port->messages);
nxt_thread_mutex_create(&port->write_mutex);
+ nxt_queue_init(&port->pending_requests);
} else {
nxt_mp_destroy(mp);