From owner-freebsd-questions Tue Dec 7 15:14:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 840FB14C89 for ; Tue, 7 Dec 1999 15:14:30 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id PAA18839; Tue, 7 Dec 1999 15:43:59 -0800 (PST) Date: Tue, 7 Dec 1999 15:43:59 -0800 (PST) From: Alfred Perlstein To: Ben Smithurst Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Portmap blocking in accept() In-Reply-To: <19991207221038.A541@strontium.scientia.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What version of freebsd is this? I think this bug is fixed in newer versions (4.0) can you try ou the patch in: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/rpc/svc_tcp.c.diff?r1=1.15&r2=1.16 and see if it helps? thanks, -Alfred On Tue, 7 Dec 1999, Ben Smithurst wrote: > Does anyone know what could cause portmap to block in accept() (it > should normally block in select() from what I can tell, and this would > make more sense). It looks as though it called accept for its TCP socket > before the TCP socket was ready (looks like a bug). Because of this it > was completely ignoring all UDP requests arriving on the UDP socket, so > the machine became rather useless as an NFS server. > > I killed portmap and all RPC registered services to fix this... If I had > bothered to think for a bit longer, simply establishing a connection to > its TCP port would probably have kicked it back to life, but we never > think of the obvious thing at the time. > > (I could read through the code, but it doesn't look like the easiest > code to follow.) > > -- > Ben Smithurst | PGP: 0x99392F7D > ben@scientia.demon.co.uk | key available from keyservers and > | ben+pgp@scientia.demon.co.uk > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -Alfred Perlstein - [bright@rush.net|alfred@freebsd.org] Wintelcom systems administrator and programmer - http://www.wintelcom.net/ [bright@wintelcom.net] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message