Set default websocket idle timeout to 2 hour

This commit is contained in:
Gilbert Wong 2019-04-04 17:42:52 +08:00
parent e917c025d0
commit 7e6255d4ee
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ call(WSPid, Req) when is_pid(WSPid) ->
%%------------------------------------------------------------------------------
init(Req, Opts) ->
IdleTimeout = proplists:get_value(idle_timeout, Opts, 60000),
IdleTimeout = proplists:get_value(idle_timeout, Opts, 7200000),
DeflateOptions = maps:from_list(proplists:get_value(deflate_options, Opts, [])),
MaxFrameSize = case proplists:get_value(max_frame_size, Opts, 0) of
0 -> infinity;