Date: Tue, 30 Nov 2021 05:12:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260126] syslog(3) spins the CPU with 4180 byte messages Message-ID: <bug-260126-227-QVKp7P3qUM@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-260126-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260126 --- Comment #3 from Alan Somers <asomers@FreeBSD.org> --- There's nothing wrong with SO_RCVBUF=4kB. That's the default, and rsyslogd never changes it. I think the solution is to: 1) Change syslog(3)'s MAXLINE to 4kB, so it's the same as the default SO_RCVBUF 2) Maybe change the loop around ENOBUFS in vsyslog1, but no change is obviously correct. Perhaps fail fast if cnt > 1024, or perhaps query the socket's true sockbuf size, but I'm not sure how to do that. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260126-227-QVKp7P3qUM>
