First step to improve a bit error handling related to socket disconnection.

Mainly in standalone connector for now.
This commit is contained in:
2015-04-01 17:29:53 +02:00
parent 9d20e85c03
commit 89e26519e4
12 changed files with 82 additions and 13 deletions

View File

@@ -62,7 +62,7 @@ feature -- Request processing
-- Process request ...
local
l_input: WGI_INPUT_STREAM
l_output: WGI_OUTPUT_STREAM
l_output: detachable WGI_OUTPUT_STREAM
l_error: WGI_ERROR_STREAM
req: WGI_REQUEST_FROM_TABLE
res: detachable WGI_STANDALONE_RESPONSE_STREAM
@@ -84,12 +84,15 @@ feature -- Request processing
res.push
exec.clean
else
process_rescue (res)
if not has_error then
process_rescue (res)
end
if exec /= Void then
exec.clean
end
end
rescue
has_error := l_output = Void or else not l_output.is_available
if not retried then
retried := True
retry