[Kamailio-Devel] [ openser-Patches-2537716 ] working with DNS server unreachable

SourceForge.net noreply at sourceforge.net
Mon Jan 26 14:59:08 CET 2009


Patches item #2537716, was opened at 2009-01-26 14:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=2537716&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniele Zappasodi (zappasodi)
Assigned to: Nobody/Anonymous (nobody)
Summary: working with DNS server unreachable

Initial Comment:
When a child process makes a DNS query it remains suspended until it receives the response from the DNS server, so with few DNS requests you can have all the children blocked, while they could serve the requests that don't need the DNS.
When all DNS servers are unreachable it waits for a long period: 3 (NAPTR+SRV+A) * [number of DNS servers * number of retransmissions * time to wait per each retransmission] seconds.
With this small patch, if the NAPTR request fails because the DNS server is unreachable the process doesn't try to make the SRV and the A queries . If all the configured DNS servers are unreachable, the delay becames: 1 (instead of 3, only NAPTR) * [numbers of DNS servers * number of retransmissions * time to wait per each retransmission] seconds.
It doesn't give any help to reduce the delay when at least one of the DNS server responds.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=2537716&group_id=139143



More information about the Devel mailing list