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:
parent
d1b65a67cf
commit
af88442610
2 changed files with 198 additions and 508 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue