Skip to content

Commit

Permalink
bug 1755993: set timeout and connect_timeout for cache
Browse files Browse the repository at this point in the history
This changes timeout (send/recv) and connect_timeout (connect) from
having no timeout to timing out in 5s.
  • Loading branch information
willkg committed Feb 17, 2022
1 parent 0be9b1b commit 4cde993
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp-django/crashstats/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ def filter(self, record):
"LOCATION": config("CACHE_LOCATION", "127.0.0.1:11211"),
"TIMEOUT": config("CACHE_TIMEOUT", 500),
"KEY_PREFIX": config("CACHE_KEY_PREFIX", "socorro"),
"OPTIONS": {
# Seconds to wait for send/recv calls
"timeout": 5,
# Seconds to wait for a connection to go through
"connect_timeout": 5,
},
}
}

Expand Down

0 comments on commit 4cde993

Please sign in to comment.