Skip to content

Commit 9194831

Browse files
committed
setting default value for timeout in sample refrence file
1 parent 6dcdb88 commit 9194831

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

java/src/main/java/com/cybersource/ws/client/MerchantConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ public boolean getUseHttpClientWithConnectionPool() {
252252
}
253253

254254
/**
255-
* Getter method for timeout
255+
* Getter method for timeout, it is set in seconds
256+
* default is 130seconds
256257
* @return int
257258
*/
258259
public int getTimeout() {

java/src/main/resources/cybs.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ cacertPassword=
5959
# Mechanism to differentiate whether Payload is encrypted or not
6060
useSignAndEncrypted=false
6161

62-
timeout=10
62+
# Used as socket and connection timeout for both jdk HttpUrlConnection and for Apache basic http client(useHttpClient=true).
63+
# Default is 130 seconds.
64+
timeout=130
6365

6466
# logging should normally be disabled in production as it would slow down the
6567
# processing. Enable it only when troubleshooting an issue.

java/src/test/resources/test_cybs.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ cacertPassword=
5757
# Mechanism to differentiate whether Payload is encrypted or not
5858
useSignAndEncrypted=false
5959

60-
timeout=1000
60+
# Used as socket and connection timeout for both jdk HttpUrlConnection and for Apache basic http client(useHttpClient=true).
61+
# Default is 130 seconds.
62+
timeout=130
6163

6264
# logging should normally be disabled in production as it would slow down the
6365
# processing. Enable it only when troubleshooting an issue.

samples/nvp/cybs.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ cacertPassword=
5959
# Mechanism to differentiate whether Payload is encrypted or not
6060
useSignAndEncrypted=false
6161

62-
timeout=10
62+
# Used as socket and connection timeout for both jdk HttpUrlConnection and for Apache basic http client(useHttpClient=true).
63+
# Default is 130 seconds.
64+
timeout=130
6365

6466
# logging should normally be disabled in production as it would slow down the
6567
# processing. Enable it only when troubleshooting an issue.

samples/xml/cybs.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ cacertPassword=
5959
# Mechanism to differentiate whether Payload is encrypted or not
6060
useSignAndEncrypted=false
6161

62-
timeout=10
62+
# Used as socket and connection timeout for both jdk HttpUrlConnection and for Apache basic http client(useHttpClient=true).
63+
# Default is 130 seconds.
64+
timeout=130
6365

6466
# logging should normally be disabled in production as it would slow down the
6567
# processing. Enable it only when troubleshooting an issue.

0 commit comments

Comments
 (0)