improve buffer.go, add changeConn, change retransit algorithm
delete unused fields