Removed most of the "retry" in rescue clauses, since it was hidding critical issue.

This should be the choice of the application to "retry" on exception, otherwise let the framework handle this in the lower part.

Better handling of response termination (alias commit)
Added the notion of "status_committed"
This commit is contained in:
Jocelyn Fiat
2012-01-23 15:31:34 +01:00
parent 80d68699b1
commit 6dc1c0d2b0
8 changed files with 54 additions and 63 deletions

View File

@@ -26,6 +26,12 @@ feature {NONE} -- Initialization
feature -- Status report
status_committed: BOOLEAN
-- Status line committed?
do
Result := wgi_response.status_committed
end
header_committed: BOOLEAN
-- Header committed?
do
@@ -56,7 +62,7 @@ feature -- Status setting
-- Set response status code
-- Should be done before sending any data back to the client
require
status_not_set: not status_is_set
status_not_set: not status_committed
header_not_committed: not header_committed
do
wgi_response.set_status_code (a_code)