[erlang-questions] How to handle a massive amount of UDP packets?

Johannes Huning <>
Tue Apr 17 22:45:05 CEST 2012

On 04/17/2012 08:43 PM, Chandru wrote:
> When using the {active, once} option, how much processing was the
> receiving process doing with the packet before setting {active, once}
> again? I personally wouldn't use {active, true} in a production
> environment because of its potential to clog up the system.

It's does nothing but to send the received Packet to a process which is
intended to do the actual handling, then it immediately returns to
receiving packets.

For the next sessions we're most likely to look into {active, true}
further, testing different buffer sizes et al with it to see how it behaves.

Should {active, true} prove to be the fastest way of doing planned
things, we'll implement some different means of preventing a system
lock-up :)

(Having some difficulties posting to the list, apologies for any duplicates)


More information about the erlang-questions mailing list