aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/inets_test_lib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2012-07-24 12:57:20 +0200
committerMicael Karlberg <[email protected]>2012-07-24 12:57:20 +0200
commit3f61f4daccc11658e838771b696c205fccac709e (patch)
tree7ae20b7e6382d471367f8e75b2992ffe7e45122c /lib/inets/test/inets_test_lib.erl
parent3d639df53de38e398a208f4f57cc9a7969733c63 (diff)
downloadotp-3f61f4daccc11658e838771b696c205fccac709e.tar.gz
otp-3f61f4daccc11658e838771b696c205fccac709e.tar.bz2
otp-3f61f4daccc11658e838771b696c205fccac709e.zip
Add connect timeout
Diffstat (limited to 'lib/inets/test/inets_test_lib.erl')
-rw-r--r--lib/inets/test/inets_test_lib.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inets/test/inets_test_lib.erl b/lib/inets/test/inets_test_lib.erl
index ef6529025f..e7c44391c7 100644
--- a/lib/inets/test/inets_test_lib.erl
+++ b/lib/inets/test/inets_test_lib.erl
@@ -531,7 +531,7 @@ connect(ip_comm, Host, Port, Opts, Type) ->
"~n Opts: ~p"
"~n Type: ~p", [Host, Port, Opts, Type]),
- case gen_tcp:connect(Host, Port, Opts) of
+ case gen_tcp:connect(Host, Port, Opts, timer:seconds(10)) of
{ok, Socket} ->
tsp("connect success"),
{ok, Socket};