ktor-client-apache / io.ktor.client.engine.apache / ApacheEngineConfig / connectTimeout

connectTimeout

var connectTimeout: Int

Max milliseconds to establish an HTTP connection - default 10 seconds. A value of 0 represents infinite, while -1 represents system's default value.