Socket question

Andrew Hume andrew at alice.UUCP
Sun Mar 5 09:57:09 AEST 1989



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.



More information about the Comp.unix.questions mailing list