bobh        2002/10/09 08:03:21

  Modified:    util/java/org/apache/tomcat/util/net/jsse JSSESupport.java
  Log:
  - make gump happy by getting rid of "1.4" only class java.net.SocketTimeoutException
  
  Revision  Changes    Path
  1.3       +3 -3      
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java
  
  Index: JSSESupport.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESupport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JSSESupport.java  8 Oct 2002 16:49:43 -0000       1.2
  +++ JSSESupport.java  9 Oct 2002 15:03:21 -0000       1.3
  @@ -222,8 +222,8 @@
           for (int i = 0; i < maxTries; i++) {
               try {
                   int x = in.read(b);
  -            } catch (SocketTimeoutException e) {
  -                // ignore
  +            } catch (IOException e) {
  +                // ignore - presumably the timeout
               }
               if (listener.completed) {
                   break;
  @@ -232,7 +232,7 @@
           socket.removeHandshakeCompletedListener(listener);
           socket.setSoTimeout(oldTimeout);
           if (listener.completed == false) {
  -            throw new SocketTimeoutException("SSL Cert handshake timeout");
  +            throw new SocketException("SSL Cert handshake timeout");
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to