@@ -39,7 +39,7 @@ feature {NONE} -- Initialization
3939 create request_header .make_empty
4040 create request_header_map .make (10 )
4141
42- keep_alive_requested := False
42+ is_persistent_connection_requested := False
4343 end
4444
4545feature -- Status report
@@ -85,9 +85,9 @@ feature -- Access
8585 remote_info : detachable TUPLE [addr : STRING ; hostname : STRING ; port : INTEGER ]
8686 -- Information related to remote client
8787
88- keep_alive_requested : BOOLEAN
88+ is_persistent_connection_requested : BOOLEAN
8989 -- Persistent connection requested?
90- -- either has "Connection: Keep-Alive " header,
90+ -- either has "Connection: keep-alive " header,
9191 -- or is HTTP/1.1 and no header "Connection: close".
9292
9393 is_http_version_ 1 _ 0 : BOOLEAN
@@ -167,7 +167,7 @@ feature -- Execution
167167 execute_request
168168 l_exit := not {HTTPD_SERVER }.is_persistent_connection_supported
169169 or has_error or l_socket .is_closed or not l_socket .is_open_read
170- or not keep_alive_requested
170+ or not is_persistent_connection_requested
171171 reset_request
172172 end
173173 end
@@ -301,18 +301,18 @@ feature -- Parsing
301301 end
302302 end
303303 -- Except for HTTP/1.0, persistent connection is the default.
304- keep_alive_requested := True
304+ is_persistent_connection_requested := True
305305 if is_http_version_ 1 _ 0 then
306- keep_alive_requested := attached request_header_map .item (" Connection" ) as l_connection and then
306+ is_persistent_connection_requested := attached request_header_map .item (" Connection" ) as l_connection and then
307307 l_connection .is_case_insensitive_equal_general (" keep-alive" )
308308 else
309309 -- By default HTTP:1/1 support persistent connection.
310310 if attached request_header_map .item (" Connection" ) as l_connection then
311311 if l_connection .is_case_insensitive_equal_general (" close" ) then
312- keep_alive_requested := False
312+ is_persistent_connection_requested := False
313313 end
314314 else
315- keep_alive_requested := True
315+ is_persistent_connection_requested := True
316316 end
317317 end
318318 end
0 commit comments