aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_websocket.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-08-15 18:06:16 +0200
committerLoïc Hoguin <[email protected]>2016-08-15 18:06:16 +0200
commitaf88442610f9f0cc3ec620bbae9ad90f940a8176 (patch)
tree1058b26ac6e75bb984b3fc71e8ee1aaaa81ac16d /src/cowboy_websocket.erl
parentd1b65a67cf093160c383071ef1bb40b0fc096d88 (diff)
downloadcowboy-af88442610f9f0cc3ec620bbae9ad90f940a8176.tar.gz
cowboy-af88442610f9f0cc3ec620bbae9ad90f940a8176.tar.bz2
cowboy-af88442610f9f0cc3ec620bbae9ad90f940a8176.zip
Modernize the Websocket test suite
Diffstat (limited to 'src/cowboy_websocket.erl')
-rw-r--r--src/cowboy_websocket.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl
index 7971442..e7736fa 100644
--- a/src/cowboy_websocket.erl
+++ b/src/cowboy_websocket.erl
@@ -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;