diff options
author | Max Romanov <max.romanov@nginx.com> | 2021-05-17 17:34:15 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2021-05-17 17:34:15 +0300 |
commit | c216f26d3040beef46ca25f73e580153c4c59d02 (patch) | |
tree | 5d2420f53f3958d1c958cd84c3f0f1b4e55f9776 /src/nxt_router.h | |
parent | 25603eae9f8d3c2a6af3c5efb12b4a826776e300 (diff) | |
download | unit-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.h | 2 |
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. */ |