hyperionjv / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

in.read() does not respect interrupt() on Windows Vista #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Create a Thread t which does the following
1. open a StreamConnection
streamConnection = (StreamConnection) Connector.open("btspp://....");
2. open a DataInputStream
in = streamConnection.openDataInputStream();
3. call in.read() (which will block)
4. interrupt t from a different thread (e.g. gui-thread)

What is the expected output? What do you see instead?
Should happen: in.read() should throw interrupted exception
Actually happens: in.read() ignores the interrupt and continues to block

What BlueCove version are you using (include build number for SNAPSHOT)? On
what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?
- BlueCove version 2.0.3 on winsock
- Windows Vista 32-bit
- Java
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

Please provide any additional information below.
Please use "Attach a file" when uploading stack traces or other big files!

This works perfectly in Windows XP SP3, same Java version, same BlueCove
BUT on WIDCOMM.

Original issue reported on code.google.com by frank.pa...@gmail.com on 27 Nov 2008 at 12:56

GoogleCodeExporter commented 9 years ago
same thing happens with the following build:

bluecove-2.1.0-20081009.194958-1.jar

Original comment by frank.pa...@gmail.com on 27 Nov 2008 at 1:15

GoogleCodeExporter commented 9 years ago

Original comment by skarzhev...@gmail.com on 3 Dec 2008 at 3:11

GoogleCodeExporter commented 9 years ago
The code is fixed in SVN. But the build is not created because of the build 
server
upgrade.

You may build the dll from SVN or wait for a new build server to be avlable, 
this
week. will keep updated.

Original comment by skarzhev...@gmail.com on 3 Dec 2008 at 5:23

GoogleCodeExporter commented 9 years ago
Excellent! I will try the new build as soon as it is ready!

Original comment by frank.pa...@gmail.com on 4 Dec 2008 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by skarzhev...@gmail.com on 9 Dec 2008 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by skarzhev...@gmail.com on 26 Dec 2008 at 3:48