Fixed SSL support on the httpd component, and also on the EiffelWeb standalone connector.
- the standalone connector support for SSL, is using certicate files for now (no in-memory support).
- to enable ssl support, set ecf variable `httpd_ssl_enabled=true`.
- added the `simple_ssl` example to demonstrate how to have standalone ssl server.
(be careful when using EiffelNet SSL and the http_client library, disable the libcurl
via ecf variable `libcurl_http_client_disabled=true` )
Added support for recv timeout to the EiffelWeb standalone connector.
- made EiffelWeb compilable with 16.05 and upcoming 16.11.
Done via ecfs condition on version to accept EiffelNet with recv_timeout (from 16.11), and without (until 16.05).
- adding recv timeout prevents server to hang for ever if a client wait too long to send data.
Updated various comments.
This commit is contained in:
@@ -22,11 +22,11 @@ note
|
||||
For instance, you can use
|
||||
create s.make_and_launch_and_options (agent execute, <<["port", 8099]>>)
|
||||
|
||||
And if Nino is the default connector it will support:
|
||||
And if the connector is the Standalone connector,
|
||||
check {WSF_STANDALONE_SERVICE_LAUNCHER} for options description, such as:
|
||||
port: numeric such as 8099 (or equivalent string as "8099")
|
||||
base: base_url (very specific to standalone server)
|
||||
force_single_threaded: use only one thread, useful for Nino
|
||||
verbose: to display verbose output, useful for Nino
|
||||
verbose: to display verbose output.
|
||||
]"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
@@ -8,8 +8,8 @@ note
|
||||
force_single_threaded: use only one thread, useful for Nino
|
||||
verbose: to display verbose output, useful for Nino
|
||||
]"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
date: "$Date: 2016-08-06 13:34:52 +0200 (sam., 06 août 2016) $"
|
||||
revision: "$Revision: 99106 $"
|
||||
|
||||
class
|
||||
WSF_SERVICE_LAUNCHER_OPTIONS
|
||||
@@ -85,6 +85,12 @@ feature -- Access
|
||||
|
||||
feature -- Helpers
|
||||
|
||||
has_option (a_opt_name: READABLE_STRING_GENERAL): BOOLEAN
|
||||
-- Is there any value associated to option name `a_opt_name'?
|
||||
do
|
||||
Result := attached option (a_opt_name)
|
||||
end
|
||||
|
||||
has_integer_option (a_opt_name: READABLE_STRING_GENERAL): BOOLEAN
|
||||
-- Is there any INTEGER value associated to option name `a_opt_name'?
|
||||
local
|
||||
@@ -100,6 +106,29 @@ feature -- Helpers
|
||||
end
|
||||
end
|
||||
|
||||
has_string_32_option (a_opt_name: READABLE_STRING_GENERAL): BOOLEAN
|
||||
-- Is there any string 32 value associated to option name `a_opt_name'?
|
||||
do
|
||||
if attached option (a_opt_name) as opt then
|
||||
Result := attached {READABLE_STRING_GENERAL} opt
|
||||
end
|
||||
end
|
||||
|
||||
option_string_32_value (a_opt_name: READABLE_STRING_GENERAL; a_default: detachable READABLE_STRING_GENERAL): detachable IMMUTABLE_STRING_32
|
||||
-- Unicode String value associated to option name `a_opt_name', other return `a_default'.
|
||||
do
|
||||
if attached option (a_opt_name) as opt then
|
||||
if attached {READABLE_STRING_32} opt as s32 then
|
||||
create Result.make_from_string (s32)
|
||||
elseif attached {READABLE_STRING_GENERAL} opt as s then
|
||||
create Result.make_from_string_general (s)
|
||||
end
|
||||
end
|
||||
if Result = Void and a_default /= Void then
|
||||
create Result.make_from_string_general (a_default)
|
||||
end
|
||||
end
|
||||
|
||||
option_integer_value (a_opt_name: READABLE_STRING_GENERAL; a_default: INTEGER): INTEGER
|
||||
-- INTEGER value associated to option name `a_opt_name', other return `a_default'.
|
||||
local
|
||||
|
||||
Reference in New Issue
Block a user