Modify HttpServiceAdapter.getReadTimeout() and HttpServiceAdapter.getConnectTimeout() so that they return a default value if the attribute is not configured for the adapter. For example, instead of calling getAttributeValueSmart(READ_TIMEOUT), we can call getAttribute(String, int), passing the default value as the int parameter.
The reason this is needed is to avoid adapter service calls blocking for indeterminate periods, tying up threads and database connections.
Default values should be as follows:
read timeout: 10 seconds
connect timeout: 20 seconds
Modify
HttpServiceAdapter.getReadTimeout()
andHttpServiceAdapter.getConnectTimeout()
so that they return a default value if the attribute is not configured for the adapter. For example, instead of callinggetAttributeValueSmart(READ_TIMEOUT)
, we can callgetAttribute(String, int)
, passing the default value as the int parameter.The reason this is needed is to avoid adapter service calls blocking for indeterminate periods, tying up threads and database connections.
Default values should be as follows: read timeout: 10 seconds connect timeout: 20 seconds