From 5ada450fe10a5fc51b7f3f0900571a10547635a1 Mon Sep 17 00:00:00 2001 From: "j.uhlig" Date: Tue, 26 Jun 2018 17:07:13 +0200 Subject: Introduce Transport:handshake/1,2 This commit deprecates Transport:accept_ack/1 in favor of a new forward-compatible function. Transport:handshake/1,2 will use ssl:handshake/2,3 from Ranch 2.0 onward. --- test/remove_conn_and_wait_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/remove_conn_and_wait_protocol.erl') diff --git a/test/remove_conn_and_wait_protocol.erl b/test/remove_conn_and_wait_protocol.erl index db688ff..59cedfc 100644 --- a/test/remove_conn_and_wait_protocol.erl +++ b/test/remove_conn_and_wait_protocol.erl @@ -9,7 +9,7 @@ start_link(Ref, _, _, [{remove, MaybeRemove, Timeout}]) -> {ok, Pid}. init(Ref, MaybeRemove, Timeout) -> - ranch:accept_ack(Ref), + {ok, _} = ranch:handshake(Ref), case MaybeRemove of true -> ranch:remove_connection(Ref); -- cgit v1.2.3