This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Request? getting an address from uDNS takes a lot of time 20 seconds ... after connection



if (size< 1) return g_sts.Bgw; //no address means use the Gateway
if (sl_NetAppDnsGetHostByName((signed char*) start, size, &ipv4, SL_AF_INET)<0) ipv4=-1;//only if error verify accessing DNS takes a longtime !!//call BACK ????
return ipv4;

Getting a  Ip address takes a very  log time ....  mili seconds expected  but  takes up to 30 sec's in  this implementation.....

Can it be speed up?

it often fails  same condition just  reask  network online ...... seems like a timeout .....

Can it at least be accessed using event or callback...... It is useless to  waste all that time........