fix: Fix read result not full#3350
Conversation
Signed-off-by: Enwei Jiao <enwei.jiao@zilliz.com>
8c9b045 to
6f62656
Compare
|
This PR is wrong, we can't guarantee that the source has enough data. |
I thought this function is supposed to read 'len' bytes? |
This is the documentation of Is there anything different between |
Please note that
It's ok to provide an API called |
|
I see, I will raise a PR to revert this. |
Fixed in #3282 |
After actual testing, it was found that using
self.inner.readwill read data based on the size of internal bytes. By usingself.inner.read_exact, can read the input buffer size directly.