Socket keep alive error fixed