[Bug 260116] [sctp] POLLOUT/EVFILT_WRITE is always true for poll/kqueue

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Jan 2022 12:22:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260116

--- Comment #6 from Björn Svensson <bjorn.a.svensson@est.tech> ---
(In reply to Michael Tuexen from comment #5)
I'm trying to fix the problem that a sctp socket is not indicating that the
sendbuffer is full when polling the socket, or via kernel event notifications.

The finding is that both counters sb_ccc and sb_acc is needed to be updated in
a socketbuffer since they have different users in the framework/system.

sb_ccc is checked when polling the socket, but only sb_acc is updated.
There is a comment at the sb_cc define that it needs to represent sb_acc since
otherwise select() is not working.

So the idea was to update both counters when the buffer is changed.

-- 
You are receiving this mail because:
You are the assignee for the bug.