diff options
author | Hans Nilsson <[email protected]> | 2014-04-25 11:13:56 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-04-25 11:13:56 +0200 |
commit | 4d957870d4e5ae98e91b9118f8b2e8319ab4fa33 (patch) | |
tree | 84bcb7809d73ba1899e8eeee91ccdf3baac90412 /lib/ssh/src/ssh.erl | |
parent | 355c20137b48e1c1b0cd553a63bbcc5d3e8a045f (diff) | |
parent | 3af70a78b6b84ed1e503d4b8d249ae9e8147eba2 (diff) | |
download | otp-4d957870d4e5ae98e91b9118f8b2e8319ab4fa33.tar.gz otp-4d957870d4e5ae98e91b9118f8b2e8319ab4fa33.tar.bz2 otp-4d957870d4e5ae98e91b9118f8b2e8319ab4fa33.zip |
Merge branch 'hans/ssh/max_sessions/OTP-11885' into maint
* hans/ssh/max_sessions/OTP-11885:
ssh: Doc change on max_session param
ssh: Add max_session parameter to ssh:daemon
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index de6e8cc421..75081b7a61 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -332,6 +332,8 @@ handle_option([{idle_time, _} = Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{rekey_limit, _} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); +handle_option([{max_sessions, _} = Opt|Rest], SocketOptions, SshOptions) -> + handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{negotiation_timeout, _} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([{parallel_login, _} = Opt|Rest], SocketOptions, SshOptions) -> @@ -366,6 +368,8 @@ handle_ssh_option({pref_public_key_algs, Value} = Opt) when is_list(Value), leng end; handle_ssh_option({connect_timeout, Value} = Opt) when is_integer(Value); Value == infinity -> Opt; +handle_ssh_option({max_sessions, Value} = Opt) when is_integer(Value), Value>0 -> + Opt; handle_ssh_option({negotiation_timeout, Value} = Opt) when is_integer(Value); Value == infinity -> Opt; handle_ssh_option({parallel_login, Value} = Opt) when Value==true ; Value==false -> |