Fork自 taosdata / TDengine
add the code to handle idle timer
change the mutex in connection cache to home made lock