Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Bad File Descriptor error due to double VirtualMachineImpl$SocketInputStream.close #20

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

kdinta
Copy link
Contributor

@kdinta kdinta commented Mar 18, 2019

sun.tools.attach.VirtualMachineImpl$SocketInputStream.close not handling double close properly, which will fail in cases like try (BufferedReader br = new BufferedReader( ((HotSpotVirtualMachine) vm).remoteDataDump((Object[]) args));). Fix is: avoiding double close from client side to avoid Bad file descriptor errors

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ing double close properly, which will fail in cases like try (BufferedReader br = new BufferedReader( ((HotSpotVirtualMachine) vm).remoteDataDump((Object[]) args));). Fix is: avoiding double close from client side to avoid Bad file descriptor errors
@kdinta kdinta requested review from aesgithub and ditac March 18, 2019 17:36
@kdinta kdinta requested a review from yeajung March 18, 2019 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants