#19519: Django fails to close db connections at end of request-response cycle -------------------------------------+------------------------------------- Reporter: amosonn@… | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Release blocker | Triage Stage: Accepted Keywords: connection, | Needs documentation: 0 managment, closing, mysql, | Patch needs improvement: 0 innodb, signal, generator | UI/UX: 0 Has patch: 0 | Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by apollo13): Yes, the transaction middleware will also commit the transaction before the response is generated. Same goes for decorators like commit_on_success. But independent of that, the whole connection is closed before the response is generated. -- Ticket URL: <https://code.djangoproject.com/ticket/19519#comment:7> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.