mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix an intermittent test issue
This commit is contained in:
parent
fad0ac8fb6
commit
5cdf78fd57
1 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@ init_dispatch(_) ->
|
||||||
cowboy_router:compile([{"localhost", [
|
cowboy_router:compile([{"localhost", [
|
||||||
{"/", hello_h, []},
|
{"/", hello_h, []},
|
||||||
{"/echo/:key", echo_h, []},
|
{"/echo/:key", echo_h, []},
|
||||||
|
{"/long_polling", long_polling_h, []},
|
||||||
{"/resp/:key[/:arg]", resp_h, []}
|
{"/resp/:key[/:arg]", resp_h, []}
|
||||||
]}]).
|
]}]).
|
||||||
|
|
||||||
|
@ -160,7 +161,7 @@ http2_empty_frame_flooding_push_promise(Config) ->
|
||||||
{<<":method">>, <<"GET">>},
|
{<<":method">>, <<"GET">>},
|
||||||
{<<":scheme">>, <<"http">>},
|
{<<":scheme">>, <<"http">>},
|
||||||
{<<":authority">>, <<"localhost">>}, %% @todo Correct port number.
|
{<<":authority">>, <<"localhost">>}, %% @todo Correct port number.
|
||||||
{<<":path">>, <<"/">>}
|
{<<":path">>, <<"/long_polling">>}
|
||||||
]),
|
]),
|
||||||
ok = gen_tcp:send(Socket, cow_http2:headers(1, nofin, HeadersBlock)),
|
ok = gen_tcp:send(Socket, cow_http2:headers(1, nofin, HeadersBlock)),
|
||||||
%% Send nofin PUSH_PROMISE frame without any data.
|
%% Send nofin PUSH_PROMISE frame without any data.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue