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

执行错误后无法获得错误编号,效率怎样提高 #7

Open
fcinfo opened this issue May 11, 2018 · 1 comment
Open

执行错误后无法获得错误编号,效率怎样提高 #7

fcinfo opened this issue May 11, 2018 · 1 comment

Comments

@fcinfo
Copy link

fcinfo commented May 11, 2018

每一个功能函数(上传,下载,修改,删除)上都应该有调用后Fastdfs返回的错误编号,在异常时让调用者知道是什么原因造成的(譬如:删除时错误,有可能是文件不存在出错,也有可能网络不通出错,上传时有可能空间不足出现的错误)可以在异常上加上错误的编号,可以根据错误编号进行下一步业务的处理(如果是文件不存在的话,我可能会进行一些其他的处理)。
使用附带的测试程序测试下载,网络负载最高达到41.2M/秒,用happyfish100的客户端下载可以达到97.6M/秒(相同的测试环境),怎样提高效率?

@fcinfo fcinfo changed the title 执行错误后无法获得错误编号 执行错误后无法获得错误编号,效率怎样提高 May 14, 2018
@coding4m
Copy link
Owner

如何测试的?

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

No branches or pull requests

2 participants