of course not really possible because everything is deleted.
Most easily triggered on XP (not Vista), maybe because of the
network stack encouraging large messages backlogs.
+ - change in debug statements.
26 May 2009: Wouter
- Thanks again to Brett Carr, found an assertion that was not true.
struct iter_qstate* iq = (struct iter_qstate*)qstate->minfo[id];
enum response_type type = response_type_from_server(0, iq->response,
&iq->qchase, iq->dp);
- /* @@@ DEBUG - fail to prime roots often */
- /* if((ub_random(qstate->env->rnd) & 0x7) != 0)
- type = RESPONSE_TYPE_ANSWER+1; */
if(type == RESPONSE_TYPE_ANSWER) {
qstate->return_rcode = LDNS_RCODE_NOERROR;
qstate->return_msg = iq->response;
struct pending key;
struct pending* p;
verbose(VERB_ALGO, "answer cb");
+ /* @@@ DEBUG simulate bad connection: drop those packets */
+ /*
+ if((ub_random(outnet->rnd)&0xf) <= 1)
+ return 0;
+ */
if(error != NETEVENT_NOERROR) {
verbose(VERB_QUERY, "outnetudp got udp error %d", error);
worker_win_stop_cb(int ATTR_UNUSED(fd), short ATTR_UNUSED(ev), void* arg)
{
struct worker* worker = (struct worker*)arg;
- verbosity = 5; /* @@@ DEBUG */
verbose(VERB_QUERY, "caught stop signal (wsaevent)");
worker->need_to_exit = 1;
comm_base_exit(worker->base);