#2560: HttpResponse should support close() for iterators
--------------------------------------------------------+-------------------
 Reporter:  Ivan Sagalaev <[EMAIL PROTECTED]>  |       Owner:  adrian
     Type:  defect                                      |      Status:  new   
 Priority:  normal                                      |   Milestone:        
Component:  Core framework                              |     Version:        
 Severity:  normal                                      |    Keywords:        
--------------------------------------------------------+-------------------
 WSGI kinda suggests that a server should call 'close()' method of after
 getting content from a response iterator if it has one. This is very
 logical since one of the most common examples of an iterator is a file and
 it really should be closed afterwards. And incidentally 'flup' which is
 commonly used to run FastCGI server indeed does this.
 
 The problem is that our HttpResponse wraps the actual iterator into a
 generator (for unicode conversion). And this generator doesn't have
 'close()' method and hence the iterator never closed.
 
 I've rewrote this to handle 'close()', patch follows.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2560>
Django <http://code.djangoproject.org/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to