#15824: Modpython should catch EPIPE (produces 500 Internal Server Error)
-----------------------+------------------------------
 Reporter:  gkuenning  |         Owner:  nobody
     Type:  Bug        |        Status:  new
Milestone:             |     Component:  Uncategorized
  Version:  1.2        |      Severity:  Normal
 Keywords:             |  Triage Stage:  Unreviewed
Has patch:  0          |
-----------------------+------------------------------
 When a browser client is receiving a page and decides to go away for
 whatever reason, Apache throws an internal server error that
 eventually produces an e-mail message to the admin.  It took me quite
 a while to figure out why I was getting these random error messages.

 The problem is in modpython at around line 220:

         try:
             for chunk in response:
                 req.write(chunk)
         finally:
             response.close()

 If the client closes the connection during this loop, the write will
 throw an exception.  It is my belief that this code should include an
 except clause to catch and discard EPIPE, since it's not a server
 error when clients go away.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15824>
Django <http://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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to