summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-05-17 17:34:15 +0300
committerMax Romanov <max.romanov@nginx.com>2021-05-17 17:34:15 +0300
commitc216f26d3040beef46ca25f73e580153c4c59d02 (patch)
tree5d2420f53f3958d1c958cd84c3f0f1b4e55f9776 /src/nxt_router.h
parent25603eae9f8d3c2a6af3c5efb12b4a826776e300 (diff)
downloadunit-c216f26d3040beef46ca25f73e580153c4c59d02.tar.gz
unit-c216f26d3040beef46ca25f73e580153c4c59d02.tar.bz2
Fixing racing condition on listen socket close in router.
Listen socket is actually closed in the instant timer handler. This patch moves the "configuration has been applied" notification to the timer handler to avoid a situation when the user gets the response from the controller, but the listen socket is still open in the router.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r--src/nxt_router.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h
index 5804840f..b1ccdf51 100644
--- a/src/nxt_router.h
+++ b/src/nxt_router.h
@@ -205,6 +205,8 @@ typedef struct {
nxt_event_engine_t *engine;
nxt_socket_conf_t *socket_conf;
+ nxt_joint_job_t *close_job;
+
nxt_upstream_t **upstreams;
/* Modules configuraitons. */