0
Fork 0
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:
Loïc Hoguin 2018-03-23 16:32:53 +01:00
parent 31092b546c
commit 21c9c66971
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 109 additions and 103 deletions

View file

@ -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}]),