http://nc110.sourceforge.net/ origin
use SO_LINGER