#33497: Database persistent connections do not work with ASGI in 4.0 -------------------------------------+------------------------------------- Reporter: Stenkar | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 4.0 (models, ORM) | Severity: Normal | Resolution: needsinfo Keywords: ASGI; Database | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* cc: Carlton Gibson (added) * status: new => closed * resolution: => needsinfo Comment: Thanks for the report. ​Django has a [https://github.com/django/django/blob/f0480ddd2d3cb04b784cf7ea697f792b45c689cc/django/db/__init__.py#L34-L42 routine] to clean up old connections that is tied into the request- response life-cycle, so idle connections should be closed. However, I don't think you've explained the issue in enough detail to confirm a bug in Django. This can be an issue in `psycopg2`, `uvicorn`, or in custom middlewares (see #31905) it's hard to say without a reproduce. Please reopen the ticket if you can debug your issue and provide details about why and where Django is at fault, or if provide a sample project with reproducible scenario. -- Ticket URL: <https://code.djangoproject.com/ticket/33497#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.78159b083a4f799a2f365b03c04595fb%40djangoproject.com.