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

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 08 Feb 2022 17:47:03 UTC

Björn Svensson <bjorn.a.svensson@est.tech> changed:

           What    |Removed                     |Added
 Attachment #231307|0                           |1
        is obsolete|                            |

--- Comment #7 from Björn Svensson <bjorn.a.svensson@est.tech> ---
Created attachment 231650
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231650&action=edit
Proposed patch v2

Updated the proposed patch; removed changes that was found to not be required.

The patch (still) adds a new macro which makes sure that a sockets sendbuffer
counters sb_ccc and sb_acc are both updated for 1-to-1 style sockets.

Both counters are needed when the socket API is used with poll()/kevent() since
the sb_ccc counter is used to determine if the sendbuffer is full, and the
sb_acc counter in other cases.

This will correct the problem that an 1-to-1 style SCTP socket always is
indicated to be writeable.

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