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 <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <sys/file.h> | 9 #include <sys/file.h> |
10 #include <sys/stat.h> | 10 #include <sys/stat.h> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "net/tools/flip_server/spdy_interface.h" | 26 #include "net/tools/flip_server/spdy_interface.h" |
27 #include "net/tools/flip_server/streamer_interface.h" | 27 #include "net/tools/flip_server/streamer_interface.h" |
28 | 28 |
29 // If true, then disables the nagle algorithm); | 29 // If true, then disables the nagle algorithm); |
30 bool FLAGS_disable_nagle = true; | 30 bool FLAGS_disable_nagle = true; |
31 | 31 |
32 // The number of times that accept() will be called when the | 32 // The number of times that accept() will be called when the |
33 // alarm goes off when the accept_using_alarm flag is set to true. | 33 // alarm goes off when the accept_using_alarm flag is set to true. |
34 // If set to 0, accept() will be performed until the accept queue | 34 // If set to 0, accept() will be performed until the accept queue |
35 // is completely drained and the accept() call returns an error); | 35 // is completely drained and the accept() call returns an error); |
36 int32 FLAGS_accepts_per_wake = 0; | 36 int32_t FLAGS_accepts_per_wake = 0; |
37 | 37 |
38 // The size of the TCP accept backlog); | 38 // The size of the TCP accept backlog); |
39 int32 FLAGS_accept_backlog_size = 1024; | 39 int32_t FLAGS_accept_backlog_size = 1024; |
40 | 40 |
41 // If set to false a single socket will be used. If set to true | 41 // If set to false a single socket will be used. If set to true |
42 // then a new socket will be created for each accept thread. | 42 // then a new socket will be created for each accept thread. |
43 // Note that this only works with kernels that support | 43 // Note that this only works with kernels that support |
44 // SO_REUSEPORT); | 44 // SO_REUSEPORT); |
45 bool FLAGS_reuseport = false; | 45 bool FLAGS_reuseport = false; |
46 | 46 |
47 // Flag to force spdy, even if NPN is not negotiated. | 47 // Flag to force spdy, even if NPN is not negotiated. |
48 bool FLAGS_force_spdy = false; | 48 bool FLAGS_force_spdy = false; |
49 | 49 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } | 401 } |
402 break; | 402 break; |
403 } | 403 } |
404 usleep(1000 * 10); // 10 ms | 404 usleep(1000 * 10); // 10 ms |
405 } | 405 } |
406 | 406 |
407 unlink(PIDFILE); | 407 unlink(PIDFILE); |
408 close(pidfile_fd); | 408 close(pidfile_fd); |
409 return 0; | 409 return 0; |
410 } | 410 } |
OLD | NEW |