Message 329171 - Python tracker

Message329171

Author chris.jerdonek
Recipients Petter S, SG, William Hingston, asvetlov, berker.peksag, chris.jerdonek, iMath, kristjan.jonsson, pje, r.david.murray, steve.dower, tim.golden, xtreak
Date 2018-11-02.23:21:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541200883.21.0.788709270274.issue27682@psf.upfronthosting.co.za>
In-reply-to
Content
This seems like a bug in wsgiref.BaseHandler to me. BaseHandler.run() calls handle_error() if an error occurs inside finish_response():
https://github.com/python/cpython/blob/e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd/Lib/wsgiref/handlers.py#L141

However, finish_response() calls close() in its finally block:
https://github.com/python/cpython/blob/e2ed5adcb5db2d70cfa72da1ba8446f7aa9e05cd/Lib/wsgiref/handlers.py#L177-L183
History
Date User Action Args
2018-11-02 23:21:23chris.jerdoneksetrecipients: + chris.jerdonek, pje, kristjan.jonsson, tim.golden, r.david.murray, asvetlov, berker.peksag, steve.dower, iMath, SG, William Hingston, Petter S, xtreak
2018-11-02 23:21:23chris.jerdoneksetmessageid: <1541200883.21.0.788709270274.issue27682@psf.upfronthosting.co.za>
2018-11-02 23:21:23chris.jerdoneklinkissue27682 messages
2018-11-02 23:21:23chris.jerdonekcreate