[Bug 260126] syslog(3) spins the CPU with 4180 byte messages
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260126] syslog(3) spins the CPU with 4180 byte messages"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Nov 2021 05:12:59 UTC
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.