diff options
author | Loïc Hoguin <[email protected]> | 2013-12-07 13:40:37 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-12-07 13:40:37 +0100 |
commit | 7194df4568e66c1f2fee86816ace3308ec9eb302 (patch) | |
tree | a0846353b35d02b536ecf72b88163ad6a968daad /src/ranch.erl | |
parent | 6a5015fedd0f85388144de7b8a6ed7d883da5e1a (diff) | |
download | ranch-7194df4568e66c1f2fee86816ace3308ec9eb302.tar.gz ranch-7194df4568e66c1f2fee86816ace3308ec9eb302.tar.bz2 ranch-7194df4568e66c1f2fee86816ace3308ec9eb302.zip |
Gracefully shutdown when stop_listener/1 is called
Implements the `shutdown` option as documented previously.
Diffstat (limited to 'src/ranch.erl')
-rw-r--r-- | src/ranch.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch.erl b/src/ranch.erl index 9bcd328..641fc4d 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -120,7 +120,7 @@ child_spec(Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts) andalso is_atom(Protocol) -> {{ranch_listener_sup, Ref}, {ranch_listener_sup, start_link, [ Ref, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts - ]}, permanent, 5000, supervisor, [ranch_listener_sup]}. + ]}, permanent, infinity, supervisor, [ranch_listener_sup]}. %% @doc Acknowledge the accepted connection. %% |