roll back the flawed ping handling, it is not done in a thread-safe way