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

add a stat for packets dropped from socket receive buffer #214

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

jthomas43
Copy link
Contributor

Adds a new socket stat "packets_dropped_by_kernel" to track the number of packets that have been dropped from the socket receive buffer over the lifetime of the socket.

This uses the Linux-only socket option SO_RXQ_OVFL, on other platform this stat is set to -1. nevertheless it may be useful to track.

@mafintosh mafintosh merged commit 19e0a36 into holepunchto:main Nov 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants