Skip to content
Browse files

Fix httpd config option 'keep_alive_timeout'

The documentation states that the value is in seconds, which was true
when using the Apache like configuration file, but not true when using
the proplist style configuration.
  • Loading branch information...
1 parent d6577a2 commit 3ec3fcf098df6d0c2895eb11eaeb45d041cbf605 @weisslj weisslj committed with IngelaAndin Jul 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/inets/src/http_server/httpd_conf.erl
2 lib/inets/src/http_server/httpd_conf.erl
@@ -798,6 +798,8 @@ store({log_format, LogFormat}, _ConfigList)
store({server_tokens, ServerTokens} = Entry, _ConfigList) ->
Server = server(ServerTokens),
{ok, [Entry, {server, Server}]};
+store({keep_alive_timeout, KeepAliveTimeout}, _ConfigList) ->
+ {ok, {keep_alive_timeout, KeepAliveTimeout * 1000}};
store(ConfigListEntry, _ConfigList) ->
{ok, ConfigListEntry}.

0 comments on commit 3ec3fcf

Please sign in to comment.
Something went wrong with that request. Please try again.