[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kill sockets

Federico Di Gregorio wrote:
> Scavenging the mail folder uncovered Marco d'Itri's letter:
> > On Feb 21, Ricardo Borges <ricardo.borges@gbl.com.br> 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...

Then maybe you should lookup the REUSE_PORT and REUSE_ADDR socket


Martijn van Oosterhout <kleptog@cupid.suninternet.com>

Trust the computer industry to shorten "Year 2000" to Y2K.
It was this kind of thinking that caused the problem in the first place.

Reply to: