Issue #1538 Made http timeouts configurable on registry service http connections
Change-Id: I2f91b713475027a3e514d0fd98605fc83bdac447 Former-commit-id:b3c1580263
[formerly23af775648
] [formerly71168e4791
] [formerly71168e4791
[formerlydd57ea1cd4
]] [formerlyb3c1580263
[formerly23af775648
] [formerly71168e4791
] [formerly71168e4791
[formerlydd57ea1cd4
]] [formerly2c39b78ded
[formerly71168e4791
[formerlydd57ea1cd4
] [formerly2c39b78ded
[formerly cf9f51098a2778f747984940a764ab5089afd231]]]]] Former-commit-id:2c39b78ded
Former-commit-id:cc2dd06362
[formerly2cd2b88750
] [formerlyd9fbb6737e
] [formerly 91bb9cad77f231d3c8dd8e39ded34b2c6981ce92 [formerly dd5a45642652d7ef7fb50f8716df3e35f4f3ad6b] [formerlyd9fbb6737e
[formerly16b21fe41c
]]] Former-commit-id: 04a978b3520b108845c12a1d36ff6043d71a5433 [formerly c54617580a3904cb7ffd2e5462efcd8e43f2e432] [formerly75acddc7b7
[formerlydb84abd517
]] Former-commit-id:75acddc7b7
Former-commit-id:9926cb93f5
This commit is contained in:
parent
541d73614d
commit
b603f3bef9
2 changed files with 21 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
|||
ebxml-http-receive-timeout=40000
|
||||
ebxml-http-connection-timeout=30000
|
|
@ -114,8 +114,25 @@ public class RegistrySOAPServices {
|
|||
static {
|
||||
proxyConfig = getProxyConfiguration();
|
||||
httpClientPolicy = new HTTPClientPolicy();
|
||||
httpClientPolicy.setReceiveTimeout(15000);
|
||||
httpClientPolicy.setConnectionTimeout(10000);
|
||||
|
||||
try {
|
||||
httpClientPolicy.setReceiveTimeout(Long.parseLong(System
|
||||
.getProperty("ebxml-http-receive-timeout")));
|
||||
} catch (NumberFormatException e) {
|
||||
statusHandler
|
||||
.error("ebxml-http-receive-timeout not specified. Using default value of 1 minute",
|
||||
e);
|
||||
httpClientPolicy.setReceiveTimeout(60000);
|
||||
}
|
||||
try {
|
||||
httpClientPolicy.setConnectionTimeout(Long.parseLong(System
|
||||
.getProperty("ebxml-http-connection-timeout")));
|
||||
} catch (NumberFormatException e) {
|
||||
statusHandler
|
||||
.error("ebxml-http-connection-timeout not specified. Using default value of 10 seconds",
|
||||
e);
|
||||
httpClientPolicy.setReceiveTimeout(10000);
|
||||
}
|
||||
httpClientPolicy.setConnection(ConnectionType.KEEP_ALIVE);
|
||||
httpClientPolicy.setMaxRetransmits(5);
|
||||
if (proxyConfig != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue