summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-10-18 18:05:47 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-10-18 18:05:47 +0300
commit67c066b026c965729b70879a490ed118c5a170b9 (patch)
tree4ca765461af9b00b7af4fe21a7b2423e99da21ea /src/nxt_router.h
parent09ef66d39c277ed709e2333f992b1d87304bf663 (diff)
downloadunit-67c066b026c965729b70879a490ed118c5a170b9.tar.gz
unit-67c066b026c965729b70879a490ed118c5a170b9.tar.bz2
Router: fixed segfault after configuration change.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r--src/nxt_router.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h
index 5056021e..521c0397 100644
--- a/src/nxt_router.h
+++ b/src/nxt_router.h
@@ -105,20 +105,19 @@ struct nxt_app_s {
typedef struct {
uint32_t count;
- nxt_socket_t fd;
-} nxt_router_socket_t;
-
-
-typedef struct {
- uint32_t count;
nxt_queue_link_t link;
- nxt_router_socket_t *socket;
nxt_router_conf_t *router_conf;
- nxt_sockaddr_t *sockaddr;
nxt_app_t *application;
- nxt_listen_socket_t listen;
+ /*
+ * A listen socket time can be shorter than socket configuration life
+ * time, so a copy of the non-wildcard socket sockaddr is stored here
+ * to be used as a local sockaddr in connections.
+ */
+ nxt_sockaddr_t *sockaddr;
+
+ nxt_listen_socket_t *listen;
size_t header_buffer_size;
size_t large_header_buffer_size;