OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <errno.h> | 5 #include <errno.h> |
6 #include <signal.h> | 6 #include <signal.h> |
7 #include <sys/file.h> | 7 #include <sys/file.h> |
8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
9 | 9 |
10 #include <iostream> | 10 #include <iostream> |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 atoi(cl.GetSwitchValueASCII("idle-timeout").c_str()); | 269 atoi(cl.GetSwitchValueASCII("idle-timeout").c_str()); |
270 } | 270 } |
271 | 271 |
272 if (cl.HasSwitch("force_spdy")) | 272 if (cl.HasSwitch("force_spdy")) |
273 net::SMConnection::set_force_spdy(true); | 273 net::SMConnection::set_force_spdy(true); |
274 | 274 |
275 InitLogging(g_proxy_config.log_filename_.c_str(), | 275 InitLogging(g_proxy_config.log_filename_.c_str(), |
276 g_proxy_config.log_destination_, | 276 g_proxy_config.log_destination_, |
277 logging::DONT_LOCK_LOG_FILE, | 277 logging::DONT_LOCK_LOG_FILE, |
278 logging::APPEND_TO_OLD_LOG_FILE, | 278 logging::APPEND_TO_OLD_LOG_FILE, |
279 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 279 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS, |
| 280 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
280 | 281 |
281 LOG(INFO) << "Flip SPDY proxy started with configuration:"; | 282 LOG(INFO) << "Flip SPDY proxy started with configuration:"; |
282 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; | 283 LOG(INFO) << "Logging destination : " << g_proxy_config.log_destination_; |
283 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; | 284 LOG(INFO) << "Log file : " << g_proxy_config.log_filename_; |
284 LOG(INFO) << "Forward IP Header : " | 285 LOG(INFO) << "Forward IP Header : " |
285 << (net::SpdySM::forward_ip_header().length() ? | 286 << (net::SpdySM::forward_ip_header().length() ? |
286 net::SpdySM::forward_ip_header() : "<disabled>"); | 287 net::SpdySM::forward_ip_header() : "<disabled>"); |
287 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); | 288 LOG(INFO) << "Wait for interfaces : " << (wait_for_iface?"true":"false"); |
288 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; | 289 LOG(INFO) << "Accept backlog size : " << FLAGS_accept_backlog_size; |
289 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; | 290 LOG(INFO) << "Accepts per wake : " << FLAGS_accepts_per_wake; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 break; | 409 break; |
409 } | 410 } |
410 usleep(1000*10); // 10 ms | 411 usleep(1000*10); // 10 ms |
411 } | 412 } |
412 | 413 |
413 unlink(PIDFILE); | 414 unlink(PIDFILE); |
414 close(pidfile_fd); | 415 close(pidfile_fd); |
415 return 0; | 416 return 0; |
416 } | 417 } |
417 | 418 |
OLD | NEW |