[erlang-questions] why is gen_tcp:send slow?

Per Hedeland <>
Thu Jun 26 14:42:09 CEST 2008


Johnny Billquist <> wrote:
>
>Do the erlang system turn off the nagle algorithm, or force TCP to push 
>packets?

No - i.e. gen_tcp/inet_drv doesn't (you can turn off Nagle with the
'nodelay' option).

> Otherwise the underlying tcp layer should not be sending small 
>packets at a high pace.

True. This wasn't a "high pace" though (3-4 packets/s), but of course
one has to wonder why this was happening in the first place - possibly
the "messages" to be sent were just "naturally" spaced far enough apart
to defeat Nagle.

--Per



More information about the erlang-questions mailing list