#33755: Move ASGI body-file cleanup into ASGIRequest
-------------------------------------+-------------------------------------
     Reporter:  Carlton Gibson       |                    Owner:  Jonas
         Type:                       |  Lundberg
  Cleanup/optimization               |                   Status:  assigned
    Component:  HTTP handling        |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  ASGI                 |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jonas Lundberg):

 Hmm, only closing the {{{body_file}}} once read would leave it unclosed if
 the body wasn't touched.

 Maybe we also need to implement your suggested {{{__del__}} to handle that
 case as well, closing either the {{{body_file}}} or the {{{BytesIO}}} for
 read body.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33755#comment:6>
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/01070181192fd44f-27257784-156d-44d5-9729-5aa35b5c532a-000000%40eu-central-1.amazonses.com.

Reply via email to