| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <dirent.h> | 5 #include <dirent.h> |
| 6 #include <netinet/tcp.h> // For TCP_NODELAY | 6 #include <netinet/tcp.h> // For TCP_NODELAY |
| 7 #include <sys/socket.h> | 7 #include <sys/socket.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 #include <openssl/err.h> | 10 #include <openssl/err.h> |
| (...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3050 g_proxy_config.ssl_session_expiry_ = atoi( session_expiry.c_str() ); | 3050 g_proxy_config.ssl_session_expiry_ = atoi( session_expiry.c_str() ); |
| 3051 } | 3051 } |
| 3052 | 3052 |
| 3053 if (cl.HasSwitch("ssl-disable-compression")) { | 3053 if (cl.HasSwitch("ssl-disable-compression")) { |
| 3054 g_proxy_config.ssl_disable_compression_ = true; | 3054 g_proxy_config.ssl_disable_compression_ = true; |
| 3055 } | 3055 } |
| 3056 | 3056 |
| 3057 InitLogging(g_proxy_config.log_filename_.c_str(), | 3057 InitLogging(g_proxy_config.log_filename_.c_str(), |
| 3058 g_proxy_config.log_destination_, | 3058 g_proxy_config.log_destination_, |
| 3059 logging::DONT_LOCK_LOG_FILE, | 3059 logging::DONT_LOCK_LOG_FILE, |
| 3060 logging::APPEND_TO_OLD_LOG_FILE, | 3060 logging::APPEND_TO_OLD_LOG_FILE); |
| 3061 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | |
| 3062 | 3061 |
| 3063 LOG(INFO) << "Flip SPDY proxy started with configuration:"; | 3062 LOG(INFO) << "Flip SPDY proxy started with configuration:"; |
| 3064 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; | 3063 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; |
| 3065 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; | 3064 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; |
| 3066 LOG(INFO) << "Forward IP Header : " | 3065 LOG(INFO) << "Forward IP Header : " |
| 3067 << (g_proxy_config.forward_ip_header_enabled_ ? | 3066 << (g_proxy_config.forward_ip_header_enabled_ ? |
| 3068 g_proxy_config.forward_ip_header_ : "(disabled)"); | 3067 g_proxy_config.forward_ip_header_ : "(disabled)"); |
| 3069 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); | 3068 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); |
| 3070 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; | 3069 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; |
| 3071 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; | 3070 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3170 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) { | 3169 for (unsigned int i = 0; i < sm_worker_threads_.size(); ++i) { |
| 3171 sm_worker_threads_[i]->Join(); | 3170 sm_worker_threads_[i]->Join(); |
| 3172 } | 3171 } |
| 3173 return 0; | 3172 return 0; |
| 3174 } | 3173 } |
| 3175 usleep(1000*10); // 10 ms | 3174 usleep(1000*10); // 10 ms |
| 3176 } | 3175 } |
| 3177 | 3176 |
| 3178 return 0; | 3177 return 0; |
| 3179 } | 3178 } |
| OLD | NEW |