modify connection parameter
fix append more protocol bytes