jdk/test/java/net/httpclient/ManyRequests2.java
changeset 45531 fb3dbffad37b
child 45535 4b19310ae4ee
equal deleted inserted replaced
45530:3c98842fddf7 45531:fb3dbffad37b
       
     1 /*
       
     2  * Copyright (c) 2017, 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  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    16  * 2 along with this work; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  */
       
    23 
       
    24 /*
       
    25  * @test
       
    26  * @bug 8087112 8180044
       
    27  * @modules jdk.incubator.httpclient
       
    28  *          java.logging
       
    29  *          jdk.httpserver
       
    30  * @library /lib/testlibrary/ /
       
    31  * @build jdk.testlibrary.SimpleSSLContext EchoHandler
       
    32  * @compile ../../../com/sun/net/httpserver/LogFilter.java
       
    33  * @compile ../../../com/sun/net/httpserver/FileServerHandler.java
       
    34  * @build ManyRequests ManyRequests2
       
    35  * @run main/othervm/timeout=40 -Dtest.XFixed=true ManyRequests2
       
    36  * @run main/othervm/timeout=40 -Dtest.XFixed=true -Dtest.insertDelay=true ManyRequests2
       
    37  * @run main/othervm/timeout=40 -Dtest.XFixed=true -Dtest.chunkSize=64 ManyRequests2
       
    38  * @run main/othervm/timeout=40 -Dtest.XFixed=true -Dtest.insertDelay=true -Dtest.chunkSize=64 ManyRequests2
       
    39  * @summary Send a large number of requests asynchronously. The server echoes back using known content length.
       
    40  */
       
    41  // * @run main/othervm/timeout=40 -Djdk.httpclient.HttpClient.log=ssl ManyRequests
       
    42 
       
    43 public class ManyRequests2 {
       
    44 
       
    45     public static void main(String[] args) throws Exception {
       
    46         ManyRequests.main(args);
       
    47     }
       
    48 }