CCBC-360

sometimes empty rest will clear conn->output buffer. mostly happened when timeout is very short or network is now well.