fix bug by sending connack, and optimize initialize ping request timer
fix trivial bug