Skip to content

Commit ca9af1a

Browse files
author
Felix
committed
Set timeout
1 parent fe438ea commit ca9af1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electron/src/main/scala/util/DockerModem.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object DockerModem {
5050
log.debug(s"Building Docker modem for Url: $connection")
5151
val modemOptions = {
5252
if (connection.url.toLowerCase().startsWith("unix://")) {
53-
new ModemOptions(socketPath = connection.url.drop("unix://".size), host = "localhost", timeout=2000, protocol = "http", port = null)
53+
new ModemOptions(socketPath = connection.url.drop("unix://".size), host = "localhost", timeout = DockerClientConfig.HttpTimeOut, protocol = "http", port = null)
5454
} else {
5555
val protocol = connection.url.takeWhile(_ != ':')
5656
val host = connection.url.drop(protocol.size).drop("://".size).takeWhile(_ != ':')

0 commit comments

Comments
 (0)