title: What's the difference between TIME-WAIT Assassination and SO_REUSEADDR
body: <p>I was reading about using the SO_LINGER socket option to intentionally 'assassinate' the time-wait state by setting the linger time to zero.  The author of the book then goes on to say we should never do this and in general that we should never interfere with the time-wait state.  He then immediately recommends using the SO_REUSEADDR option to bypass the time-wait state.</p>
  
  <p>My question is, what's the difference?  In both cases you're prematurely terminating the time-wait state and taking the risk of receiving duplicate segments.  Why is one good and the other bad?</p>