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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With