aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-03-08 14:58:13 +0100
committerPéter Dimitrov <[email protected]>2019-03-08 14:58:13 +0100
commit6bbf8fd8526b1a2b8510f5cd32b47d3195591036 (patch)
treefda3d9b92d78af24f0ed37e6f567b2eb159e759a /lib/inets/src
parentf39d734ed638a7e431993c05b143d2cc5bef1690 (diff)
parent9377eeb3335a1552bd8a55a774da1608575ef039 (diff)
downloadotp-6bbf8fd8526b1a2b8510f5cd32b47d3195591036.tar.gz
otp-6bbf8fd8526b1a2b8510f5cd32b47d3195591036.tar.bz2
otp-6bbf8fd8526b1a2b8510f5cd32b47d3195591036.zip
Merge branch 'maint'
* maint: inets: Fix handling of erl_script_timeout Change-Id: Ie6028000b0bd45307477d837f63c51b2620faaea
Diffstat (limited to 'lib/inets/src')
-rw-r--r--lib/inets/src/http_server/mod_esi.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inets/src/http_server/mod_esi.erl b/lib/inets/src/http_server/mod_esi.erl
index 443b7ee564..f495f12f03 100644
--- a/lib/inets/src/http_server/mod_esi.erl
+++ b/lib/inets/src/http_server/mod_esi.erl
@@ -33,7 +33,7 @@
-include("httpd_internal.hrl").
-define(VMODULE,"ESI").
--define(DEFAULT_ERL_TIMEOUT,15000).
+-define(DEFAULT_ERL_TIMEOUT,15).
%%%=========================================================================
@@ -174,7 +174,7 @@ store({erl_script_alias, Value}, _) ->
{error, {wrong_type, {erl_script_alias, Value}}};
store({erl_script_timeout, TimeoutSec}, _)
when is_integer(TimeoutSec) andalso (TimeoutSec >= 0) ->
- {ok, {erl_script_timeout, TimeoutSec * 1000}};
+ {ok, {erl_script_timeout, TimeoutSec}};
store({erl_script_timeout, Value}, _) ->
{error, {wrong_type, {erl_script_timeout, Value}}};
store({erl_script_nocache, Value} = Conf, _)
@@ -500,7 +500,7 @@ kill_esi_delivery_process(Pid) ->
erl_script_timeout(Db) ->
- httpd_util:lookup(Db, erl_script_timeout, ?DEFAULT_ERL_TIMEOUT).
+ httpd_util:lookup(Db, erl_script_timeout, ?DEFAULT_ERL_TIMEOUT * 1000).
script_elements(FuncAndInput, Input) ->
case input_type(FuncAndInput) of