[erlang-questions] gen_tcp/ssl send function and large binaries, should I split?
Benoit Chesneau
bchesneau@REDACTED
Mon Dec 30 12:58:40 CET 2013
Hi all,
Actually when I send a large binary I split it chunk of 64MB and loop until
the end:
send(<<Data:65536000/binary, Rest/binary >>, Transport, Socket) ->
Transport:send(Socket, Data);
send(Data, Transport, Socket) ->
Transport:send(Socket, Data).
But I wonder if it's really useful, Does gen_tcp:semd and ssl:send take
care about it? Should I just use `Transport:send(Socket, Data)` ?
- benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131230/d9711a61/attachment.htm>
More information about the erlang-questions
mailing list