EMCECS / nfs-client-java

Native Java NFS client
Apache License 2.0
70 stars 33 forks source link

Fix bug of handle large rpc call response #46

Open bryanzhou opened 1 year ago

bryanzhou commented 1 year 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 1 year ago

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