From 30604262b5934b38e9f55f0d3ef44f8aed5310de Mon Sep 17 00:00:00 2001 From: juhlig Date: Mon, 27 May 2019 15:20:37 +0200 Subject: Use transport options in ranch_transport:listen/1 callbacks The callback `ranch_transport:listen/1` has changed to accept a map of transport options instead of socket options. --- test/sendfile_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/sendfile_SUITE.erl b/test/sendfile_SUITE.erl index 5a6d2cb..97716f7 100644 --- a/test/sendfile_SUITE.erl +++ b/test/sendfile_SUITE.erl @@ -270,7 +270,7 @@ do_ssl_chunk_size(Config) -> sockets(Config) -> Transport = config(transport, Config), TransportOpts = config(transport_opts, Config), - {ok, LSocket} = Transport:listen(TransportOpts), + {ok, LSocket} = Transport:listen(#{socket_opts => TransportOpts}), {ok, {_, Port}} = Transport:sockname(LSocket), Self = self(), Fun = fun() -> -- cgit v1.2.3