From 3e935c7e3335e5164a01af3a632cc1a8d125f8af Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Mon, 10 Oct 2016 22:27:45 +0200 Subject: [PATCH] Use `was_error' to get expected behavior on Linux. --- .../standalone/lib/httpd/httpd_request_handler_i.e | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e b/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e index 42e99fcb..4fd01c02 100644 --- a/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e +++ b/library/server/ewsgi/connectors/standalone/lib/httpd/httpd_request_handler_i.e @@ -511,12 +511,12 @@ feature -- Parsing elseif a_socket.readable then a_socket.read_line_noexception Result := a_socket.last_string - -- Do no check `socket_ok' before socket operation, + -- Do no check `was_error' before socket operation, -- otherwise it may be False, due to error during other socket operation in same thread. - if not a_socket.socket_ok then + if a_socket.was_error then report_error ("Socket error") if is_verbose then - log (request_header +"%N" + Result + "%N## socket_ok=False! ##", debug_level) + log (request_header +"%N" + Result + "%N## was_error=False! ##", debug_level) end end else