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

SourceForge.net noreply at sourceforge.net
Thu Feb 19 11:24:49 CET 2009


Patches item #2537716, was opened at 2009-01-26 13:59
Message generated for change (Comment added) made by henningw
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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Daniele Zappasodi (zappasodi)
>Assigned to: Henning Westerholt (henningw)
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.

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

>Comment By: Henning Westerholt (henningw)
Date: 2009-02-19 10:24

Message:
Thank your for the patch, i applied  it to trunk with some minor changes. I
used the defined constant from errno.h instead of the magic number, and
also changed the log message a big.

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

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