mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Update Ranch to 0.8.0
This commit is contained in:
parent
ce1d8862c0
commit
2b56bb498f
6 changed files with 13 additions and 13 deletions
|
@ -63,8 +63,8 @@
|
|||
| {suspend, module(), atom(), [any()]}
|
||||
when Req::cowboy_req:req(), Env::cowboy_middleware:env().
|
||||
upgrade(Req, Env, Handler, HandlerOpts) ->
|
||||
{_, ListenerPid} = lists:keyfind(listener, 1, Env),
|
||||
ranch_listener:remove_connection(ListenerPid),
|
||||
{_, Ref} = lists:keyfind(listener, 1, Env),
|
||||
ranch:remove_connection(Ref),
|
||||
[Socket, Transport] = cowboy_req:get([socket, transport], Req),
|
||||
State = #state{env=Env, socket=Socket, transport=Transport,
|
||||
handler=Handler, handler_opts=HandlerOpts},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue