#33625: Under ASGI, PyLibMCCache closes memcached connection after every request
--------------------------------------+------------------------------------
Reporter: Anders Kaseorg | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Cache system) | Version: 4.0
Severity: Normal | Resolution:
Keywords: asgi, async | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Anders Kaseorg):
Sure. Here’s a
[https://gist.github.com/andersk/56784fc0c4cd22005b4ba2925ebb9895 minimal
test project]. Clone it, run `memcached -vv` along with `gunicorn
mctest_wsgi` or `uvicorn mctest_asgi:application`, visit
http://localhost:8000 several times, and check whether `memcached -vv` is
printing lines like “new auto-negotiating client connection” and
“connection closed.”
--
Ticket URL: <https://code.djangoproject.com/ticket/33625#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701800804cbb1-ad5b15e9-a3ab-4297-b68c-ff43db465a51-000000%40eu-central-1.amazonses.com.