mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Ensure HTTP/1.1 Websocket resets the trap_exit flag
While we are identified as a supervisor in the tree, we no longer manage children processes at that point, so do not need to trap exit signals. Users can still enable trap_exit if they prefer to.
This commit is contained in:
parent
9784179498
commit
c1490d7d55
5 changed files with 17 additions and 2 deletions
|
@ -341,6 +341,7 @@ ws_first_frame_with_handshake(Config) ->
|
|||
{ok, <<1:1, 0:3, 1:4, 0:1, 5:7, "Hello">>} = gen_tcp:recv(Socket, 0, 6000),
|
||||
ok.
|
||||
|
||||
%% @todo Move these tests to ws_handler_SUITE.
|
||||
ws_init_return_ok(Config) ->
|
||||
doc("Handler does nothing."),
|
||||
{ok, Socket, _} = do_handshake("/ws_init?ok", Config),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue