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:
@@ -26,11 +26,18 @@ feature -- Execution
|
||||
deferred
|
||||
end
|
||||
|
||||
feature -- WGI Execution
|
||||
feature {WGI_CONNECTOR} -- WGI Execution
|
||||
|
||||
wgi_execute (req: WGI_REQUEST; res: WGI_RESPONSE)
|
||||
local
|
||||
w_res: detachable WSF_RESPONSE
|
||||
do
|
||||
execute (create {WSF_REQUEST}.make_from_wgi (req), create {WSF_RESPONSE}.make_from_wgi (res))
|
||||
create w_res.make_from_wgi (res)
|
||||
execute (create {WSF_REQUEST}.make_from_wgi (req), w_res)
|
||||
rescue
|
||||
if w_res /= Void then
|
||||
w_res.flush
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user