tcp socket disconnect

It seems like daniel and I are on the same page here.