Skip to content

Commit

Permalink
Set tcp client timeout to 20s (#990)
Browse files Browse the repository at this point in the history
So that it fails before the ask/api time out.
  • Loading branch information
pm47 authored May 9, 2019
1 parent 9f96b1b commit 50b4001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eclair-core/src/main/scala/fr/acinq/eclair/io/Client.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 50b4001

Please sign in to comment.