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

Merge branch 'websocket_terminate_not_called' of git://github.com/dergraf/cowboy

This commit is contained in:
Loïc Hoguin 2012-12-07 16:35:40 +01:00
commit d2ccd2e090

View file

@ -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) ->