Skip to content

Commit

Permalink
Set timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix committed Dec 31, 2016
1 parent fe438ea commit ca9af1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/src/main/scala/util/DockerModem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object DockerModem {
log.debug(s"Building Docker modem for Url: $connection")
val modemOptions = {
if (connection.url.toLowerCase().startsWith("unix://")) {
new ModemOptions(socketPath = connection.url.drop("unix://".size), host = "localhost", timeout=2000, protocol = "http", port = null)
new ModemOptions(socketPath = connection.url.drop("unix://".size), host = "localhost", timeout = DockerClientConfig.HttpTimeOut, protocol = "http", port = null)
} else {
val protocol = connection.url.takeWhile(_ != ':')
val host = connection.url.drop(protocol.size).drop("://".size).takeWhile(_ != ':')
Expand Down

0 comments on commit ca9af1a

Please sign in to comment.