8017157: catch more exception in test RejectClientRenego
Reviewed-by: vinnie
This commit is contained in:
parent
338bfbd857
commit
b0246ef1ae
@ -131,7 +131,7 @@ public class RejectClientRenego implements
|
|||||||
sslOS.flush();
|
sslOS.flush();
|
||||||
}
|
}
|
||||||
throw new Exception("Not reject client initialized renegotiation");
|
throw new Exception("Not reject client initialized renegotiation");
|
||||||
} catch (SSLHandshakeException she) {
|
} catch (IOException ioe) {
|
||||||
System.out.println("Got the expected exception");
|
System.out.println("Got the expected exception");
|
||||||
} finally {
|
} finally {
|
||||||
sslSocket.close();
|
sslSocket.close();
|
||||||
@ -181,7 +181,7 @@ public class RejectClientRenego implements
|
|||||||
sslIS.read();
|
sslIS.read();
|
||||||
}
|
}
|
||||||
throw new Exception("Not reject client initialized renegotiation");
|
throw new Exception("Not reject client initialized renegotiation");
|
||||||
} catch (SSLHandshakeException she) {
|
} catch (IOException ioe) {
|
||||||
System.out.println("Got the expected exception");
|
System.out.println("Got the expected exception");
|
||||||
} finally {
|
} finally {
|
||||||
sslSocket.close();
|
sslSocket.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user