mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Merge the two separate receive loops in cowboy_websocket
Also rename a bunch of functions to make the code easier to read.
This commit is contained in:
parent
31092b546c
commit
21c9c66971
2 changed files with 109 additions and 103 deletions
|
@ -112,9 +112,6 @@ proc_lib_initial_call_tls(Config) ->
|
|||
%% so that it doesn't eat up system messages. It should only
|
||||
%% flush messages that are specific to cowboy_http.
|
||||
|
||||
%% @todo The cowboy_websocket module needs to have the functions
|
||||
%% handler_loop and websocket_payload_loop merged into one.
|
||||
|
||||
bad_system_from_h1(Config) ->
|
||||
doc("h1: Sending a system message with a bad From value results in a process crash."),
|
||||
{ok, Socket} = gen_tcp:connect("localhost", config(clear_port, Config), [{active, false}]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue