fix tcp firstheartbeat bug