Re: [Bluez-devel] non persistent sdp records

Marcel Holtmann
2007-05-10T09:33:46Z

Hi Frederic,

> Until today, I was using non persistent sdp records like this
>
> sdp_connect()
> sdp_record_alloc()
> sdp_record_register()
> sdp_record_free()
> [Bluetooth profile executing]
> sdp_close()
>
> Recently, I found my sdp records were accumulating each time I
> reregistered them, even if the sdp session was closed.
> I saw this on bluez 3.9 but not on bluez 3.7.
>
> Does this mean all sdp records are now persistent or was I doing bad
> thing since the beginning or something else?

this sounds like a bug. Do you use standalone sdpd or hcid with -s?

You might wanna consider to use D-Bus to register the records since
bluez-utils-3.10 is ready to be pushed out now.