0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Modernize the Websocket test suite

This commit is contained in:
Loïc Hoguin 2016-08-15 18:06:16 +02:00
parent d1b65a67cf
commit af88442610
2 changed files with 198 additions and 508 deletions

View file

@ -384,6 +384,7 @@ websocket_send(Frame, #state{socket=Socket, transport=Transport, extensions=Exte
websocket_send_many([], _) ->
ok;
websocket_send_many([Frame|Tail], State) ->
%% @todo Send the frames all in one larger TCP packet rather than potentially many small.
case websocket_send(Frame, State) of
ok -> websocket_send_many(Tail, State);
stop -> stop;