diff options
author | Ingela Anderton Andin <[email protected]> | 2015-09-23 18:28:50 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-09-23 18:28:50 +0200 |
commit | 14c5f292a168e3056f550b89e9e293fe8ea618c8 (patch) | |
tree | bcdbb934145cbeb4b15e1413d84c32b575adc4da | |
parent | 3380f4d4b9b595d1f8a4c405ea484563c73313d8 (diff) | |
parent | 71501e4307e78805bda531c78352913d12e1dfc9 (diff) | |
download | otp-14c5f292a168e3056f550b89e9e293fe8ea618c8.tar.gz otp-14c5f292a168e3056f550b89e9e293fe8ea618c8.tar.bz2 otp-14c5f292a168e3056f550b89e9e293fe8ea618c8.zip |
Merge branch 'maint'
-rw-r--r-- | lib/ssl/test/ssl_test_lib.erl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index ba8588f2f9..f25f6f9425 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -226,6 +226,17 @@ run_client(Opts) -> ct:log("~p:~p~nClient faild several times: connection failed: ~p ~n", [?MODULE,?LINE, Reason]), Pid ! {self(), {error, Reason}} end; + {error, econnreset = Reason} -> + case get(retries) of + N when N < 5 -> + ct:log("~p:~p~neconnreset retries=~p sleep ~p",[?MODULE,?LINE, N,?SLEEP]), + put(retries, N+1), + ct:sleep(?SLEEP), + run_client(Opts); + _ -> + ct:log("~p:~p~nClient faild several times: connection failed: ~p ~n", [?MODULE,?LINE, Reason]), + Pid ! {self(), {error, Reason}} + end; {error, Reason} -> ct:log("~p:~p~nClient: connection failed: ~p ~n", [?MODULE,?LINE, Reason]), Pid ! {connect_failed, Reason}; |