Date: Thu, 2 Dec 2021 13:00:55 -0800 From: Gleb Smirnoff <glebius@freebsd.org> To: Alan Somers <asomers@freebsd.org> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 943c446629e3 - main - Revert "libc: Some enhancements to syslog(3)" Message-ID: <Yak0B7h4Iow4IzDl@FreeBSD.org> In-Reply-To: <202111301812.1AUICgqZ088428@gitrepo.freebsd.org> References: <202111301812.1AUICgqZ088428@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 30, 2021 at 06:12:42PM +0000, Alan Somers wrote: A> Revert "libc: Some enhancements to syslog(3)" A> A> This reverts commit 2886c93d1bca231260ebc01d4205743ca781f3c7. A> The original commit has two problems: A> A> * It sets SO_SNDBUF to be as large as MAXLINE. But for unix domain A> sockets, the send buffer is bypassed. Packets go directly to the A> peer's receive buffer, so setting and querying SO_SNDBUF is A> ineffective. To ensure that the socket can accept messages of a A> certain size, it would be necessary to add a SO_PEERRCVBUF socket A> option that could query the connected peer's receive buffer size. I'd rather say we don't need SO_PEERRCVBUF. The SO_SNDBUF on AF_UNIX should transparently to the application look and report peer's receive buffer. -- Gleb Smirnoff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Yak0B7h4Iow4IzDl>