Really fix the lower bound for session handles (session_max) to 1024 (upper bound is 8192).

This commit is contained in:
Gregory Burd 2013-07-08 19:59:00 -04:00
parent fea52c4ec3
commit 420b658e27

View file

@ -378,11 +378,14 @@ max_sessions(Config) ->
Est = RingSize * erlang:system_info(schedulers), Est = RingSize * erlang:system_info(schedulers),
case Est > 8192 of case Est > 8192 of
true -> true ->
8192;
false ->
case Est < 1024 of case Est < 1024 of
true -> 1024; true ->
false -> 8192 1024;
end; false ->
false -> Est Est
end
end. end.
%% @private %% @private