aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test
diff options
context:
space:
mode:
authorJoe DeVivo <[email protected]>2016-05-31 11:08:02 +0200
committerIngela Anderton Andin <[email protected]>2016-06-09 17:36:26 +0200
commitf6d9d94d022b61410c7b784ef95acbbcece65467 (patch)
tree2da42ded6a3af5ac4fb7e695fb482c0a949e688b /lib/ssl/test
parent1ab69efa960703b86a13ea6ba96f4fd56f1565f9 (diff)
downloadotp-f6d9d94d022b61410c7b784ef95acbbcece65467.tar.gz
otp-f6d9d94d022b61410c7b784ef95acbbcece65467.tar.bz2
otp-f6d9d94d022b61410c7b784ef95acbbcece65467.zip
ssl:recv timeout() can be 0
gen_tcp:recv allows this, and if you're doing something like Transport:recv(Socket, 0, 0), TCP will work and SSL will exit with function_clause There were other cases of this throughout the module. This PR cleans them all up.
Diffstat (limited to 'lib/ssl/test')
-rw-r--r--lib/ssl/test/ssl_basic_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_basic_SUITE.erl b/lib/ssl/test/ssl_basic_SUITE.erl
index 89cdd40b4c..a0ff7b677b 100644
--- a/lib/ssl/test/ssl_basic_SUITE.erl
+++ b/lib/ssl/test/ssl_basic_SUITE.erl
@@ -3664,6 +3664,7 @@ basic_test(Config) ->
send_recv_result_timeout_client(Socket) ->
{error, timeout} = ssl:recv(Socket, 11, 500),
+ {error, timeout} = ssl:recv(Socket, 11, 0),
ssl:send(Socket, "Hello world"),
receive
Msg ->