Destroying temporary router configuration.

The lifespan of a listening socket is longer than both router
configuration's and temporary router configuration's lifespan,
so the sockets should be stored in persistent queues. Safety
is ensured by the fact that the router processes only one new
configuration at any time.
This commit is contained in:
Igor Sysoev
2020-07-06 15:32:20 +03:00
parent a9a21f6fe4
commit 18fbfc3d50
2 changed files with 40 additions and 34 deletions

View File

@@ -66,12 +66,6 @@ typedef struct {
typedef struct {
nxt_queue_t creating; /* of nxt_socket_conf_t */
nxt_queue_t pending; /* of nxt_socket_conf_t */
nxt_queue_t updating; /* of nxt_socket_conf_t */
nxt_queue_t keeping; /* of nxt_socket_conf_t */
nxt_queue_t deleting; /* of nxt_socket_conf_t */
#if (NXT_TLS)
nxt_queue_t tls; /* of nxt_router_tlssock_t */
#endif