title: Any way to immediately free a bound socket?
body: <p>I’m developing an application server, during which I constantly edit–recompile–rerun the code. Unfortunately, after interrupting the code, the kernel (Ubuntu 11.10) does not immediately reclaim the port bound to the socket, so I have to wait several minutes until I can rerun.</p>
  
  <p>I thought that properly closing the socket in an interrupt handler solves the problem but it apparently has no effect.</p>
  
  <p>Is there any way to speed up the process and therefore the development cycle?</p>