fix http client reset bug