From 50b400185336b0af748d5d15798d21c40cb09c0d Mon Sep 17 00:00:00 2001 From: Pierre-Marie Padiou Date: Thu, 9 May 2019 11:41:05 +0200 Subject: [PATCH] Set tcp client timeout to 20s (#990) So that it fails before the ask/api time out. --- eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala b/eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala index c014902fa6..377fbc7110 100644 --- a/eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala +++ b/eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala @@ -51,7 +51,7 @@ class Client(nodeParams: NodeParams, authenticator: ActorRef, remoteAddress: Ine log.info(s"connecting to ${str(remoteAddress)}") (remoteAddress, None) } - IO(Tcp) ! Tcp.Connect(peerOrProxyAddress, timeout = Some(50 seconds), options = KeepAlive(true) :: Nil, pullMode = true) + IO(Tcp) ! Tcp.Connect(peerOrProxyAddress, timeout = Some(20 seconds), options = KeepAlive(true) :: Nil, pullMode = true) context become connecting(proxyParams_opt) }