<div dir="ltr">I use the function ldns_send() to ask a resolver to resolve domain names. The function often alters the <span style="font-family:arial,sans-serif;line-height:18px"><font color="#dd4b39">network error.</font><font color="#000000" style="background-color:rgb(243,243,243)"> I checked and found that this is because  it is so quick for </font></span><span style="color:rgb(0,0,0);font-family:arial,sans-serif;line-height:18px;background-color:rgb(243,243,243)">the function </span><span style="font-family:arial,sans-serif;line-height:18px"><font color="#000000" style="background-color:rgb(243,243,243)">to return while the resolver responded slowly, so that it did not get the responses and threw the alert. </font></span><div>
<span style="font-family:arial,sans-serif;line-height:18px"><font color="#000000" style="background-color:rgb(243,243,243)"><br></font></span></div><div><font color="#000000" face="arial, sans-serif"><span style="line-height:18px">How to fix the problem to make it return a bit slowly?</span></font></div>
<div><font color="#000000" face="arial, sans-serif"><span style="line-height:18px"><br></span></font></div><div><font color="#000000" face="arial, sans-serif"><span style="line-height:18px">Thanks</span></font></div></div>