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

eggjs处理服务端请求有超时时间吗 #5321

Closed
sunxin18 opened this issue Jun 2, 2024 · 3 comments · Fixed by #5325
Closed

eggjs处理服务端请求有超时时间吗 #5321

sunxin18 opened this issue Jun 2, 2024 · 3 comments · Fixed by #5325
Labels

Comments

@sunxin18
Copy link

sunxin18 commented Jun 2, 2024

请详细告知你的新点子(Nice Ideas):

配置

@sinkhaha
Copy link
Contributor

sinkhaha commented Jun 4, 2024

egg服务处理调用方所发请求的超时时间吗,这个没有,可以自己写个中间件处理一下

@fengmk2
Copy link
Member

fengmk2 commented Jun 7, 2024

https://github.com/eggjs/egg/blob/master/config/config.default.js#L369

通过 serverTimeout 配置可以设置,目前 nodejs http server 是默认不超时的。

@fengmk2
Copy link
Member

fengmk2 commented Jun 7, 2024

@fengmk2 fengmk2 linked a pull request Jun 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants