resolver: Remove effectively unused 'resend' flag.
This commit is contained in:
parent
dd1bfa0de1
commit
8e9623ab59
1 changed files with 0 additions and 5 deletions
|
@ -66,7 +66,6 @@ struct reslist
|
||||||
char queryname[128]; /* name currently being queried */
|
char queryname[128]; /* name currently being queried */
|
||||||
char retries; /* retry counter */
|
char retries; /* retry counter */
|
||||||
char sends; /* number of sends (>1 means resent) */
|
char sends; /* number of sends (>1 means resent) */
|
||||||
char resend; /* send flag. 0 == dont resend */
|
|
||||||
time_t sentat;
|
time_t sentat;
|
||||||
time_t timeout;
|
time_t timeout;
|
||||||
struct rb_sockaddr_storage addr;
|
struct rb_sockaddr_storage addr;
|
||||||
|
@ -287,7 +286,6 @@ static struct reslist *make_request(struct DNSQuery *query)
|
||||||
|
|
||||||
request->sentat = rb_current_time();
|
request->sentat = rb_current_time();
|
||||||
request->retries = 3;
|
request->retries = 3;
|
||||||
request->resend = 1;
|
|
||||||
request->timeout = 4; /* start at 4 and exponential inc. */
|
request->timeout = 4; /* start at 4 and exponential inc. */
|
||||||
request->query = query;
|
request->query = query;
|
||||||
|
|
||||||
|
@ -506,9 +504,6 @@ static void query_name(struct reslist *request)
|
||||||
|
|
||||||
static void resend_query(struct reslist *request)
|
static void resend_query(struct reslist *request)
|
||||||
{
|
{
|
||||||
if (request->resend == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (request->type)
|
switch (request->type)
|
||||||
{
|
{
|
||||||
case T_PTR:
|
case T_PTR:
|
||||||
|
|
Loading…
Reference in a new issue