Skip to content

Commit

Permalink
comment to explain what happens next.
Browse files Browse the repository at this point in the history
  • Loading branch information
satchit committed May 17, 2011
1 parent cbe0105 commit 33ed2f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/zope/server/http/wsgihttpserver.py
Expand Up @@ -83,6 +83,10 @@ def start_response(status, headers, exc_info=None):
if exc_info:
try:
if task.wroteResponseHeader():
# higher levels will catch and handle raised exception:
# 1. "service" method in httptask.py
# 2. "service" method in severchannelbase.py
# 3. "handlerThread" method in taskthreads.py
raise exc_info[0], exc_info[1], exc_info[2]
else:
# As per WSGI spec existing headers must be cleared
Expand Down

0 comments on commit 33ed2f3

Please sign in to comment.