2007-12-19 22:41:01

by Hendrik Sattler

[permalink] [raw]
Subject: [Bluez-devel] SDP services cannot be unregistered

Hi,

since several versions of bluez userspace libs and utils, I am unable to
unregister local SDP server records. Everything I tried so far fails to
unregister the record:
I use sdp_connect() and sdp_device_record_register() to register the SDP
record and use the return result of the latter for
sdp_device_record_unregister() and then sdp_close().

In earlier versions, the unregistering and explicit closing of the session
handle wasn't even necessary but that broke. That can be handled but
unregistering a record in an explicit way like above should work, doesn't it?

When the bug appeared, I though that waiting some versions might suffice. But
obviously, nobody ever noticed.
Is there a possibility that this gets fixed?

HS

PS: please CC me on replies as I am not subscribed.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2007-12-19 23:34:33

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] SDP services cannot be unregistered

Hi Hendrik,

> since several versions of bluez userspace libs and utils, I am unable to
> unregister local SDP server records. Everything I tried so far fails to
> unregister the record:
> I use sdp_connect() and sdp_device_record_register() to register the SDP
> record and use the return result of the latter for
> sdp_device_record_unregister() and then sdp_close().
>
> In earlier versions, the unregistering and explicit closing of the session
> handle wasn't even necessary but that broke. That can be handled but
> unregistering a record in an explicit way like above should work, doesn't it?
>
> When the bug appeared, I though that waiting some versions might suffice. But
> obviously, nobody ever noticed.
> Is there a possibility that this gets fixed?

not sure about that. Never heard about it. Are you using the sdpd daemon
or do you use hcid -s and the embedded SDP server?

I might have introduced a bug when switching everything over to the
embedded SDP server and the automatic service classes handling. Do you
have a simple reproducer that I can try?

Regards

Marcel



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel