mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172)
This commit is contained in:
parent
416c1ebd98
commit
7165754b6b
5 changed files with 24 additions and 2 deletions
|
@ -14,6 +14,10 @@ DEBUG_STACK_DEPTH = 10
|
|||
# Number of seconds to wait for SSL handshake to complete
|
||||
SSL_HANDSHAKE_TIMEOUT = 10.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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue