[erlang-questions] Tail recursion and memory leak

Peter Lemenkov <>
Thu Mar 29 14:42:27 CEST 2007


> Is it possible that your destination is responding to you and those
> messages are stacking up in you r message queue? The way you have
> opened your UDP socket, the {active, true} option would be set by
> default on your socket and any UDP packets arriving will be delivered
> to your process message queue.
>
> Repeat the experiment by opening the socket as follows:
>
> gen_udp:open(3456, [{active, false}]).

Thanks, Chandru! It solves the problem!
-- 
With best regards!



More information about the erlang-questions mailing list