Issue 80 in bluecove: StreamConnectionNotifier.acceptAndOpen does not release block after close() method is invoked on the notifier

21 views
Skip to first unread message

codesite...@google.com

unread,
Jul 28, 2009, 2:27:36 PM7/28/09
to bluecov...@googlegroups.com
Status: New
Owner: ----

New issue 80 by aburdukov: StreamConnectionNotifier.acceptAndOpen does not
release block after close() method is invoked on the notifier
http://code.google.com/p/bluecove/issues/detail?id=80

According to JSR 82:
<quote>
once an application invokes close() on any L2CAPConnectionNotifier,
SessionNotifier, or StreamConnectionNotifer instance, all pending
acceptAndOpen() methods that have been invoked previously on that instance
MUST throw InterruptedIOException. This mechanism provides an application
with the means to cancel any outstanding acceptAndOpen() method calls.
</quote>

However, sometimes acceptAndOpen continues blocking thread instead of
throwing InterruptedIOException after close() method invokation

What steps will reproduce the problem?
1. Open SPP server connection.
2. Start thread with accepting incoming connections (AcceptorThread)
3. Connect to this SPP server and transfer some data both ways.
4. Invoke close() method on the StreamConnectionNotifier.


What is the expected output?
IterruptedIOException must be thrown
What do you see instead?
Sometimes, AcceptorThread is blocked by acceptAndOpen forever.

What BlueCove version are you using (include build number for SNAPSHOT)?
2.1.0
On what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?
Win XP SP2 32-bit, JRE 1.6.0_11


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Jul 28, 2009, 2:31:38 PM7/28/09
to bluecov...@googlegroups.com

Comment #1 on issue 80 by aburdukov: StreamConnectionNotifier.acceptAndOpen
does not release block after close() method is invoked on the notifier
http://code.google.com/p/bluecove/issues/detail?id=80

The problem is reproduced from time to time, but often enough on Microsoft
Winsock
and Bluesoleil stacks (probably, it also exists on WINDCOMM stack).

codesite...@google.com

unread,
Sep 28, 2009, 9:16:35 PM9/28/09
to bluecov...@googlegroups.com

Comment #2 on issue 80 by esaias.pech:
StreamConnectionNotifier.acceptAndOpen does not release block after close()
method is invoked on the notifier
http://code.google.com/p/bluecove/issues/detail?id=80

Same issue, the instruction blocks everything.

Reply all
Reply to author
Forward
0 new messages