diff options
author | Hans Nilsson <[email protected]> | 2014-04-23 21:45:27 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2014-05-26 15:56:48 +0200 |
commit | e123ced89eda3dba0ddc30dbbaab5716adee886a (patch) | |
tree | 6d237dc8a92cc052a25fac7cd6641f3b9d7da286 /lib/ssh/src/ssh.erl | |
parent | 9e19d1bf9fc7dc322823327e5e78f4ec0c3cee37 (diff) | |
download | otp-e123ced89eda3dba0ddc30dbbaab5716adee886a.tar.gz otp-e123ced89eda3dba0ddc30dbbaab5716adee886a.tar.bz2 otp-e123ced89eda3dba0ddc30dbbaab5716adee886a.zip |
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 -> |