Tomcat web service client client timeout. Timeout setting

I have a socket read timeout in a Tomcat web application accessing a remote web service. The timeout is exactly 10 minutes. I have problems with the setting responsible for this. Is this some kind of default?

Edit: I am using Apache Axis 1.4

+3
source share
3 answers

It comes from DEFAULT_MESSAGE_TIMEOUT in org.apache.axis.Constants

/**
 * The default timeout for messages.
 *
 * @since Axis1.2
 */
public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;

used in org.apache.axis.MessageContext

/**
 * Maximum amount of time to wait on a request, in milliseconds.
 */
private int          timeout = Constants.DEFAULT_MESSAGE_TIMEOUT;

So it seems to be defaulted.

+3
source

In your case, timeouts can be set in the Axis configuration. See Timeout Configuration .

( Axis)

+1

I found the link here: http://axis.apache.org/axis/java/client-side-axis.html#AxisProperties , it mentions CONNECTION_TIMEOUT_PROPERTY but does not point to it by default.

0
source

Source: https://habr.com/ru/post/1784521/


All Articles