From 8366ba94bb9e450221a246acdd482c0162affcd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 8 Apr 2015 23:34:08 +0300 Subject: Use maps for and improve options The type option has been removed. The transport and protocols options can be used in its place. The transport_opts option can be used to specify transport options. The http_opts and spdy_opts options can be used to specify protocol specific options. The keepalive option is now a protocol specific option. Defaults depending on the port number have changed. Now only port 443 uses ssl by default, other ports use tcp. --- test/ws_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ws_SUITE.erl') diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl index 82f3632..2310b31 100644 --- a/test/ws_SUITE.erl +++ b/test/ws_SUITE.erl @@ -140,7 +140,7 @@ log_output() -> ok. connect(Path) -> - {ok, Pid} = gun:open("127.0.0.1", 33080, [{type, tcp}, {retry, 0}]), + {ok, Pid} = gun:open("127.0.0.1", 33080, #{retry=>0}), Ref = monitor(process, Pid), gun:ws_upgrade(Pid, Path, [], #{compress => true}), receive -- cgit v1.2.3