On 4/26/06, Thomas Rosenblatt <[EMAIL PROTECTED]> wrote:
> I was wondering if the creation of socketpair was required in my Case?
> This is a big problem for me cause when there is a high number of
> request I always have a socketpair error -> too many open files.
> Is this socketpair useful for my DNSresolver or can I do without it ?  (
> I 'm just using the sresolv and su modules)

There is a more socket-wise economic interface in the sres_blocking.c,
using sres_blocking_query() and sres_blocking_query_sockaddr(). The
interface saves sockets by 1) not requiring su_root_t object, and 2)
not creating extra sockets connected to nameservers.

So, when you create a new thread, you create a new resolver object for
it with sres_resolver_copy(), then use sres_blocking_query(). Please
see sip-dig.c (added today to CVS) as an example.

The downside is that the blocking stuff have not been tested. Really.
Bug reports and patches are welcome. ;)

--
Pekka.Pessi mail at nokia.com


-------------------------------------------------------
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