Branch: Tag:

2000-05-07

2000-05-07 15:20:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved handling of connection refused in do_sync_query().

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.39

392:    udp->send(nameservers[i % sizeof(nameservers)], 53, s);       while (udp->wait(RETRY_DELAY)) { +  // udp->read can throw an error on connection refused. +  catch {    m = udp->read();    if ((m->port == 53) &&    (m->data[0..1] == s[0..1]) &&
399:    // Success.    return decode_res(m->data);    } +  };    }    }    // Failure.