From owner-freebsd-questions Thu Sep 27 17: 4:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailgw3a.lmco.com (mailgw3a.lmco.com [192.35.35.24]) by hub.freebsd.org (Postfix) with ESMTP id AD73D37B401 for ; Thu, 27 Sep 2001 17:04:32 -0700 (PDT) Received: from emss01g01.ems.lmco.com ([129.197.181.54]) by mailgw3a.lmco.com (8.8.8/8.8.8) with ESMTP id UAA31561 for ; Thu, 27 Sep 2001 20:04:30 -0400 (EDT) Received: from CONVERSION-DAEMON by lmco.com (PMDF V5.2-32 #38886) id <0GKC00K01IV1ZP@lmco.com> for freebsd-questions@freebsd.org; Thu, 27 Sep 2001 17:04:27 -0700 (PDT) Received: from cui1.lmms.lmco.com ([129.197.1.64]) by lmco.com (PMDF V5.2-32 #38886) with ESMTP id <0GKC008NLIUT0L@lmco.com> for freebsd-questions@freebsd.org; Thu, 27 Sep 2001 17:04:07 -0700 (PDT) Received: from lmco.com (CONNECTICUT1.lmms.lmco.com [129.197.23.84]) by cui1.lmms.lmco.com (8.11.0/8.9.2) with ESMTP id f8S044610067 for ; Thu, 27 Sep 2001 17:04:05 -0700 (PDT) Date: Thu, 27 Sep 2001 17:04:07 -0700 From: rick norman Subject: bind : address already inuse To: freebsd-questions@freebsd.org Message-id: <3BB3BE77.C0531821@lmco.com> MIME-version: 1.0 X-Mailer: Mozilla 4.77 [en] (WinNT; U) Content-type: MULTIPART/MIXED; BOUNDARY="Boundary_(ID_JEhMk+UEjxrYSZe5M2ntyA)" X-Accept-Language: en Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --Boundary_(ID_JEhMk+UEjxrYSZe5M2ntyA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT When an app binds an address and port to a listen socket, what variables can I adjust so the address may be reused immediately after the app exits. My understanding was that int on = 1; setsockopt(s,SOL_SOCKET,SO_REUSEADDR,&on,sizeof(on)); would do it but there still seems to be a significant amount of time between the exit and bind allowing a new app to use the address, even though there are no inbound connections pending in the listen queue when the exit occurs. Thanks, Rick --Boundary_(ID_JEhMk+UEjxrYSZe5M2ntyA) Content-type: text/x-vcard; name=rick.norman.vcf; charset=us-ascii Content-description: Card for rick norman Content-disposition: attachment; filename=rick.norman.vcf Content-transfer-encoding: 7BIT begin:vcard n:norman;rick tel;cell:650 303 3877 tel;work:408 742 1619 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:rick.norman@lmco.com note:Logically speaking, logic is innappropriate. x-mozilla-cpt:;0 fn:rick norman end:vcard --Boundary_(ID_JEhMk+UEjxrYSZe5M2ntyA)-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message