Really fix the lower bound for session handles (session_max) to 1024 (upper bound is 8192).
This commit is contained in:
parent
fea52c4ec3
commit
420b658e27
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue