From 5964273cc4354b7378b8bdf49fe455d2b46d7c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 26 Mar 2018 18:49:09 +0200 Subject: Fix the flushing of messages when switching to Websocket We now flush messages that are specific to cowboy_http only. Stream handlers should also flush their own specific messages if necessary, although timeouts will be flushed regardless of where they originate from. Also renames the http_SUITE to old_http_SUITE to distinguish new tests from old tests. Most old tests need to be removed or converted eventually as they're legacy tests from Cowboy 1.0. --- test/sys_SUITE.erl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'test/sys_SUITE.erl') diff --git a/test/sys_SUITE.erl b/test/sys_SUITE.erl index bb77ede..b692521 100644 --- a/test/sys_SUITE.erl +++ b/test/sys_SUITE.erl @@ -108,10 +108,6 @@ proc_lib_initial_call_tls(Config) -> %% the receiving process module. When a system message is received, %% function handle_system_msg/6 is called to handle the request. -%% @todo The flush/0 function in cowboy_http needs to be fixed -%% so that it doesn't eat up system messages. It should only -%% flush messages that are specific to cowboy_http. - 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}]), -- cgit v1.2.3