Open GoogleCodeExporter opened 9 years ago
When connection closed remotely the L2CAP receive should exist.
See the RFCOMM implementation
Java_com_intel_bluetooth_BluetoothStackBlueZ_connectionRfRead as example.
Original comment by skarzhev...@gmail.com
on 17 Nov 2008 at 3:24
Issue 55 has been merged into this issue.
Original comment by skarzhev...@gmail.com
on 17 Nov 2008 at 3:24
I think that Mina fixed the problem and Nightly BlueCove Build should contain
the fix.
Original comment by skarzhev...@gmail.com
on 9 Dec 2008 at 6:29
it isn't completely fixed yet.
depending only on receive() method still produces the endless loop
only using L2CAPConnection.ready() before L2CAPConnection.receive() works!
I'll try to fix it completely soon.
Original comment by minasho...@gmail.com
on 9 Dec 2008 at 10:39
I made changes to code and it works for me. and it should work now.
Vlad, please review and change status again if issue still reproducible or if
there
are another problems.
Original comment by minasho...@gmail.com
on 9 Dec 2008 at 12:51
Original comment by skarzhev...@gmail.com
on 9 Dec 2008 at 4:45
L2CAPConnection.receive still hangs when connection closed by host.
I think it's needed to check (fds.revents & POLLNVAL) in
Java_com_intel_bluetooth_BluetoothStackBlueZ_l2Receive and
Java_com_intel_bluetooth_BluetoothStackBlueZ_l2Ready
After applying this changes I get it working.
Best Regards,
Alexander
Original comment by exclusion
on 23 Feb 2009 at 5:55
Even so I can't reproduce the "hangs" problem I added handling for POLLNVAL.
Hope this will work fine now.
See the next build 2.1.1-SNAPSHOT.12 for fixed binaries.
Original comment by skarzhev...@gmail.com
on 24 Feb 2009 at 8:19
Original comment by skarzhev...@gmail.com
on 26 Feb 2009 at 7:06
Original issue reported on code.google.com by
Yoav.Nor...@gmail.com
on 17 Nov 2008 at 10:53