Re: Kill sockets
On Wed, 23 Feb 2000, Federico Di Gregorio wrote:
> Scavenging the mail folder uncovered Marco d'Itri's letter:
> > On Feb 21, Ricardo Borges <email@example.com> wrote:
> > >I would like to know how can I write a software in C thats kill only the
> > >conections with TIME_WAIT handle in a specific TCP/IP port???
> > You can't and you shouldn't. These connection will die after a timeout.
> it is usefull when debugging a server application that sigsegvs.
> it's pretty annoying to wait 75s every time to restart it...
There is an option to avoid waiting (with the danger that the end of
an old communication interfers with the new one).
see setsockopt() and SO_REUSEADDR