diff options
author | Micael Karlberg <bmk@erlang.org> | 2012-07-24 12:57:20 +0200 |
---|---|---|
committer | Micael Karlberg <bmk@erlang.org> | 2012-07-24 12:57:20 +0200 |
commit | 3f61f4daccc11658e838771b696c205fccac709e (patch) | |
tree | 7ae20b7e6382d471367f8e75b2992ffe7e45122c /lib/inets | |
parent | 3d639df53de38e398a208f4f57cc9a7969733c63 (diff) | |
download | otp-3f61f4daccc11658e838771b696c205fccac709e.tar.gz otp-3f61f4daccc11658e838771b696c205fccac709e.tar.bz2 otp-3f61f4daccc11658e838771b696c205fccac709e.zip |
Add connect timeout
Diffstat (limited to 'lib/inets')
-rw-r--r-- | lib/inets/test/inets_test_lib.erl | 2 |
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}; |