bug fix, and decrease the CONNECT_RETRY_TIMES
set Socket {active, once}, this can reduce the memory usage