From c216f26d3040beef46ca25f73e580153c4c59d02 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Mon, 17 May 2021 17:34:15 +0300 Subject: 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. --- src/nxt_router.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nxt_router.h') 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. */ -- cgit