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

Rate limit UDP output #11

Closed
andrewkroh opened this issue Feb 26, 2021 · 0 comments · Fixed by #12
Closed

Rate limit UDP output #11

andrewkroh opened this issue Feb 26, 2021 · 0 comments · Fixed by #12
Labels
bug Something isn't working

Comments

@andrewkroh
Copy link
Member

The UDP output will dump all data as fast as possible. It will overload buffers of the recipient resulting in data loss. The output implementation should have some rate limit that's configurable (e.g. 500 KiB/sec).

There's a TODO here, but that's probably not the correct place for the logic as it would only apply to PCAP.

https://github.com/andrewkroh/stream/blob/7e151a6c712c398d433bc30cb9cd92c0d80959e6/command/pcap.go#L77

@andrewkroh andrewkroh added the bug Something isn't working label Feb 26, 2021
andrewkroh added a commit that referenced this issue Feb 26, 2021
andrewkroh added a commit that referenced this issue Feb 26, 2021
andrewkroh added a commit that referenced this issue Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant