cloudflare/cloudflared
Publicmirrored from https://github.com/cloudflare/cloudflaredAvailable
component-tests/constants.py
21lines · modeblame
f23e33c0cthuang5 years ago | 1 | METRICS_PORT = 51000 |
9df60276cthuang5 years ago | 2 | MAX_RETRIES = 5 |
| 3 | BACKOFF_SECS = 7 | |
be0305eccthuang3 years ago | 4 | MAX_LOG_LINES = 50 |
1e8dea91Nuno Diegues4 years ago | 5 | |
ee5e447dDevin Carr3 years ago | 6 | MANAGEMENT_HOST_NAME = "management.argotunnel.com" |
a6faa0c3Nuno Diegues4 years ago | 7 | |
905d983dMiguel da Costa Martins Marcelino1 months ago | 8 | # How long to wait for the cloudflared process to exit after SIGTERM before |
| 9 | # sending SIGKILL. | |
| 10 | GRACEFUL_SHUTDOWN_TIMEOUT = 10 | |
| 11 | # How long to wait for each pipe reader thread to finish after the process | |
| 12 | # exits. | |
| 13 | READER_THREAD_JOIN_TIMEOUT = 5 | |
| 14 | # How long to wait for an expected log message to appear before giving up. | |
| 15 | LOG_POLL_TIMEOUT = 30 | |
| 16 | # How often to re-check the accumulated log lines while polling. | |
| 17 | LOG_POLL_INTERVAL = 0.5 | |
| 18 | | |
a6faa0c3Nuno Diegues4 years ago | 19 | |
| 20 | def protocols(): | |
93f8f6b5Devin Carr3 years ago | 21 | return ["http2", "quic"] |