Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2022 12:22:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260116] [sctp] POLLOUT/EVFILT_WRITE is always true for poll/kqueue
Message-ID:  <bug-260116-227-wNLTKzSBQN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260116-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260116-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260116

--- Comment #6 from Bj=C3=B6rn 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 notificatio=
ns.

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 si=
nce
otherwise select() is not working.

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260116-227-wNLTKzSBQN>