Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

itstack-demo-netty-2-04 文件分片传输 #10

Open
zzmmff opened this issue Apr 7, 2022 · 1 comment
Open

itstack-demo-netty-2-04 文件分片传输 #10

zzmmff opened this issue Apr 7, 2022 · 1 comment

Comments

@zzmmff
Copy link

zzmmff commented Apr 7, 2022

源代码有一个bug
在 FileUtill类 writeFile方法中,最后 fileBurstInstruct.setReadPosition(fileBurstData.getEndPos() + 1); 应该修改为
fileBurstInstruct.setReadPosition(fileBurstData.getEndPos());
否则传输的文件和源文件的hash值不一致(应该是位置错了)

@cyt574
Copy link

cyt574 commented Apr 26, 2022

同样遇到了这个问题,解决方法就是 @zzmmff 提供的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants