[erlang-questions] Wondering on active TCP socket

Juan Jose Comellas <>
Thu Aug 12 17:24:22 CEST 2010


BTW, using {active, once} every time the process is ready to receive data
from the socket would avoid flooding the process' mailbox.


On Thu, Aug 12, 2010 at 11: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.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-questions mailing list