Home | History | Annotate | Download | only in mDNSCore

Lines Matching refs:ThisQInterval

226 		q->ThisQInterval = 0;	// Inactivate this question so that we dont bombard the network
243 q->ThisQInterval = InitialQuestionInterval;
244 q->LastQTime = m->timenow - q->ThisQInterval;
268 // Be careful not to touch the ThisQInterval here. For a normal question, when we answer the question
269 // in AnswerCurrentQuestionWithResourceRecord will set ThisQInterval to MaxQuestionInterval and hence
273 LogInfo("PenalizeDNSServer: Server for %p, %##s (%s) changed to NULL, Interval %d", q, q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval);
692 q->ThisQInterval = INIT_UCAST_POLL_INTERVAL;
695 q->LastQTime = m->timenow - q->ThisQInterval + 1;
775 q->ThisQInterval = q->tcp ? 0 : (kLLQ_INIT_RESEND * q->ntries * mDNSPlatformOneSecond); // If using TCP, don't need to retransmit
797 q->ThisQInterval = lease/2 + mDNSRandom(lease/10);
798 debugf("SetLLQTimer setting %##s (%s) to %d %d", q->qname.c, DNSTypeName(q->qtype), lease/mDNSPlatformOneSecond, q->ThisQInterval/mDNSPlatformOneSecond);
897 q->ThisQInterval = LLQ_POLL_INTERVAL + mDNSRandom(LLQ_POLL_INTERVAL/10); // Retry LLQ setup in approx 15 minutes
1034 if (q->ThisQInterval < (256 * mDNSPlatformOneSecond)) // Now we have a TCP connection open, make sure we wait at least 256 seconds before retrying
1035 q->ThisQInterval = (256 * mDNSPlatformOneSecond);
1165 if (q->ThisQInterval == 0)
1168 // Note that ThisQInterval is also zero when sendChallengeResponse resends the LLQ request on an extant TCP/TLS connection.
1174 // Since ThisQInterval was 0, we can't just multiply by QuestionIntervalStep, we must track the number
1178 q->ThisQInterval = InitialQuestionInterval;
1181 q->ThisQInterval *= QuestionIntervalStep;
1183 if (q->ThisQInterval > LLQ_POLL_INTERVAL)
1184 q->ThisQInterval = LLQ_POLL_INTERVAL;
1188 LogMsg("tcpCallback: stream connection for LLQ %##s (%s) failed %d times, retrying in %d ms", q->qname.c, DNSTypeName(q->qtype), q->ntries, q->ThisQInterval);
1192 q->ThisQInterval = MAX_UCAST_POLL_INTERVAL;
1193 LogMsg("tcpCallback: stream connection for %##s (%s) failed, retrying in %d ms", q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval);
1202 q->ThisQInterval = q->LongLived ? LLQ_POLL_INTERVAL : MAX_UCAST_POLL_INTERVAL;
1204 LogMsg("tcpCallback: stream connection for %##s (%s) failed, retrying in %d ms", q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval);
1215 // quickly rather than switching to polling mode. This case is handled by the above code to set q->ThisQInterval just above.
1291 q->ThisQInterval = LLQ_POLL_INTERVAL + mDNSRandom(LLQ_POLL_INTERVAL/10); // Retry in approx 15 minutes
1310 q->ThisQInterval = LLQ_POLL_INTERVAL + mDNSRandom(LLQ_POLL_INTERVAL/10); // Retry in approx 15 minutes
1344 q->ThisQInterval = mDNSPlatformOneSecond * 5; // If TCP failed (transient networking glitch) try again in five seconds
1349 q->ThisQInterval = 0;
1387 q->ThisQInterval = (kLLQ_INIT_RESEND * mDNSPlatformOneSecond);
1476 if (question->ThisQInterval != -1)
1477 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1512 if (question->ThisQInterval != -1)
1513 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1547 if (question->ThisQInterval != -1)
1548 LogMsg("GetZoneData_QuestionCallback: Question %##s (%s) ThisQInterval %d not -1", question->qname.c, DNSTypeName(question->qtype), question->ThisQInterval);
1577 // stopped already. A value of -1 for ThisQInterval indicates that the question is not active
1579 zd->question.ThisQInterval = -1;
2254 if (m->ReverseMap.ThisQInterval != -1) return; // already running
2411 if (m->ReverseMap.ThisQInterval != -1) mDNS_StopQuery_internal(m, &m->ReverseMap);
3180 if (rr->nta->question.ThisQInterval != -1)
3182 ARDisplayString(m, rr), rr->nta->question.qname.c, DNSTypeName(rr->nta->question.qtype), rr->nta->question.ThisQInterval);
3483 q->ThisQInterval = INIT_UCAST_POLL_INTERVAL / QuestionIntervalStep;
3485 q->LastQTime = m->timenow - q->ThisQInterval;
3715 q->ThisQInterval = InitialQuestionInterval;
3716 q->LastQTime = m->timenow - q->ThisQInterval;
4222 LogInfo("uDNS_checkCurrentQuestion: Retrying question %p %##s (%s) DNS Server %#a:%d ThisQInterval %d",
4223 q, q->qname.c, DNSTypeName(q->qtype), new ? &new->addr : mDNSNULL, mDNSVal16(new ? new->port : zeroIPPort), q->ThisQInterval);
4245 q->ThisQInterval = INIT_UCAST_POLL_INTERVAL / QuestionIntervalStep;
4258 if (q->state == LLQ_Poll) q->ThisQInterval = (LLQ_POLL_INTERVAL + mDNSRandom(LLQ_POLL_INTERVAL/10)) / QuestionIntervalStep;
4274 q->ThisQInterval = q->ThisQInterval * QuestionIntervalStep; // Only increase interval if send succeeded
4276 if (q->ThisQInterval > MAX_UCAST_POLL_INTERVAL)
4277 q->ThisQInterval = MAX_UCAST_POLL_INTERVAL;
4282 if (q->ThisQInterval < (3 * mDNSPlatformOneSecond))
4283 q->ThisQInterval = q->ThisQInterval * QuestionIntervalStep;
4284 if (q->ThisQInterval > LLQ_POLL_INTERVAL)
4285 q->ThisQInterval = LLQ_POLL_INTERVAL;
4286 LogInfo("uDNS_CheckCurrentQuestion: private non polling question for %##s (%s) will be retried in %d ms", q->qname.c, DNSTypeName(q->qtype), q->ThisQInterval);
4288 debugf("Increased ThisQInterval to %d for %##s (%s)", q->ThisQInterval, q->qname.c, DNSTypeName(q->qtype));
4324 q->ThisQInterval = 0;
4332 q->ThisQInterval = q->ThisQInterval * QuestionIntervalStep;
4340 LogInfo("uDNS_checkCurrentQuestion: Tried all DNS servers, retry question %p SuppressUnusable %d %##s (%s) with DNS Server %#a:%d after 60 seconds, ThisQInterval %d",
4342 q->qDNSServer ? &q->qDNSServer->addr : mDNSNULL, mDNSVal16(q->qDNSServer ? q->qDNSServer->port : zeroIPPort), q->ThisQInterval);
4347 q->ThisQInterval = 0;