mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Merge branch 'websocket_terminate_not_called' of git://github.com/dergraf/cowboy
This commit is contained in:
commit
d2ccd2e090
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ websocket_handshake(State=#state{socket=Socket, transport=Transport,
|
|||
handler_before_loop(State#state{messages=Transport:messages()},
|
||||
Req4, HandlerState, <<>>);
|
||||
_Any ->
|
||||
closed %% If an error happened reading the body, stop there.
|
||||
%% If an error happened reading the body, stop there.
|
||||
handler_terminate(State, Req3, HandlerState, {error, closed})
|
||||
end;
|
||||
websocket_handshake(State=#state{transport=Transport, challenge=Challenge},
|
||||
Req, HandlerState) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue