Skip to contentSkip to conversation

input service leaking l2cap connections

Bluez-users Dick 2 participants 2 messages Sep 7, 2007 – Sep 10, 2007 Bluetooth drivers

lore
Share & tools
lore

Dick

author
#0 lore raw

Hi,

I still have some trouble with the input service and I think I've found something related which is reproduceable.

If a device is reconnecting a lot the l2cap table in /sys/class/bluetooth/l2cap is growing with connections (which aren't closed).

Try the following with a HID input device:

1. Start and configure the input service for the device
2. Start hcidump
3. Power off the input device
4. Wait until "Disconn complete" appear in hcidump
5. Power on the input device
6. Repeat from step 3

If you look at:
sort /sys/class/bluetooth/l2cap |uniq -c

You will see a huge number of connections from the input device.

greetings,
Dick

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#1 lore raw

Hi Dick,

I was not able to reproduce the reported problem. Could you please send me more details? Try reproduce the problem in the latest release (3.18) and share your hcidump.

Quoted 11 lines · Dick

Hi,

I still have some trouble with the input service and I think I've found something related which is reproduceable.

If a device is reconnecting a lot the l2cap table in /sys/class/bluetooth/l2cap is growing with connections (which aren't closed).

Try the following with a HID input device:

1. Start and configure the input service for the device

[Claudio Takahasi]
After call CreateDevice how are you connecting the input? Device initiated connection or calling Device.Connect() ?

Quoted 4 lines

2. Start hcidump
3. Power off the input device
4. Wait until "Disconn complete" appear in hcidump
5. Power on the input device

[Claudio Takahasi]
how are you reconnecting?

Quoted 9 lines

6. Repeat from step 3

If you look at:
sort /sys/class/bluetooth/l2cap |uniq -c

You will see a huge number of connections from the input device.

greetings,
Dick

BR,
Claudio Takahasi.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users