diff options
author | Hans Nilsson <[email protected]> | 2015-04-07 17:12:56 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-04-07 23:02:58 +0200 |
commit | 3cf856fb8896dc61a0c6aaaab7f0679f3baf64db (patch) | |
tree | 9f8e7181954deb0f881b904d6b77cca9c6f3f84f /lib/ssh/src/ssh.erl | |
parent | 734506318c49778ff959c0f1f5136543fe8c314b (diff) | |
download | otp-3cf856fb8896dc61a0c6aaaab7f0679f3baf64db.tar.gz otp-3cf856fb8896dc61a0c6aaaab7f0679f3baf64db.tar.bz2 otp-3cf856fb8896dc61a0c6aaaab7f0679f3baf64db.zip |
ssh: Option minimal_remote_max_packet_size and test cases
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index eae33e3683..51ad691ba2 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -345,9 +345,14 @@ handle_option([{parallel_login, _} = Opt|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([parallel_login|Rest], SocketOptions, SshOptions) -> handle_option(Rest, SocketOptions, [handle_ssh_option({parallel_login,true}) | SshOptions]); +handle_option([{minimal_remote_max_packet_size, _} = Opt|Rest], SocketOptions, SshOptions) -> + handle_option(Rest, SocketOptions, [handle_ssh_option(Opt) | SshOptions]); handle_option([Opt | Rest], SocketOptions, SshOptions) -> handle_option(Rest, [handle_inet_option(Opt) | SocketOptions], SshOptions). + +handle_ssh_option({minimal_remote_max_packet_size, Value} = Opt) when is_integer(Value), Value >=0 -> + Opt; handle_ssh_option({system_dir, Value} = Opt) when is_list(Value) -> Opt; handle_ssh_option({user_dir, Value} = Opt) when is_list(Value) -> |