Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rutgers!att!ulysses!andante!alice!andrew From: andrew@alice.UUCP (Andrew Hume) Newsgroups: comp.unix.questions Subject: Re: Socket question Summary: it takes a while Message-ID: <9003@alice.UUCP> Date: 4 Mar 89 23:57:09 GMT References: <1006@blake.acs.washington.edu> <4482@cs.Buffalo.EDU> Distribution: usa Organization: AT&T Bell Laboratories, Murray Hill NJ Lines: 11 i understand the problem to be that if you tear down a socket that you got as a result of listening to an address that you 'bind'ed to and then attempt to bind again, you get an address in use error. this is annoyingly correct behaviour. some standard says the address is taken for up to 4 minutes. i have a similar problem and i adopt the sendmail approach (it has to be good for something, right?) and set some socket option to reuse the address and then just rebind over the top.