aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-08-20 14:28:16 +0200
committerLoïc Hoguin <[email protected]>2015-08-20 14:28:16 +0200
commitc867ec582d445b251ff659ba23f522b5278d5119 (patch)
tree50efcb176bc97207ed06a536acd2f7c56db9db98 /src/ranch_protocol.erl
parent32e4ebef2ce16b2b1fce2a4af7bb2bd7ef17f235 (diff)
downloadranch-c867ec582d445b251ff659ba23f522b5278d5119.tar.gz
ranch-c867ec582d445b251ff659ba23f522b5278d5119.tar.bz2
ranch-c867ec582d445b251ff659ba23f522b5278d5119.zip
Add tests and more docs about separate supervisor/connection
Diffstat (limited to 'src/ranch_protocol.erl')
-rw-r--r--src/ranch_protocol.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ranch_protocol.erl b/src/ranch_protocol.erl
index 397b227..1f70962 100644
--- a/src/ranch_protocol.erl
+++ b/src/ranch_protocol.erl
@@ -20,4 +20,5 @@
Socket::any(),
Transport::module(),
ProtocolOptions::any())
- -> {ok, ConnectionPid::pid()}.
+ -> {ok, ConnectionPid::pid()}
+ | {ok, SupPid::pid(), ConnectionPid::pid()}.