cloudflare/cloudflared
Publicmirrored fromhttps://github.com/cloudflare/cloudflaredAvailable
component-tests/constants.py
21lines · modecode
| 1 | METRICS_PORT = 51000 |
| 2 | MAX_RETRIES = 5 |
| 3 | BACKOFF_SECS = 7 |
| 4 | MAX_LOG_LINES = 50 |
| 5 | |
| 6 | MANAGEMENT_HOST_NAME = "management.argotunnel.com" |
| 7 | |
| 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 | |
| 19 | |
| 20 | def protocols(): |
| 21 | return ["http2", "quic"] |
| 22 | |