test/javax/net/ssl/ciphersuites/DisabledAlgorithms.java

Print this page

        

*** 101,110 **** --- 101,112 ---- checkSuccess(rc4_ciphersuites); break; default: throw new RuntimeException("Wrong parameter: " + args[0]); } + + System.out.println("Test passed"); } /* * Checks if that specified cipher suites cannot be used. */
*** 125,135 **** System.out.println("Expected exception on client side: " + e); } } - server.stop(); while (server.isRunning()) { sleep(); } if (!server.sslError()) { --- 127,136 ----
*** 221,235 **** out.flush(); socket.getSession().invalidate(); } catch (SSLHandshakeException e) { System.out.println("Server: run: " + e); sslError = true; } catch (IOException e) { if (!stopped) { ! System.out.println("Server: run: " + e); e.printStackTrace(); otherError = true; } } } System.out.println("Server: finished"); --- 222,244 ---- out.flush(); socket.getSession().invalidate(); } catch (SSLHandshakeException e) { System.out.println("Server: run: " + e); sslError = true; + stopped = true; } catch (IOException e) { if (!stopped) { ! System.out.println("Server: run: unexpected exception: " ! + e); e.printStackTrace(); otherError = true; + stopped = true; + } else { + System.out.println("Server: run: " + e); + System.out.println("The exception above occurred " + + "because socket was closed, " + + "please ignore it"); } } } System.out.println("Server: finished");
*** 258,267 **** --- 267,277 ---- void stop() { stopped = true; if (!ssocket.isClosed()) { try { + System.out.println("Server: close socket"); ssocket.close(); } catch (IOException e) { System.out.println("Server: close: " + e); } }