pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:518:    r->domain=domain;    r->callback=callback;    r->args=args;    requests[id]=r;    udp::send(nameservers[0],53,r->req);    call_out(retry,5,r,1);    }       static private void rec_data()    { +  mixed err; +  if (err = catch {    mapping m=udp::read();    if(m->port != 53 || search(nameservers, m->ip) == -1) return;    sscanf(m->data,"%2c",int id);    object r=requests[id];    if(!r) return;    m_delete(requests,id);    r->callback(r->domain,decode_res(m->data),@r->args);    destruct(r); -  +  }) { +  werror(sprintf("DNS: Failed to read UDP packet. Connection refused?\n" +  "%s\n", +  describe_backtrace(err)));    } -  +  }       static private void generic_get(string d,    mapping answer,    int multi,    string field,    string domain,    function callback,    mixed ... args)    {    if(!answer || !answer->an || !sizeof(answer->an))