# Contains code from https://github.com/MagicStack/uvloop/tree/v0.16.0 # SPDX-License-Identifier: PSF-2.0 AND (MIT OR Apache-2.0) # SPDX-FileCopyrightText: Copyright (c) 2015-2021 MagicStack Inc. http://magic.io 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 # Number of seconds to wait for SSL shutdown to complete # The default timeout mimics lingering_time SSL_SHUTDOWN_TIMEOUT = 30.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 FLOW_CONTROL_HIGH_WATER_SSL_READ = 256 # KiB FLOW_CONTROL_HIGH_WATER_SSL_WRITE = 512 # KiB # 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.16 KB | 0644 |
|
__main__.py | File | 3.3 KB | 0644 |
|
base_events.py | File | 73.62 KB | 0644 |
|
base_futures.py | File | 1.96 KB | 0644 |
|
base_subprocess.py | File | 8.66 KB | 0644 |
|
base_tasks.py | File | 2.58 KB | 0644 |
|
constants.py | File | 1.29 KB | 0644 |
|
coroutines.py | File | 3.32 KB | 0644 |
|
events.py | File | 27.97 KB | 0644 |
|
exceptions.py | File | 1.71 KB | 0644 |
|
format_helpers.py | File | 2.35 KB | 0644 |
|
futures.py | File | 13.88 KB | 0644 |
|
locks.py | File | 18.57 KB | 0644 |
|
log.py | File | 124 B | 0644 |
|
mixins.py | File | 481 B | 0644 |
|
proactor_events.py | File | 32.48 KB | 0644 |
|
protocols.py | File | 6.79 KB | 0644 |
|
queues.py | File | 7.79 KB | 0644 |
|
runners.py | File | 6.68 KB | 0644 |
|
selector_events.py | File | 44.34 KB | 0644 |
|
sslproto.py | File | 31 KB | 0644 |
|
staggered.py | File | 5.85 KB | 0644 |
|
streams.py | File | 26.86 KB | 0644 |
|
subprocess.py | File | 7.5 KB | 0644 |
|
taskgroups.py | File | 8.27 KB | 0644 |
|
tasks.py | File | 33.63 KB | 0644 |
|
threads.py | File | 790 B | 0644 |
|
timeouts.py | File | 5.2 KB | 0644 |
|
transports.py | File | 10.47 KB | 0644 |
|
trsock.py | File | 2.42 KB | 0644 |
|
unix_events.py | File | 50.7 KB | 0644 |
|
windows_events.py | File | 33.88 KB | 0644 |
|
windows_utils.py | File | 4.94 KB | 0644 |
|