首页 > 解决方案 > 在 Play2 中配置 akka-http 请求超时

问题描述

我正在从我的 Play2.7 应用程序进行长时间运行的数据库调用并获得

DEBUG a.a.RepointableActorRef: 
Aborting tcp connection to /0:0:0:0:0:0:0:1:60454 because of upstream failure:
akka.http.impl.engine.HttpIdleTimeoutException: 
HTTP idle-timeout encountered, no bytes passed in the last 75 seconds. 
This is configurable by akka.http.[server|client].idle-timeout.

我试图通过修改我的src/main/resources/application.conf. 我还尝试在此处遵循 Play2 文档:https ://www.playframework.com/documentation/2.7.x/SettingsAkkaHttp和设置play.server.akka.requestTimeout = "infinite" 但是,我仍然收到“75 秒”消息。如何覆盖此超时设置?

标签: playframeworktimeoutakka-http

解决方案


推荐阅读