Make tcp ensure data is in socket