summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-14 22:30:38 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-14 22:30:38 +0300
commit309ba5abf2aa51a35c744e7cfe7cb537b3074b42 (patch)
tree6c1449353595a85d8d6c95b35ccdd4bfd710cf03 /src/nxt_router.h
parent4953e5b5cba166bc12a92c686c5e000aaf272667 (diff)
downloadunit-309ba5abf2aa51a35c744e7cfe7cb537b3074b42.tar.gz
unit-309ba5abf2aa51a35c744e7cfe7cb537b3074b42.tar.bz2
Router: fixed segmentation fault.
The router process exited abnormally on reconfiguration if number of worker threads had been decreased on the previous reconfiguration. Besides the list of router engines should be updated only after a new configuration joints have been prepared for all engines.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r--src/nxt_router.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h
index 7071f8c3..b4560a37 100644
--- a/src/nxt_router.h
+++ b/src/nxt_router.h
@@ -34,6 +34,12 @@ typedef struct {
typedef struct {
nxt_event_engine_t *engine;
nxt_work_t *jobs;
+
+ enum {
+ NXT_ROUTER_ENGINE_KEEP = 0,
+ NXT_ROUTER_ENGINE_ADD,
+ NXT_ROUTER_ENGINE_DELETE,
+ } action;
} nxt_router_engine_conf_t;