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

关于请求进度和取消请求 #155

Open
wukongzhikong opened this issue Aug 6, 2018 · 2 comments
Open

关于请求进度和取消请求 #155

wukongzhikong opened this issue Aug 6, 2018 · 2 comments

Comments

@wukongzhikong
Copy link

你好,在参考官方文档之后,我发现c-sdk没有提供监听请求(上传)进度和取消请求的接口,后面的版本是否可以考虑加上呢?

@litianqi1996
Copy link
Contributor

可以通过Qiniu_Rio_PutExtra 中 notify 的回调 来进行控制
参考 https://github.com/qiniudemo/c-sdk-demo/blob/master/c-sdk-demo/up_resume_upload.cpp

@feelingseas
Copy link

最近我也遇到这个问题了。我也特别想说希望七牛官方 可以为c/c++的sdk可以提供一个可以设置上传超时的功能。就是说比如设置10秒,上传仍未成功就结束这个上传任务。curl协议是可以设置的,所以七牛添加这个功能应该还是简单的。
当然是否会涉及大规模其他代码改动就不知道了。
2楼说的方法吧,用分片上传代码复杂了不少不说(简单看了下,不懂),可是上传单个片(比如第一个片)如果仍然很耗时,是不是仍然不能及时获取上传进度?不能及时停止上传?

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

3 participants