jeppeman / GloballyDynamic

Dynamic Delivery everywhere through a common API
Apache License 2.0
298 stars 18 forks source link

How to Increase Timeout Seconds #86

Closed teleazmeer closed 2 years ago

teleazmeer commented 2 years ago

Need to Increase Timeout can you explain how to Increase

jeppeman commented 2 years ago

@teleazmeer what timeout are you referring to?

teleazmeer commented 2 years ago

@jeppeman
The Read and connect timeout for httpclient inside globallydynamic-selfhosted\src\main\java\com\jeppeman\globallydynamic\globalsplitinstall\GlobalSplitInstallManagerImpl.java

Line 61 when i request for split apk from s3 it gives timeout error. so need to increase them

jeppeman commented 2 years ago

Gotcha, right, they are not modifiable at the moment. I will get started on introducing the capability to customize them, should be done today or tomorrow. I'll let you know when there is a new version!

teleazmeer commented 2 years ago

Thats Great to Hear ,,... Thanks a Lot....

jeppeman commented 2 years ago

@teleazmeer support for this has been added now.

android {
    globallyDynamicServers {
        myServer {
            downloadConnectTimeout 15000
            downloadReadTimeout 120000
        }
    }
}

See docs here: https://globallydynamic.io/docs/user/gradle

Android lib version: 1.2.0 Gradle plugin version: 1.5.0

teleazmeer commented 2 years ago

Thank YOu