You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2002/04/06 13:45:03 UTC
cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket AbstractSocketStreamInvocationHandler.java
leif 02/04/06 03:45:03
Modified: altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket
AbstractSocketStreamInvocationHandler.java
Log:
Lengthened the soTimeout on sockets so that unwanted timeouts can be avoided
when either system is heavily loaded.
Revision Changes Path
1.2 +6 -2 jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/AbstractSocketStreamInvocationHandler.java
Index: AbstractSocketStreamInvocationHandler.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/AbstractSocketStreamInvocationHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbstractSocketStreamInvocationHandler.java 3 Apr 2002 11:29:51 -0000 1.1
+++ AbstractSocketStreamInvocationHandler.java 6 Apr 2002 11:45:03 -0000 1.2
@@ -30,7 +30,7 @@
*
*
* @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public abstract class AbstractSocketStreamInvocationHandler extends StreamInvocationHandler
{
@@ -103,7 +103,11 @@
Socket socket = new Socket(mHost, mPort);
- socket.setSoTimeout(1000);
+ // The 1 second value was causing unwanted timeouts when the remote
+ // method took more than a second to run or if either system was heavily
+ // loaded.
+ //socket.setSoTimeout(1000);
+ socket.setSoTimeout(60 * 1000);
return socket;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>