[erlang-questions] Wondering on active TCP socket

Kaiduan Xie <>
Thu Aug 12 16:58:46 CEST 2010


Nahuel, thank you for the insightful clarification.

How erlang VM retrieve packet from TCP stack for active socket? Does
it retrieve the packet, wrap it as a message and send to the
controlling process every time underlying OS TCP stack receives a
packet (here packet is a stream of bytes) from network? Where can I
find more information? Which moudles/source files?

Thanks,

On Thu, Aug 12, 2010 at 10:00 AM, Nahuel Greco <> wrote:
> On Thu, Aug 12, 2010 at 10:51 AM, Kaiduan Xie <> wrote:
>> For this case, I think that the flow control of underlying OS TCP
>> stack will kick in, and the sender can not send more packets. How the
>> system can be flooded with messages in erlang?
>>
>
> The flow control of the TCP stack will not kick in, because the OS
> process (the Erlang VM) already consumed the data from the TCP
> incoming buffer, that consumed data will sit in the controlling
> process message queue, inside the VM.
>
> Saludos,
> Nahuel Greco.
>


More information about the erlang-questions mailing list