diff options
author | Loïc Hoguin <[email protected]> | 2012-07-25 11:40:30 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-07-25 21:26:15 +0200 |
commit | 7d52280c2e3fcc9e1b89435c98ef96d4758aed7a (patch) | |
tree | 0aed63afc8c19c822748ef439c65239a8f4e707d /src/ranch_listener_sup.erl | |
parent | 1d2940b37917a9217338caa4dea37890ac5b96d3 (diff) | |
download | ranch-7d52280c2e3fcc9e1b89435c98ef96d4758aed7a.tar.gz ranch-7d52280c2e3fcc9e1b89435c98ef96d4758aed7a.tar.bz2 ranch-7d52280c2e3fcc9e1b89435c98ef96d4758aed7a.zip |
Make acceptors query the protocol opts on startup
This way, if a crash happens in one of them after a protocol options
upgrade has occured, the restarted acceptor will get the upgraded
options as expected, and not the initial ones.
Diffstat (limited to 'src/ranch_listener_sup.erl')
-rw-r--r-- | src/ranch_listener_sup.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_listener_sup.erl b/src/ranch_listener_sup.erl index 6adf618..de35758 100644 --- a/src/ranch_listener_sup.erl +++ b/src/ranch_listener_sup.erl @@ -39,7 +39,7 @@ start_link(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) -> {ok, _PoolPid} = supervisor:start_child(SupPid, {ranch_acceptors_sup, {ranch_acceptors_sup, start_link, [ Ref, NbAcceptors, Transport, TransOpts, - Protocol, ProtoOpts, ListenerPid, ConnsPid + Protocol, ListenerPid, ConnsPid ]}, permanent, 5000, supervisor, [ranch_acceptors_sup]}), {ok, SupPid}. |