Error while closing the stream in IPCClient#close
- Dominant language
- Java
- Stars
- 149
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
Hello @jagrosh
I'm receiving this error while calling the function `IPCClient#close` which it should close everything safety but it appears an exception that I can't handle it by try and catch because it's in a different thread. So, I hope there's a solution for this error.
```
21:25:26.238 [Thread-11] ERROR com.jagrosh.discordipc.IPCClient - Reading thread encountered an IOException
java.io.IOException: Stream Closed
at java.io.RandomAccessFile.length(Native Method)
at com.jagrosh.discordipc.entities.pipe.WindowsPipe.read(WindowsPipe.java:56)
at com.jagrosh.discordipc.IPCClient.lambda$startReading$0(IPCClient.java:350)
at java.lang.Thread.run(Thread.java:748)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading com.jagrosh.discordipc.entities.pipe.WindowsPipe.read at WindowsPipe.java:56 and the reading thread started in IPCClient.java:350. Reproduce closing IPCClient while the reader is active and trace the resulting IOException; done means closing the client no longer produces the reported Stream Closed error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100