OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_TOOLS_FLIP_PROXY_CONFIG_H | 5 #ifndef NET_TOOLS_FLIP_PROXY_CONFIG_H |
6 #define NET_TOOLS_FLIP_PROXY_CONFIG_H | 6 #define NET_TOOLS_FLIP_PROXY_CONFIG_H |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <arpa/inet.h> // in_addr_t | 9 #include <arpa/inet.h> // in_addr_t |
10 | 10 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 public: | 129 public: |
130 std::vector <FlipAcceptor*> acceptors_; | 130 std::vector <FlipAcceptor*> acceptors_; |
131 double server_think_time_in_s_; | 131 double server_think_time_in_s_; |
132 enum logging::LoggingDestination log_destination_; | 132 enum logging::LoggingDestination log_destination_; |
133 string log_filename_; | 133 string log_filename_; |
134 bool forward_ip_header_enabled_; | 134 bool forward_ip_header_enabled_; |
135 string forward_ip_header_; | 135 string forward_ip_header_; |
136 bool wait_for_iface_; | 136 bool wait_for_iface_; |
137 int ssl_session_expiry_; | 137 int ssl_session_expiry_; |
138 bool ssl_disable_compression_; | 138 bool ssl_disable_compression_; |
| 139 int idle_timeout_s_; |
139 | 140 |
140 FlipConfig() : | 141 FlipConfig() : |
141 server_think_time_in_s_(0), | 142 server_think_time_in_s_(0), |
142 log_destination_(logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG), | 143 log_destination_(logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG), |
143 forward_ip_header_enabled_(false), | 144 forward_ip_header_enabled_(false), |
144 wait_for_iface_(false), | 145 wait_for_iface_(false), |
145 ssl_session_expiry_(300), | 146 ssl_session_expiry_(300), |
146 ssl_disable_compression_(false) | 147 ssl_disable_compression_(false), |
| 148 idle_timeout_s_(300) |
147 {} | 149 {} |
148 | 150 |
149 ~FlipConfig() {} | 151 ~FlipConfig() {} |
150 | 152 |
151 void AddAcceptor(enum FlipHandlerType flip_handler_type, | 153 void AddAcceptor(enum FlipHandlerType flip_handler_type, |
152 string listen_ip, | 154 string listen_ip, |
153 string listen_port, | 155 string listen_port, |
154 string ssl_cert_filename, | 156 string ssl_cert_filename, |
155 string ssl_key_filename, | 157 string ssl_key_filename, |
156 string http_server_ip, | 158 string http_server_ip, |
(...skipping 22 matching lines...) Expand all Loading... |
179 disable_nagle, | 181 disable_nagle, |
180 accepts_per_wake, | 182 accepts_per_wake, |
181 reuseport, | 183 reuseport, |
182 wait_for_iface, | 184 wait_for_iface, |
183 memory_cache)); | 185 memory_cache)); |
184 } | 186 } |
185 | 187 |
186 }; | 188 }; |
187 | 189 |
188 #endif | 190 #endif |
OLD | NEW |