Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!think.com!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!mimsy!dftsrv!chris From: chris@asylum.gsfc.nasa.gov (Chris Shenton) Newsgroups: comp.unix.programmer Subject: Re: More questions on sockets Message-ID: Date: 18 Jun 91 14:05:47 GMT References: <1991Jun14.162215.14657@ncsu.edu> <1991Jun18.050654.17373@thunder.mcrcim.mcgill.edu> Sender: news@dftsrv.gsfc.nasa.gov Organization: none Lines: 17 In article <1991Jun14.162215.14657@ncsu.edu>, jwb@cepmax.ncsu.edu (John W. Baugh Jr.) writes: > - when trying to bind a stream socket I sometimes get an error > "Address already in use", even though I've closed the socket (for > example, when I run the program in succession a couple of times). > Is there something else I have to do? In article <1991Jun18.050654.17373@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes: Wait. As far as I can tell that's the only thing to be done. I've encountered the same thing, and came up with the same non-fix. Any idea how long you have to wait (don't say ``until the port's free'' :-). Why? -- One should drink little ... but often. -- Henri de Toulouse-Lautrec