File 3081-ssh-Remove-ssh-set_sock_opt-not-setable-on-Windows.patch of Package erlang
From e3b166e7fc1ce76f736ee5c35912c1bd1ea2deb5 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Thu, 27 Feb 2020 15:03:33 +0100
Subject: [PATCH] ssh: Remove ssh:set_sock_opt not setable on Windows
---
lib/ssh/test/ssh_basic_SUITE.erl | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 2ed3a248d5..386730af17 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -1467,13 +1467,12 @@ setopts_getopts(Config) ->
ssh:set_sock_opts(ConnectionRef, [{active,once},{deliver,term},{mode,binary},{packet,0}]),
%% Test to set some other opt
- {ok,[{delay_send,DS0},{reuseaddr,RA0}]} =
- ssh:get_sock_opts(ConnectionRef, [delay_send, reuseaddr]),
+ {ok,[{delay_send,DS0}]} =
+ ssh:get_sock_opts(ConnectionRef, [delay_send]),
DS1 = not DS0,
- RA1 = not RA0,
- ok = ssh:set_sock_opts(ConnectionRef, [{delay_send,DS1},{reuseaddr,RA1}]),
- {ok,[{reuseaddr,RA1},{delay_send,DS1}]} =
- ssh:get_sock_opts(ConnectionRef, [reuseaddr,delay_send]),
+ ok = ssh:set_sock_opts(ConnectionRef, [{delay_send,DS1}]),
+ {ok,[{delay_send,DS1}]} =
+ ssh:get_sock_opts(ConnectionRef, [delay_send]),
ssh:stop_daemon(Pid).
--
2.16.4