I have a thread that executes the following code:
public void run() { try { int n = 0; byte[] buffer = new byte[4096]; while ((n
You've stumbled upon a 9 year old bug no one is willing to fix. They say there are some workarounds in this bug report. Most probably, you'll need to find some other way to set timeout (busy waiting seems unavoidable).