From nobody Tue Jan 25 12:22:47 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 18B23196F59B for ; Tue, 25 Jan 2022 12:22:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjmFy5tm6z3GCG for ; Tue, 25 Jan 2022 12:22:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB2501A8D for ; Tue, 25 Jan 2022 12:22:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20PCMkfs014061 for ; Tue, 25 Jan 2022 12:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20PCMkcg014060 for bugs@FreeBSD.org; Tue, 25 Jan 2022 12:22:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260116] [sctp] POLLOUT/EVFILT_WRITE is always true for poll/kqueue Date: Tue, 25 Jan 2022 12:22:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bjorn.a.svensson@est.tech X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643113366; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dRH/5W9/IAJLhn2wbx5mQ2aKRjTbGo/zRYDeLu6F6RQ=; b=uZOk8Pn0tNfMI9sQtQLxhuQVJLAuo/r4wK8mNHwoERa4H40psCnrYxgwvIHbqYk5IazspU CULIkeMLWrh2P+MvDHRiDAEneDpny6QqU5VINYikQ5WWwkS/PkEM+jtP8UU8Qw2eeBNMq0 jARSGpCaBQVJsyCoQAFm+edCuNi8DLrH7KZAThvufMMyvxWLeRA9ETJB5hOd34h6/OU/tb pW5mVJUsD12GC1iDN2YiF5o74U1PosqJ/nEGTxB9NMuEBgPjRXgQDXhuBMrIj5zxkNO7fK XgK6URJnWiDOzxG1PZLf++GRvNGLZX9mSksaUbLAbUX0c80zbXSYbJ2/ClFagQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643113366; a=rsa-sha256; cv=none; b=RVxMNkgdq53AmK8EQlH9BZidAhab5r4oRpCXCm2dMCI3N7AVmSKwZYBE1Fs1Bm5YTV3298 VCxPMxWig6R3DUl5OpDossE+OVsjpuO4CSA3UhgGy42eFO7H0HqLo0BflZNK+anY+2FVQ2 YDNEG4uxm/ZhbZI2pBr720elpL7ewg4qs2B16PpkPveSOCy45S/QFZU9bvl0CZq6cX3wp4 TL8Uf7/yz+iR3ulde7ck3nrGSMC30jpE43GC2L3Dj+Nyvo6Wwgx02hjPtSwYShRUGfUr8/ ryxW1HCxbnVgAgH8d98k/jUPqZH6/bXEWUrK905dgW7rhDClaY/+ARLqgXq9YQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260116 --- Comment #6 from Bj=C3=B6rn Svensson --- (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.=