qiniu / rust-sdk

Generic Qiniu Resource Storage SDK
MIT License
26 stars 7 forks source link

uploader.async_upload_reader painc #30

Open bjcodereview3 opened 4 months ago

bjcodereview3 commented 4 months ago

场景是读取一个文本文件, 然后按行去下载后上传到qiniu 当并发较多(400)时, 运行一段时间会出现 Segmentation fault, 减少并发数后(200)就不会出现这个问题

错误信息 thread 'async-std/runtime' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.28/src/common/exec.rs:49:21: there is no reactor running, must be called from the context of a Tokio 1.x runtime

[dependencies] tokio = {version = "1.36.0", features = ["full"] } qiniu-upload-manager = { version = "0.2.4", features = ["async", "reqwest"] }

问题有点和这个类似 https://github.com/qiniu/rust-sdk/issues/8

bachue commented 3 months ago

好的,下次大版本更新将会提供 tokio runtime 的版本