Hi,


Pekka Pessi a écrit :
On 5/3/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
Well I'm desperate with my resolver, since my cache is not usefull.
(Indeed because of sres_resolver_destroy I lost some datas...)
I send you the code of the thread that handles a new dnsRequest:

        ag=su_home_new(*sizeof*(nta_agent_t));

This does not look very good. ;) I hope your mailer or gmail mangled
the message.

Perhaps sending your code fragment in attachment would help.

The stars should be removed, ag=su_home_new(sizeof(nta_agent_t));
(the colors before key word, are replaced with stars before and after:))
Well I do not understand, why memory of the cache is freed :(.

Have you double-checked your code using cache? Do you unref cache pointer?
I do not unref my cache pointer, as I wrote already, the problem comes from sres_destroy_resolver -> sres_resolver_unref -> su_home_unref -> _su_home_deinit -> free(b->sub_nodes[i].sua_data); which seems to be independent from the cache!

When I comment the line /free(b->sub_nodes[i].sua_data); /I have no more problems concerning the cache (but I have memory leaks :) )


Am I supposed to free memory like this?

I suppose you have modified nta? If so, this looks pretty bad.

I have not modified nta, I have removed nta :). I'm just using su and sresolv modules. I kept the name nta for my code, but it will change :).
Besides , Are you still working on multi threading in Sofia?

You mean like multithreading support in nta? The question is, why do
you need multithreading there? Easier multitasking in upper layers of
the application?

I was just wondering if you were still working with multi-threading access to the cache, tests etc...
PS: I'm not working with sres_blocking functions, since I have one
resolver per thread...

That is the problem what the sres_blocking_* are expected to solve.
Please see utils/sip-dig.c, too.

Well the CVS tree is unavailable for the moment. Can anybody send me the file utils/sip-dig.c ?


--
Pekka.Pessi mail at nokia.com

Thank you,
Thomas 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

Reply via email to