diff options
author | Loïc Hoguin <[email protected]> | 2019-05-09 10:18:53 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-05-09 10:47:14 +0200 |
commit | e92171a8f80755dad795691ad9e07807212d0d1c (patch) | |
tree | cc3ff85ea7b057fa923219a6bf6897f16d09bfa0 /src/ranch.erl | |
parent | 34758e99d52f45fcdf86833574ca2972c130bd4d (diff) | |
download | ranch-e92171a8f80755dad795691ad9e07807212d0d1c.tar.gz ranch-e92171a8f80755dad795691ad9e07807212d0d1c.tar.bz2 ranch-e92171a8f80755dad795691ad9e07807212d0d1c.zip |
Use ssl:handshake instead of ssl:ssl_accept
This makes Ranch require OTP-21+. The function ranch:accept_ack/1
was also removed in this commit.
Diffstat (limited to 'src/ranch.erl')
-rw-r--r-- | src/ranch.erl | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/ranch.erl b/src/ranch.erl index 0229163..4198997 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -20,7 +20,6 @@ -export([suspend_listener/1]). -export([resume_listener/1]). -export([child_spec/5]). --export([accept_ack/1]). -export([handshake/1]). -export([handshake/2]). -export([recv_proxy_header/2]). @@ -44,8 +43,6 @@ -export([require/1]). -export([log/4]). --deprecated([accept_ack/1]). - -type max_conns() :: non_neg_integer() | infinity. -export_type([max_conns/0]). @@ -145,11 +142,6 @@ child_spec(Ref, Transport, TransOpts0, Protocol, ProtoOpts) -> Ref, Transport, TransOpts, Protocol, ProtoOpts ]}, permanent, infinity, supervisor, [ranch_listener_sup]}. --spec accept_ack(ref()) -> ok. -accept_ack(Ref) -> - {ok, _} = handshake(Ref), - ok. - -spec handshake(ref()) -> {ok, ranch_transport:socket()}. handshake(Ref) -> handshake(Ref, []). |