Skip to content
Snippets Groups Projects
Unverified Commit 0c9f0b61 authored by Jakob Möller's avatar Jakob Möller Committed by GitHub
Browse files

Double Timeout Variables for HTTP Requests and Triple the Timeout for the...

Double Timeout Variables for HTTP Requests and Triple the Timeout for the Transaction to ensure less timeouts are received with bad networking. (EXPOSUREAPP-2190) (#1138)

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>
parent ef9ed485
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ object HTTPVariables { ...@@ -5,7 +5,7 @@ object HTTPVariables {
* The maximal runtime of a transaction * The maximal runtime of a transaction
* In milliseconds * In milliseconds
*/ */
private const val HTTP_CONNECTION_TIMEOUT = 10000L private const val HTTP_CONNECTION_TIMEOUT = 20000L
/** /**
* Getter function for [HTTP_CONNECTION_TIMEOUT] * Getter function for [HTTP_CONNECTION_TIMEOUT]
...@@ -19,7 +19,7 @@ object HTTPVariables { ...@@ -19,7 +19,7 @@ object HTTPVariables {
* The maximal runtime of a transaction * The maximal runtime of a transaction
* In milliseconds * In milliseconds
*/ */
private const val HTTP_READ_TIMEOUT = 10000L private const val HTTP_READ_TIMEOUT = 20000L
/** /**
* Getter function for [HTTP_READ_TIMEOUT] * Getter function for [HTTP_READ_TIMEOUT]
...@@ -33,7 +33,7 @@ object HTTPVariables { ...@@ -33,7 +33,7 @@ object HTTPVariables {
* The maximal runtime of a transaction * The maximal runtime of a transaction
* In milliseconds * In milliseconds
*/ */
private const val HTTP_WRITE_TIMEOUT = 10000L private const val HTTP_WRITE_TIMEOUT = 20000L
/** /**
* Getter function for [HTTP_WRITE_TIMEOUT] * Getter function for [HTTP_WRITE_TIMEOUT]
......
...@@ -34,7 +34,7 @@ object TimeVariables { ...@@ -34,7 +34,7 @@ object TimeVariables {
* The maximal runtime of a transaction * The maximal runtime of a transaction
* In milliseconds * In milliseconds
*/ */
private const val TRANSACTION_TIMEOUT = 60000L private const val TRANSACTION_TIMEOUT = 180000L
/** /**
* Getter function for [TRANSACTION_TIMEOUT] * Getter function for [TRANSACTION_TIMEOUT]
......
...@@ -7,16 +7,16 @@ class HTTPVariablesTest { ...@@ -7,16 +7,16 @@ class HTTPVariablesTest {
@Test @Test
fun getHTTPConnectionTimeout() { fun getHTTPConnectionTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPConnectionTimeout(), 10000L) Assert.assertEquals(HTTPVariables.getHTTPConnectionTimeout(), 20000L)
} }
@Test @Test
fun getHTTPReadTimeout() { fun getHTTPReadTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPReadTimeout(), 10000L) Assert.assertEquals(HTTPVariables.getHTTPReadTimeout(), 20000L)
} }
@Test @Test
fun getHTTPWriteTimeout() { fun getHTTPWriteTimeout() {
Assert.assertEquals(HTTPVariables.getHTTPWriteTimeout(), 10000L) Assert.assertEquals(HTTPVariables.getHTTPWriteTimeout(), 20000L)
} }
} }
...@@ -14,7 +14,7 @@ class TimeVariablesTest { ...@@ -14,7 +14,7 @@ class TimeVariablesTest {
@Test @Test
fun getTransactionTimeout() { fun getTransactionTimeout() {
Assert.assertEquals(TimeVariables.getTransactionTimeout(), 60000L) Assert.assertEquals(TimeVariables.getTransactionTimeout(), 180000L)
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment