Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/asyncio/constants.py: 100%
10 statements
« prev ^ index » next coverage.py v7.0.1, created at 2022-12-25 06:11 +0000
« prev ^ index » next coverage.py v7.0.1, created at 2022-12-25 06:11 +0000
1import enum
3# After the connection is lost, log warnings after this many write()s.
4LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
6# Seconds to wait before retrying accept().
7ACCEPT_RETRY_DELAY = 1
9# Number of stack entries to capture in debug mode.
10# The larger the number, the slower the operation in debug mode
11# (see extract_stack() in format_helpers.py).
12DEBUG_STACK_DEPTH = 10
14# Number of seconds to wait for SSL handshake to complete
15# The default timeout matches that of Nginx.
16SSL_HANDSHAKE_TIMEOUT = 60.0
18# Used in sendfile fallback code. We use fallback for platforms
19# that don't support sendfile, or for TLS connections.
20SENDFILE_FALLBACK_READBUFFER_SIZE = 1024 * 256
22# The enum should be here to break circular dependencies between
23# base_events and sslproto
24class _SendfileMode(enum.Enum):
25 UNSUPPORTED = enum.auto()
26 TRY_NATIVE = enum.auto()
27 FALLBACK = enum.auto()