From owner-freebsd-questions Tue Dec 7 14:29:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 8CCD014EF3 for ; Tue, 7 Dec 1999 14:29:16 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.0.4] ident=ben) by scientia.demon.co.uk with smtp (Exim 3.092 #1) id 11vSog-0003cy-00 for freebsd-questions@freebsd.org; Tue, 07 Dec 1999 22:10:38 +0000 Date: Tue, 7 Dec 1999 22:10:38 +0000 From: Ben Smithurst To: freebsd-questions@freebsd.org Subject: Portmap blocking in accept() Message-ID: <19991207221038.A541@strontium.scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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