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),
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue