diff options
author | j.uhlig <[email protected]> | 2018-06-26 17:07:13 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-07-02 09:02:00 +0200 |
commit | 5ada450fe10a5fc51b7f3f0900571a10547635a1 (patch) | |
tree | 45ac84215485f09ebedce319121ed5f719b30493 /test/remove_conn_and_wait_protocol.erl | |
parent | caeadc82615e9e5ce0c2d92f882cad7b9cb7322d (diff) | |
download | ranch-5ada450fe10a5fc51b7f3f0900571a10547635a1.tar.gz ranch-5ada450fe10a5fc51b7f3f0900571a10547635a1.tar.bz2 ranch-5ada450fe10a5fc51b7f3f0900571a10547635a1.zip |
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.
Diffstat (limited to 'test/remove_conn_and_wait_protocol.erl')
-rw-r--r-- | test/remove_conn_and_wait_protocol.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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); |