mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Use the correct process type for clear connections
This commit is contained in:
parent
fb6940599c
commit
d19134b02e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
cowboy_protocol:opts()) -> {ok, pid()} | {error, any()}.
|
cowboy_protocol:opts()) -> {ok, pid()} | {error, any()}.
|
||||||
start_clear(Ref, NbAcceptors, TransOpts0, ProtoOpts)
|
start_clear(Ref, NbAcceptors, TransOpts0, ProtoOpts)
|
||||||
when is_integer(NbAcceptors), NbAcceptors > 0 ->
|
when is_integer(NbAcceptors), NbAcceptors > 0 ->
|
||||||
TransOpts = TransOpts0,%[connection_type(ProtoOpts)|TransOpts0],
|
TransOpts = [connection_type(ProtoOpts)|TransOpts0],
|
||||||
ranch:start_listener(Ref, NbAcceptors, ranch_tcp, TransOpts, cowboy_clear, ProtoOpts).
|
ranch:start_listener(Ref, NbAcceptors, ranch_tcp, TransOpts, cowboy_clear, ProtoOpts).
|
||||||
|
|
||||||
-spec start_tls(ranch:ref(), non_neg_integer(), ranch_ssl:opts(), opts()) -> {ok, pid()} | {error, any()}.
|
-spec start_tls(ranch:ref(), non_neg_integer(), ranch_ssl:opts(), opts()) -> {ok, pid()} | {error, any()}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue