diff options
author | Loïc Hoguin <[email protected]> | 2019-05-09 10:43:25 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-05-09 10:47:15 +0200 |
commit | 3ea575d8682560fc02d5583cbf2837e2f2f43e9f (patch) | |
tree | a20024277c5bad93fd05d9a32013ecabfeddd485 /doc/src/manual | |
parent | e92171a8f80755dad795691ad9e07807212d0d1c (diff) | |
download | ranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.tar.gz ranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.tar.bz2 ranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.zip |
Remove Socket argument from ranch_protocol:start_link
Diffstat (limited to 'doc/src/manual')
-rw-r--r-- | doc/src/manual/ranch.handshake.asciidoc | 5 | ||||
-rw-r--r-- | doc/src/manual/ranch_protocol.asciidoc | 8 |
2 files changed, 4 insertions, 9 deletions
diff --git a/doc/src/manual/ranch.handshake.asciidoc b/doc/src/manual/ranch.handshake.asciidoc index c8a6ee9..5d2694c 100644 --- a/doc/src/manual/ranch.handshake.asciidoc +++ b/doc/src/manual/ranch.handshake.asciidoc @@ -24,11 +24,6 @@ handshake necessary to give control of the socket to this process and also does the transport handshake, for example setting up the TLS connection. -Currently the socket can be obtained from a -`Protocol:start_link/4` argument and as a return value -from `ranch:handshake/1,2`. In Ranch 2.0 the socket will -only be available from `ranch:handshake/1,2`. - == Arguments Ref:: diff --git a/doc/src/manual/ranch_protocol.asciidoc b/doc/src/manual/ranch_protocol.asciidoc index 8e8c0e0..5a94399 100644 --- a/doc/src/manual/ranch_protocol.asciidoc +++ b/doc/src/manual/ranch_protocol.asciidoc @@ -16,7 +16,6 @@ Ranch protocols implement the following interface: [source,erlang] ---- start_link(Ref :: ranch:ref(), - _, Transport :: module(), ProtoOpts :: any()) -> {ok, ConnPid :: pid()} @@ -46,9 +45,10 @@ processes and degrade performance severely. == Changelog -* *1.6*: The second argument `Socket` was deprecated and will - be removed in Ranch 2.0. The socket should be obtained - by calling link:man:ranch:handshake(3)[ranch:handshake(3)]. +* *2.0*: The second argument `Socket` was removed. +* *1.6*: The second argument `Socket` was deprecated. Call + link:man:ranch:handshake(3)[ranch:handshake(3)] + to obtain the socket. == See also |