blob: 0ad974ff2fb9d5654e1b514a20ce6bb34498e6de [file] [log] [blame]
Guido van Rossum3317a132013-11-01 14:12:50 -07001# After the connection is lost, log warnings after this many write()s.
Guido van Rossum27b7c7e2013-10-17 13:40:50 -07002LOG_THRESHOLD_FOR_CONNLOST_WRITES = 5
Guido van Rossum3317a132013-11-01 14:12:50 -07003
4# Seconds to wait before retrying accept().
5ACCEPT_RETRY_DELAY = 1
Antoine Pitrou921e9432017-11-07 17:23:29 +01006
7# Number of stack entries to capture in debug mode.
Barry Warsawc060c7e2017-11-07 09:05:15 -08008# The larger the number, the slower the operation in debug mode
Andrew Svetlovf74ef452017-12-15 07:04:38 +02009# (see extract_stack() in format_helpers.py).
Antoine Pitrou921e9432017-11-07 17:23:29 +010010DEBUG_STACK_DEPTH = 10
Neil Aspinallf7686c12017-12-19 19:45:42 +000011
12# Number of seconds to wait for SSL handshake to complete
13SSL_HANDSHAKE_TIMEOUT = 10.0