Test9a.java (3261:a06412e13bf7) Test9a.java (8874:2972241cf7eb)
1/*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *

--- 26 unchanged lines hidden (view full) ---

35import java.net.*;
36import javax.net.ssl.*;
37
38/* Same as Test1 but requests run in parallel.
39 */
40
41public class Test9a extends Test {
42
1/*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *

--- 26 unchanged lines hidden (view full) ---

35import java.net.*;
36import javax.net.ssl.*;
37
38/* Same as Test1 but requests run in parallel.
39 */
40
41public class Test9a extends Test {
42
43 static SSLContext serverCtx, clientCtx;
44 static boolean error = false;
43 static SSLContext serverCtx;
44 static volatile SSLContext clientCtx = null;
45 static volatile boolean error = false;
45
46 public static void main (String[] args) throws Exception {
47 HttpsServer server = null;
48 ExecutorService executor=null;
49 try {
50 String root = System.getProperty ("test.src")+ "/docs";
51 System.out.print ("Test9a: ");
52 InetSocketAddress addr = new InetSocketAddress (0);

--- 118 unchanged lines hidden (view full) ---

171 System.out.println ("temp = "+temp);
172 System.out.println ("count = "+count);
173 error = true;
174 }
175 String orig = root + "/" + f;
176 compare (new File(orig), temp);
177 temp.delete();
178 } catch (IOException e) {
46
47 public static void main (String[] args) throws Exception {
48 HttpsServer server = null;
49 ExecutorService executor=null;
50 try {
51 String root = System.getProperty ("test.src")+ "/docs";
52 System.out.print ("Test9a: ");
53 InetSocketAddress addr = new InetSocketAddress (0);

--- 118 unchanged lines hidden (view full) ---

172 System.out.println ("temp = "+temp);
173 System.out.println ("count = "+count);
174 error = true;
175 }
176 String orig = root + "/" + f;
177 compare (new File(orig), temp);
178 temp.delete();
179 } catch (IOException e) {
180 e.printStackTrace();
179 error = true;
180 }
181 }
182 }
183
184 /* compare the contents of the two files */
185
186 static void compare (File f1, File f2) throws IOException {

--- 20 unchanged lines hidden ---
181 error = true;
182 }
183 }
184 }
185
186 /* compare the contents of the two files */
187
188 static void compare (File f1, File f2) throws IOException {

--- 20 unchanged lines hidden ---