Updated a few classes from http_client to use nanoseconds as timeout precision.

Fixed typo in comments.
This commit is contained in:
2018-02-13 18:46:18 +01:00
parent d3e865cf6c
commit ed3ad962d1
3 changed files with 12 additions and 10 deletions

View File

@@ -157,7 +157,7 @@ feature -- Settings
end
connect_timeout: INTEGER
-- HTTP connection timeout in seconds.
-- HTTP connection timeout in milliseconds.
--| 0 means it nevers timeout
do
Result := session.connect_timeout
@@ -208,7 +208,7 @@ feature -- Settings
end
note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
copyright: "2011-2018, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software

View File

@@ -64,7 +64,7 @@ feature {NONE} -- Internal
create Result.make_client_by_port (a_port, a_host)
end
Result.set_connect_timeout (connect_timeout)
Result.set_timeout (timeout)
Result.set_timeout_ns (Result.seconds_to_nanoseconds (timeout))
Result.connect
end
end
@@ -887,7 +887,7 @@ feature {NONE} -- Helpers
invariant
note
copyright: "2011-2017, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
copyright: "2011-2018, Jocelyn Fiat, Javier Velilla, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software