This is used in production at Limelight Networks to monitor when a client has received all data in a socket buffer
Details
Details
- Reviewers
jmg gnn bz - Group Reviewers
network - Commits
- rS312277: Add kevent EVFILT_EMPTY for notification when a client has received all data
A test daemon with usage instructions is available at https://github.com/kev009/filtempty. You will need to rewind one commit because the last commit uses TCP_INFO additions we have not yet upstreamed.
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
Can't actually review as an author of the patch. It'd be nice if someone else can look at it.
Comment Actions
otherwise looks good.
sys/kern/uipc_socket.c | ||
---|---|---|
3364 | I'd suggest using sbused(&so->so_snd) there rather than directly accessing sb_ccc. |