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),
case Est > 8192 of
true ->
8192;
false ->
case Est < 1024 of
true -> 1024;
false -> 8192
end;
false -> Est
true ->
1024;
false ->
Est
end
end.
%% @private