Pekka Pessi a écrit :
On 5/2/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
But I have noticed a new bug, very strange: The records stored in cache
are sometimes not find with the sres_cached_answers.
I really do not understand, I printed all records on screen, when they
are stored they keep the right sr_name. When I need to get a record from
cache, sometimes the sr_name is totally crazy!
(Not all records are bad stored only some of them, and always the
same...) . Therefore the record in cache is not found, whether it is in
cache!
What kind of records are bad? Do they have status of 0?
--
Pekka.Pessi mail at nokia.com
I found where the problem came from:
With my multi thread version, I create a new resolver for each request.
When the request is done, I destroy the resolver, with the
sres_resolver_destroy.
I think that it removes the cache associated with the resolver (with the
destructor() function), that is why the cache memory is freed.
I need to change the sres_resolver_destructor() function (remove the
line sres_cache_unref(res->res_cache));
Thank you,
T.Rosenblatt.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel