简体   繁体   中英

Tomcat axis web service client read timeout. Timeout configuration

I have a socket read timeout in Tomcat web app accessing a remote web service. The timeout is exactly 10 minutes. I have trouble finding the configuration responsible for this. Is that some kind of default?

Edit: I use Apache Axis 1.4

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 a kind of default.

In your case timeouts might be set in Axis configuration. See Timeout Configuration .

Or try to set your timeout programatically ( Axis client options )

我在这里找到了一个链接: http//axis.apache.org/axis/java/client-side-axis.html#AxisProperties ,它提到了CONNECTION_TIMEOUT_PROPERTY但没有指定任何默认值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM