Skip to contentSkip to conversation

dbus-sdp & find_pending_connect

Bluez-devel Denis KENZIOR 2 participants 2 messages Feb 15, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Marcel,

I'd like to understand why all SDP related functions in dbus-sdp.c call the find_pending_connect function?

Effectively this guards against simultaneous SDP connection attempts to the same remote device. My understanding is that BlueZ does not have any limitations against multiple simultaneous connections to the same device, and neither does the BlueZ sdp daemon. Commenting out find_pending_connect, I can run up to 6 simultaneous SDP queries to another BlueZ implementation (this is because sdpd has a queue of up to 5 connections.) So this leads me to wonder why hcid is not allowing this particular case?

-Denis

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Denis,

Quoted 10 lines

I'd like to understand why all SDP related functions in dbus-sdp.c call the find_pending_connect function?

Effectively this guards against simultaneous SDP connection attempts to the same remote device. My understanding is that BlueZ does not have any limitations against multiple simultaneous connections to the same device, and neither does the BlueZ sdp daemon. Commenting out find_pending_connect, I can run up to 6 simultaneous SDP queries to another BlueZ implementation (this is because sdpd has a queue of up to 5 connections.) So this leads me to wonder why hcid is not allowing this particular case?

actually I have no idea and I didn't write that piece of code. There shouldn't be any limitations, but not all remote SDP implementation can deal with concurrent requests and so we have to be careful.

Regards

Marcel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel