Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`buf.clear();` 会重置缓冲区的主要索引值,不必为了每次读写都创建新的缓冲区;如果在下次写入之前不这么做,那么下次写入总是失败的。这将导致while循环总是只执行一次,数据只能513字节长度的传输,降低效率。
- Loading branch information