Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backpressure on udp port required #1

Open
dch opened this issue Aug 28, 2013 · 1 comment
Open

backpressure on udp port required #1

dch opened this issue Aug 28, 2013 · 1 comment

Comments

@dch
Copy link
Member

dch commented Aug 28, 2013

Under high load the refcounted binaries coming in on the socket may not be GCd fast enough. It should be pretty obvious when this is the case as the VM will run out of memory and die horribly.

Use https://github.com/ferd/pobox or https://github.com/jlouis/safetyvalve

@paulperegud
Copy link

paulperegud commented May 7, 2017

There is no need to introduce explicit datagram drop to alleviate issue of inbox being unbounded. It's enough to switch socket (inet:setopts) from {active, true} to {active, 1} for processing. If datagrams will not be pulled fast enough BEAM or kernel themselves will start dropping datagrams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants