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

【TransferService】关于多线程转发服务的问题 #9

Open
Kiltalaw opened this issue Oct 15, 2020 · 1 comment
Open

【TransferService】关于多线程转发服务的问题 #9

Kiltalaw opened this issue Oct 15, 2020 · 1 comment

Comments

@Kiltalaw
Copy link

TCP保证的是一块内容的有序以及完整,例如一个HTTP请求就是一个完整的一块内容,当数据量大的时候会切分,最后会按序合并。但如果做文件做传输一般需要实现分块传输提高效率和稳定性,使用多线程去做传输,处理方式分为两种,一种是保证包序,也就是串行传输,另一种则是多线程传输,这块需要自己做包序保证。建议TCP那块要不按channel加队列做串行传输,要不在加入包序,最后做包排序合并。(个人浅解,如有错漏敬请指教)

@y377
Copy link

y377 commented Jan 19, 2021

借贴回复!
敢问仓库主,这如何安装及使用,是不是写个教程?

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