test/jdk/java/net/Socket/LingerTest.java
changeset 49431 5812849b5027
parent 47216 71c04702a3d5
child 51980 191c2b7d7186
equal deleted inserted replaced
49430:e376090dc07e 49431:5812849b5027
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 4796166
    26  * @bug 4796166
    27  * @summary Linger interval delays usage of released file descriptor
    27  * @summary Linger interval delays usage of released file descriptor
       
    28  * @run main LingerTest
       
    29  * @run main/othervm -Djava.net.preferIPv4Stack=true LingerTest
    28  */
    30  */
    29 
    31 
    30 import java.net.*;
    32 import java.net.*;
    31 import java.io.*;
    33 import java.io.*;
    32 
    34