Handling bad incoming request (keep a check assertion to help during debugging period)

This commit is contained in:
Jocelyn Fiat
2011-12-12 10:44:50 +01:00
parent 59505ccdc4
commit 8b4f774bab
3 changed files with 54 additions and 20 deletions

View File

@@ -22,8 +22,8 @@ feature -- Initialization
a_http_handler_valid: a_http_handler /= Void
do
if configuration.is_verbose then
print("%N%N%N")
print ("Starting Web Application Server (port="+ configuration.http_server_port.out +"):%N")
log ("%N%N%N")
log ("Starting Web Application Server (port="+ configuration.http_server_port.out +"):%N")
end
stop_requested := False
a_http_handler.execute
@@ -42,6 +42,14 @@ feature -- Access
stop_requested: BOOLEAN
-- Stops the server
feature -- Output
log (a_message: READABLE_STRING_8)
-- Log `a_message'
do
io.put_string (a_message)
end
;note
copyright: "2011-2011, Javier Velilla and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"