avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket AbstractSocketStreamInvocationHandler.java
Date Sat, 06 Apr 2002 11:45:03 GMT
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:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message