test/jdk/java/net/httpclient/websocket/ConnectionHandover.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 47216 71c04702a3d5
child 55838 12a64276cc96
equal deleted inserted replaced
55763:634d8e14c172 55764:34d7cc00f87a
    29 
    29 
    30 /*
    30 /*
    31  * @test
    31  * @test
    32  * @bug 8164625
    32  * @bug 8164625
    33  * @summary Verifies HttpClient yields the connection to the WebSocket
    33  * @summary Verifies HttpClient yields the connection to the WebSocket
       
    34  * @build DummyWebSocketServer
    34  * @run main/othervm -Djdk.httpclient.HttpClient.log=trace ConnectionHandover
    35  * @run main/othervm -Djdk.httpclient.HttpClient.log=trace ConnectionHandover
    35  */
    36  */
    36 public class ConnectionHandover {
    37 public class ConnectionHandover {
    37 
       
    38     static {
       
    39         LoggingHelper.setupLogging();
       
    40     }
       
    41 
       
    42     /*
    38     /*
    43      * An I/O channel associated with the connection is closed by WebSocket.abort().
    39      * An I/O channel associated with the connection is closed by WebSocket.abort().
    44      * If this connection is returned to the connection pool, then the second
    40      * If this connection is returned to the connection pool, then the second
    45      * attempt to use it would fail with a ClosedChannelException.
    41      * attempt to use it would fail with a ClosedChannelException.
    46      *
    42      *