Date: Fri, 28 Sep 2001 09:55:03 -0700 From: rick norman <rick.norman@lmco.com> To: freebsd-hackers@freebsd.org Subject: bind : address already inuse Message-ID: <3BB4AB67.61217AA4@lmco.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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. I am debugging a server and the process requires restarting often. Thanks, Rick [-- Attachment #2 --] 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BB4AB67.61217AA4>
