mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
health: Use one second for the timeouts.
This commit is contained in:
committed by
Max Goodman
parent
006add6a65
commit
fcb49ce518
@@ -56,9 +56,11 @@ class HealthController(MinimalController):
|
||||
def GET_cachehealth(self):
|
||||
results = {}
|
||||
behaviors = {
|
||||
"connect_timeout": 3,
|
||||
"receive_timeout": 3,
|
||||
"send_timeout": 3,
|
||||
# Passed on to poll(2) in milliseconds
|
||||
"connect_timeout": 1000,
|
||||
# Passed on to setsockopt(2) in microseconds
|
||||
"receive_timeout": int(1e6),
|
||||
"send_timeout": int(1e6),
|
||||
}
|
||||
for server in cache._CACHE_SERVERS:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user