Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 1999 22:10:38 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Portmap blocking in accept()
Message-ID:  <19991207221038.A541@strontium.scientia.demon.co.uk>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991207221038.A541>