EMCECS / nfs-client-java

Native Java NFS client
Apache License 2.0
71 stars 35 forks source link

Fix bug of handle large rpc call response #46

Open bryanzhou opened 2 years ago

bryanzhou commented 2 years ago

If the response of rpc call is separate into serval fragments, will trying to hold them and merge into ONE buffer.

This bug will happen when using this client to download large files.

Here is some log when I download a file with 160MB. It has a large rpc call, and separated into 9 fragments. In old version, _recordLength is adds up but buffer didn't hold bytes all image

bryanzhou commented 2 years ago

@twincitiesguy Hello, could you review my code ? I've tested in my project, and it works right.