mirror of
https://github.com/quay/quay.git
synced 2026-01-27 18:42:52 +03:00
pymemcache is apparently not thread safe, so our reuse of the client was causing the occasional hang on read. This change has us open a new connection per request, and then close it once complete. We also make sure to close the DB connection before making the memcache connection, in case the memcache connection takes a bit of time We should investigate switching to the PooledClient library for reusing connections (safely) once we verify this change works