2007-02-15 00:21:56

by Denis Kenzior

[permalink] [raw]
Subject: [Bluez-devel] dbus-sdp & find_pending_connect

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


2007-02-15 08:10:55

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] dbus-sdp & find_pending_connect

Hi Denis,

> 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