From owner-freebsd-stable Sat Oct 26 10: 2:20 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C89D137B401 for ; Sat, 26 Oct 2002 10:02:18 -0700 (PDT) Received: from grosbein.pp.ru (www2.svzserv.kemerovo.su [213.184.65.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEABF43E65 for ; Sat, 26 Oct 2002 10:02:15 -0700 (PDT) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (smmsp@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.6/8.12.5) with ESMTP id g9QH2AEs001943 for ; Sun, 27 Oct 2002 01:02:10 +0800 (KRAST) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.6/8.12.6/Submit) id g9QH0dWQ001873 for freebsd-stable@FreeBSD.ORG; Sun, 27 Oct 2002 01:00:39 +0800 (KRAST) Date: Sun, 27 Oct 2002 01:00:39 +0800 From: Eugene Grosbein To: freebsd-stable@FreeBSD.ORG Subject: Re: increasing MAXLINE for syslog Message-ID: <20021027010039.A228@grosbein.pp.ru> References: <20021026224646.A362@grosbein.pp.ru> <200210261527.g9QFR3G9034511@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200210261527.g9QFR3G9034511@lurza.secnetix.de>; from olli@secnetix.de on Sat, Oct 26, 2002 at 05:27:03PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Oct 26, 2002 at 05:27:03PM +0200, Oliver Fromme wrote: > Okay, looks good. > > The syslog(3) function (which is used for local logging > by logger(1)) opens a UNIX-domain socket to syslogd and > then send(2)s the message to it. The socket(2) manpage > says: > > A SOCK_DGRAM socket supports datagrams (connectionless, > unreliable messages of a fixed (typically small) maximum > length). > > And the send(2) manpage: > > If the message is too long to pass atomically through the > underlying protocol, the error EMSGSIZE is returned, and > the message is not transmitted. > > $ sysctl net.local.dgram.maxdgram > net.local.dgram.maxdgram: 2048 > > That would explain that there is a limit, although it is > 2 Kb, not 1 Kb ... At least on my machine here. Increasing net.local.dgram.maxdgram to 10240 doesn't help either :-( > BTW: > > - char *stdp, tbuf[2048], fmt_cpy[1024], timbuf[26]; > > + char *stdp, tbuf[MAXLINE], fmt_cpy[MAXLINE], timbuf[26]; > > Note that tbuf should be 1024 bytes larger than fmt_cpy, > to account for %m expansions in the message. Yes, but that's not a case. BTW, what is default size of send/receive socket buffer size that can be changed using SO_SNDBUF/SO_RVCBUF options of setsockopt() ? May this be the issue? Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message