import enum # After the connection is lost, log warnings after this many write()s. LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5 # Seconds to wait before retrying accept(). ACCEPT_RETRY_DELAY = 1 # Number of stack entries to capture in debug mode. # The larger the number, the slower the operation in debug mode # (see extract_stack() in format_helpers.py). DEBUG_STACK_DEPTH = 10 # Number of seconds to wait for SSL handshake to complete # The default timeout matches that of Nginx. SSL_HANDSHAKE_TIMEOUT = 60.0 # Used in sendfile fallback code. We use fallback for platforms # that don't support sendfile, or for TLS connections. SENDFILE_FALLBACK_READBUFFER_SIZE = 1024 * 256 # The enum should be here to break circular dependencies between # base_events and sslproto class _SendfileMode(enum.Enum): UNSUPPORTED = enum.auto() TRY_NATIVE = enum.auto() FALLBACK = enum.auto()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.2 KB | 0644 |
|
__main__.py | File | 3.26 KB | 0644 |
|
base_events.py | File | 70.92 KB | 0644 |
|
base_futures.py | File | 2.51 KB | 0644 |
|
base_subprocess.py | File | 8.64 KB | 0644 |
|
base_tasks.py | File | 2.41 KB | 0644 |
|
constants.py | File | 888 B | 0644 |
|
coroutines.py | File | 8.59 KB | 0644 |
|
events.py | File | 25.55 KB | 0644 |
|
exceptions.py | File | 1.59 KB | 0644 |
|
format_helpers.py | File | 2.35 KB | 0644 |
|
futures.py | File | 12.85 KB | 0644 |
|
locks.py | File | 16.87 KB | 0644 |
|
log.py | File | 124 B | 0644 |
|
proactor_events.py | File | 31.31 KB | 0644 |
|
protocols.py | File | 6.97 KB | 0644 |
|
queues.py | File | 8.03 KB | 0644 |
|
runners.py | File | 2.01 KB | 0644 |
|
selector_events.py | File | 38.08 KB | 0644 |
|
sslproto.py | File | 26.57 KB | 0644 |
|
staggered.py | File | 5.85 KB | 0644 |
|
streams.py | File | 26.03 KB | 0644 |
|
subprocess.py | File | 7.88 KB | 0644 |
|
tasks.py | File | 33.13 KB | 0644 |
|
transports.py | File | 10.24 KB | 0644 |
|
trsock.py | File | 5.74 KB | 0644 |
|
unix_events.py | File | 47.96 KB | 0644 |
|
windows_events.py | File | 32.1 KB | 0644 |
|
windows_utils.py | File | 4.94 KB | 0644 |
|