[ldns-users] decoupling rr and rdf in the python wrapper

Willem Toorop willem at NLnetLabs.nl
Tue May 17 21:03:16 UTC 2011


Thanks for the fix. I've applied the patch in trunk!
Best regards, Willem

Op 05-05-11 11:04, Bedrich Kosata schreef:
> Hi,
>
> as I wrote some time ago, there is still a problem with the ldns
> Python wrapper, because an RR shares its data with the included RDF
> and if the RDF is stored in a variable and the RR is garbage
> collected, the RDF data is no longer available.
> I attach two scripts that demonstrate this problem (one gives empty
> RDF instead of the actual data and one segfaults).
> I also attach a patch which clones all RDFs when retreived from an RR
> and also when RDF is set to an RR. This should decouple the RDF and RR
> data completely in the Python wrapper, thus making it possible for the
> objects to be garbage collected in any order at any time.
>
> Best regards
>
> Beda
>
> p.s.- as with the patch in the previous email, the patch is against
> the current svn version.
>
>
> _______________________________________________
> ldns-users mailing list
> ldns-users at open.nlnetlabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/ldns-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/ldns-users/attachments/20110517/5c3d291b/attachment.htm>


More information about the ldns-users mailing list