[rabbitmq-discuss] Question about rabbit_reader.erl

Matthias Radestock matthias at lshift.net
Fri Sep 11 01:23:54 BST 2009


Erik,

Erik Rigtorp wrote:
> I'm curious about why prim_inet:async_recv() is being used instead of
> active mode.

{active,once} provides no control over PDU size.
{active,true} provides no flow control.
gen_tcp:recv() is blocking.

With prim_inet:async_recv() we can receive exactly the amount of data we 
want, asynchronously.


Regards,

Matthias.




More information about the rabbitmq-discuss mailing list