简体   繁体   English

如何在本地为 ruby on rails 应用程序将服务器请求超时设置为 30 秒限制?

[英]How can I set server request timeout to 30 seconds limit in local for ruby on rails application?

I'm debugging a issue for production.我正在调试生产问题。

Where the request takes more than 30s and it fails.请求花费超过30s并且失败的地方。

I'm trying to reproduce the issue on my local machine.我正在尝试在我的本地机器上重现该问题。

How can I set the request timeout to 30s in local.如何在本地将请求超时设置为30s

Working on Ruby on Rails Application with puma .使用puma处理Ruby on Rails应用程序。

You can use rack-timeout gem.您可以使用机架超时gem。

Best, Théo最好的,泰奥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Ruby on Rails:如何在应用程序配置中设置数据库超时? - Ruby on Rails: How to set a database timeout in application configuration? 如何在rails(瘦或webrick服务器)中设置请求超时 - how to set request timeout in rails ( thin or webrick server) 如何在Ruby on Rails中分析请求? - How can I profile a request in Ruby on Rails? 如何在Ruby on Rails中为特定请求指定超时? - How to specify timeout for a particular request in ruby on rails? 使用ruby脚本/服务器设置本地服务器后,如何键入linux命令? - How can i type linux commands after using ruby script/server to set up a local server? 在Rails中执行较长的PLSQL过程时,如何解决heroku的30秒超时? - How can I workaround heroku's 30 sec timeout when executing long PLSQL procedure in Rails? 如何从另一个应用程序向Ruby on Rails发送http请求? - How can I send a http request to Ruby on Rails from another application? 如何在 ruby-on-rails 应用程序上使用 Rack 发送 POST 模拟请求? - How can I send a POST mock request with Rack on a ruby-on-rails application? 我可以在Ruby on Rails应用程序中通过排除资源的方法设置路由吗? - Can I set routes by resource method with exclusions in Ruby on Rails application? Ruby on Rails请求/查询超时 - Ruby on Rails Request/Query Timeout
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM