Skip to content

Commit a45bebd

Browse files
committed
minor readme changes
1 parent 7e26be7 commit a45bebd

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ keytool -list -v -keystore <Your_keystore_name>`
162162
transaction has reached server and similar or some other exception has occurred. It is not recommended to retry on non-idempotent methods, so we are considering
163163
`merchantTransactionIdentifier` as idempotent key. Hence if you want to use PoolingHttpClient, merchantTransactionIdentifier field is mandatory in the payload(nvp or xml).
164164

165+
merchantTransactionIdentifier field should be present in the original request for all the services. The value of the merchant transaction ID must be unique for 60 days.
165166

166167
To get more information related to connection pooling please refer wiki.
167168

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ private void initializeConnectionManager(MerchantConfig merchantConfig) throws C
8181
String hostname = uri.getHost();
8282
connectionManager = new PoolingHttpClientConnectionManager();
8383
connectionManager.setDefaultMaxPerRoute(merchantConfig.getDefaultMaxConnectionsPerRoute());
84-
connectionManager.setDefaultSocketConfig(SocketConfig.custom().setSoKeepAlive(true).setSoTimeout(mc.getSocketTimeoutMs()).build());
84+
connectionManager.setDefaultSocketConfig(SocketConfig.custom().setSoKeepAlive(true).setSoTimeout(merchantConfig.getSocketTimeoutMs()).build());
8585
connectionManager.setMaxTotal(merchantConfig.getMaxConnections());
86-
connectionManager.setValidateAfterInactivity(mc.getValidateAfterInactivityMs());
86+
connectionManager.setValidateAfterInactivity(merchantConfig.getValidateAfterInactivityMs());
8787
final HttpHost httpHost = new HttpHost(hostname);
8888
connectionManager.setMaxPerRoute(new HttpRoute(httpHost), merchantConfig.getMaxConnectionsPerRoute());
8989
initHttpClient(merchantConfig, connectionManager);

zip/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ an I/O error/exception, when executing a request over a connection that has been
154154
server and similar or some other exception has occurred. It is not recommended to retry on non-idempotent methods, so we are considering `merchantTransactionIdentifier` as
155155
idempotent key. Hence if you want to use PoolingHttpClient, merchantTransactionIdentifier field is mandatory in the payload(nvp or xml).
156156

157+
merchantTransactionIdentifier field should be present in the original request for all the services. The value of the merchant transaction ID must be unique for 60 days.
158+
157159
To get more information related to connection pooling please refer wiki.
158160

159161
##Message Level Encryption

0 commit comments

Comments
 (0)