8017157: catch more exception in test RejectClientRenego

Reviewed-by: vinnie
This commit is contained in:
Xue-Lei Andrew Fan 2013-06-20 07:48:49 -07:00
parent 338bfbd857
commit b0246ef1ae

View File

@ -131,7 +131,7 @@ public class RejectClientRenego implements
sslOS.flush();
}
throw new Exception("Not reject client initialized renegotiation");
} catch (SSLHandshakeException she) {
} catch (IOException ioe) {
System.out.println("Got the expected exception");
} finally {
sslSocket.close();
@ -181,7 +181,7 @@ public class RejectClientRenego implements
sslIS.read();
}
throw new Exception("Not reject client initialized renegotiation");
} catch (SSLHandshakeException she) {
} catch (IOException ioe) {
System.out.println("Got the expected exception");
} finally {
sslSocket.close();