0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Remove NumAcceptors argument from start_clear/tls

They are now cowboy:start_clear/3 and cowboy:start_tls/3.
The NumAcceptors argument can be specified via the
num_acceptor transport option. Ranch has been updated
to 1.4.0 to that effect.
This commit is contained in:
Loïc Hoguin 2017-06-07 15:15:54 +02:00
parent 767da623f1
commit 6f7b59886e
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
30 changed files with 45 additions and 83 deletions

View file

@ -49,7 +49,7 @@ inactivity_timeout(Config) ->
env => #{dispatch => cowboy_router:compile(init_routes(Config))},
inactivity_timeout => 1000
},
{ok, _} = cowboy:start_clear(Ref, 100, [{port, 0}], ProtoOpts),
{ok, _} = cowboy:start_clear(Ref, [{port, 0}], ProtoOpts),
Port = ranch:get_port(Ref),
SocketConfig = [{type, tcp}, {protocol, http}, {port, Port}, {opts, []}|Config],
{ok, Socket} = do_handshake(SocketConfig),