[erlang-questions] gen_tcp receving slow
Per Hedeland
per@REDACTED
Tue Sep 25 14:38:12 CEST 2007
igwan <igwan@REDACTED> wrote:
>
>Ok, here's a simple test case in attempt to isolate the problem :
[snip]
>13> tcptest:listener(1234).
>Incoming connection accepted.
>Received 20399370 bytes in 5803.51 ms.
Interesting... - I get a similar result:
Received 20971520 bytes in 3262.23 ms.
Changed to use {active, once}:
Received 20971520 bytes in 9563.91 ms. (!)
Changed to use {active, false} and gen_tcp:recv/2:
Received 20971520 bytes in 384.559 ms.
I guess you'll need to dig deep into the inet modules and driver to
figure out why.:-)
--Per Hedeland
More information about the erlang-questions
mailing list