nxt_router.h (343:9fa845db60fb) nxt_router.h (359:d4848619451a)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_ROUTER_H_INCLUDED_
8#define _NXT_ROUTER_H_INCLUDED_

--- 91 unchanged lines hidden (view full) ---

100 nxt_app_prepare_msg_t prepare_msg;
101
102 nxt_atomic_t use_count;
103};
104
105
106typedef struct {
107 uint32_t count;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_ROUTER_H_INCLUDED_
8#define _NXT_ROUTER_H_INCLUDED_

--- 91 unchanged lines hidden (view full) ---

100 nxt_app_prepare_msg_t prepare_msg;
101
102 nxt_atomic_t use_count;
103};
104
105
106typedef struct {
107 uint32_t count;
108 nxt_socket_t fd;
109} nxt_router_socket_t;
110
111
112typedef struct {
113 uint32_t count;
114 nxt_queue_link_t link;
108 nxt_queue_link_t link;
115 nxt_router_socket_t *socket;
116 nxt_router_conf_t *router_conf;
109 nxt_router_conf_t *router_conf;
117 nxt_sockaddr_t *sockaddr;
118
119 nxt_app_t *application;
120
110
111 nxt_app_t *application;
112
121 nxt_listen_socket_t listen;
113 /*
114 * A listen socket time can be shorter than socket configuration life
115 * time, so a copy of the non-wildcard socket sockaddr is stored here
116 * to be used as a local sockaddr in connections.
117 */
118 nxt_sockaddr_t *sockaddr;
122
119
120 nxt_listen_socket_t *listen;
121
123 size_t header_buffer_size;
124 size_t large_header_buffer_size;
125 size_t large_header_buffers;
126 size_t body_buffer_size;
127 size_t max_body_size;
128 nxt_msec_t header_read_timeout;
129 nxt_msec_t body_read_timeout;
130} nxt_socket_conf_t;

--- 20 unchanged lines hidden ---
122 size_t header_buffer_size;
123 size_t large_header_buffer_size;
124 size_t large_header_buffers;
125 size_t body_buffer_size;
126 size_t max_body_size;
127 nxt_msec_t header_read_timeout;
128 nxt_msec_t body_read_timeout;
129} nxt_socket_conf_t;

--- 20 unchanged lines hidden ---