From owner-freebsd-questions Wed Sep 27 0:49:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tornqvist.net (idet.rsn.hk-r.se [194.47.142.179]) by hub.freebsd.org (Postfix) with ESMTP id C346437B422 for ; Wed, 27 Sep 2000 00:49:07 -0700 (PDT) Received: from localhost (bjorn@localhost) by tornqvist.net (8.9.3/8.9.3) with ESMTP id JAA64867 for ; Wed, 27 Sep 2000 09:58:19 +0200 (CEST) (envelope-from bjorn@tornqvist.net) Date: Wed, 27 Sep 2000 09:58:13 +0200 (CEST) From: Bjorn Tornqvist To: freebsd-questions@freebsd.org Subject: bind(2) gives EADDRINUSE during 60 seconds. Why? 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 Howdy! I hope someone can explain this behaviour to me; The kernel seems to make a stream port "un-rebindable" within 60 seconds after another stream-server-process has had the port bound. The easiest way to illustrate (with port/sysutils/socket): Terminal one: Terminal two: socket -s 19191 telnet localhost 19191 ^C Connection closed by foreign host socket -s 19191 socket: server socket: Address already in use [wait 60 seconds] ...and socket -s 19191 will succeed again. What is causing this? This behaviour causes my application to fail a critical requirement and there must surely be something wrong with my (aswell as socket(1)'s) interaction with the tcp/ip stack? TIA, Bjorn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message