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
OS Platform:windows 11
Node.js Version: Node.js 16
ThinkJS Version: 3.2.13
// your code here
// your error message here
// your detail description 如题,上传大文件时,比如1G的,本地测试上传2分多钟后就停止响应了
// your detail description As mentioned, when uploading large files, such as 1G, the local test upload stopped responding after more than 2 minutes.
The text was updated successfully, but these errors were encountered:
试过这中间件设置超时时间 @uswitch/koa-timeout 报错:TypeError: timeout is not a function
Sorry, something went wrong.
const instance = new Application({ ROOT_PATH: __dirname, APP_PATH: path.join(__dirname, 'app'), watcher: watcher, transpiler: [babel, { presets: ['think-node'] }], notifier: notifier.notify.bind(notifier), env: 'development' });
instance.use(timeout(1000)); instance.run();
如何引入中间件 https://thinkjs.org/zh-cn/doc/3.0/middleware.html#toc-3ad
@uswitch/koa-timeout 问题是这个中间件没有配置options的地方,超时参数该怎么设置呢?
const {timeout} = require('@uswitch/koa-timeout');
module.exports = [ { handle: timeout, options: { } },
No branches or pull requests
DESC
ENV
OS Platform:windows 11
Node.js Version: Node.js 16
ThinkJS Version: 3.2.13
code
// your code here
error message
more description
// your detail description
如题,上传大文件时,比如1G的,本地测试上传2分多钟后就停止响应了
DESC
ENV
OS Platform:windows 11
Node.js Version: Node.js 16
ThinkJS Version: 3.2.13
code
// your code here
error message
more description
// your detail description
As mentioned, when uploading large files, such as 1G, the local test upload stopped responding after more than 2 minutes.
The text was updated successfully, but these errors were encountered: