We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当我进行多文件上传时. 经常会因为 zone request timeout 导致上传错误.
通过查看源码发现. https://github.com/qiniu/nodejs-sdk/blob/master/qiniu/zone.js#L65 没有设置请求超时时间. 默认的话 urllib 的超时时间为 5000ms. 当我在进行大量文件同时上传的时候, 由于带宽占用. 请求经常会超出 5000ms.
5000ms
所以需要可以支持 用户自定义请求超时时间. 可以增加一个环境变量之类的. QINIU_NODESDK_REQUEST_MIN_TIMEOUT.
QINIU_NODESDK_REQUEST_MIN_TIMEOUT
The text was updated successfully, but these errors were encountered:
No branches or pull requests
背景描述
当我进行多文件上传时. 经常会因为 zone request timeout 导致上传错误.
通过查看源码发现. https://github.com/qiniu/nodejs-sdk/blob/master/qiniu/zone.js#L65 没有设置请求超时时间. 默认的话 urllib 的超时时间为
5000ms
. 当我在进行大量文件同时上传的时候, 由于带宽占用. 请求经常会超出5000ms
.所以需要可以支持 用户自定义请求超时时间. 可以增加一个环境变量之类的.
QINIU_NODESDK_REQUEST_MIN_TIMEOUT
.The text was updated successfully, but these errors were encountered: