RFR: 8269481: SctpMultiChannel never releases own file descriptor [v2]
Brian Burkhalter
bpb at openjdk.java.net
Tue Jun 29 17:12:02 UTC 2021
On Tue, 29 Jun 2021 16:58:53 GMT, Chris Hegarty <chegar at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8269481: Set state to KILLED *before* closing socket
>
> test/jdk/com/sun/nio/sctp/SctpMultiChannel/CloseDescriptors.java line 71:
>
>> 69: ProcessBuilder pb = new ProcessBuilder(
>> 70: "lsof", "-U", "-a", "-p", Long.toString(myPid));
>> 71: Process p = pb.start();
>
> Is this test stable? Do we do similar `losf` in other areas ?
`test/jdk/java/net/DatagramSocket/UnreferencedDatagramSockets.java
`
`test/jdk/java/net/MulticastSocket/UnreferencedMulticastSockets.java
`
Might want to change this test to be robust as to the location of the `lsof` executable.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4621
More information about the net-dev
mailing list