aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_tcp.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-05-09 10:18:53 +0200
committerLoïc Hoguin <[email protected]>2019-05-09 10:47:14 +0200
commite92171a8f80755dad795691ad9e07807212d0d1c (patch)
treecc3ff85ea7b057fa923219a6bf6897f16d09bfa0 /src/ranch_tcp.erl
parent34758e99d52f45fcdf86833574ca2972c130bd4d (diff)
downloadranch-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_tcp.erl')
-rw-r--r--src/ranch_tcp.erl6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl
index 365af26..129202d 100644
--- a/src/ranch_tcp.erl
+++ b/src/ranch_tcp.erl
@@ -21,7 +21,6 @@
-export([listen/1]).
-export([disallowed_listen_options/0]).
-export([accept/2]).
--export([accept_ack/2]).
-export([handshake/3]).
-export([connect/3]).
-export([connect/4]).
@@ -101,11 +100,6 @@ disallowed_listen_options() ->
accept(LSocket, Timeout) ->
gen_tcp:accept(LSocket, Timeout).
--spec accept_ack(inet:socket(), timeout()) -> ok.
-accept_ack(CSocket, Timeout) ->
- {ok, _} = handshake(CSocket, [], Timeout),
- ok.
-
-spec handshake(inet:socket(), opts(), timeout()) -> {ok, inet:socket()}.
handshake(CSocket, _, _) ->
{ok, CSocket}.