0
我有一個基本的客戶端,我用它來測試我的服務器。對於配置我使用application.jsonspray.io客戶端配置
"spray": {
"can": {
"client": {
"idle-timeout": "120 s",
"request-timeout": "180 s"
},
"host-connector": {
"max-retries": "1",
"max-connections": "64"
}
}
}
然而在sendrecieve方法我看到,超時是總是60秒,作爲根據documantation,如果我使用請求超時它假設是隱式值
def sendReceive(implicit refFactory: ActorRefFactory, executionContext: ExecutionContext,
futureTimeout: Timeout = 60.seconds): SendReceive =
sendReceive(IO(Http)(actorSystem))
我是否需要顯式加載配置?