From owner-cvs-all@FreeBSD.ORG Thu May 29 17:49:55 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47B8937B401 for ; Thu, 29 May 2003 17:49:55 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE7C443F75 for ; Thu, 29 May 2003 17:49:54 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C62A42ED411; Thu, 29 May 2003 17:49:54 -0700 (PDT) Date: Thu, 29 May 2003 17:49:54 -0700 From: Alfred Perlstein To: Martin Blapp Message-ID: <20030530004954.GX59739@elvis.mu.org> References: <20030530014935.W94836@cvs.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030530014935.W94836@cvs.imp.ch> User-Agent: Mutt/1.4.1i cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/rpc svc_vc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 00:49:55 -0000 * Martin Blapp [030529 16:53] wrote: > > Hi, > > >"for some strange reason" > > Yeah, the comment is not quite correct. I see now EAGAIN errors, > but the first read on the socket has always 0 lenght for AF_LOCAL: > > recvmsg() = 0 > recvmsg() = 4 > recvmsg() = 92 > recvmsg() = -1, errno = 35 > recvmsg() = 0 > > in opposite to > > recvmsg() = 4 > recvmsg() = 40 > recvmsg() = -1, errno = 35 > recvmsg() = 0 If it's a kernel/socket bug we shouldn't really be working around it in userland. Is it possible that the read is happening before the socket is connected or has just been disconnected? A more detailed storyboard might get the problem fixed without what appears to be a hack/workaround in userspace. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.'