Agrego nuevo codigo de error timeout.
parent
01e3996254
commit
a90273808b
|
@ -793,7 +793,7 @@ int dns2_check_timeout (DNS2 *obj) {
|
||||||
obj->state = DNS_STATE_FREE;
|
obj->state = DNS_STATE_FREE;
|
||||||
obj->direction = DNS_POLL_WANT_NONE;
|
obj->direction = DNS_POLL_WANT_NONE;
|
||||||
|
|
||||||
return DNS_COMMAND_ERROR;
|
return DNS_COMMAND_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
obj->current_ns = _dns2_internal_get_next_ns (obj, NULL);
|
obj->current_ns = _dns2_internal_get_next_ns (obj, NULL);
|
||||||
|
@ -805,7 +805,7 @@ int dns2_check_timeout (DNS2 *obj) {
|
||||||
obj->state = DNS_STATE_FREE;
|
obj->state = DNS_STATE_FREE;
|
||||||
obj->direction = DNS_POLL_WANT_NONE;
|
obj->direction = DNS_POLL_WANT_NONE;
|
||||||
|
|
||||||
return DNS_COMMAND_ERROR;
|
return DNS_COMMAND_TIMEOUT;
|
||||||
}
|
}
|
||||||
return _dns2_internal_udp_create (obj);
|
return _dns2_internal_udp_create (obj);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
DNS_COMMAND_TIMEOUT = -3,
|
||||||
DNS_COMMAND_ERROR_UNSIGNED = -2,
|
DNS_COMMAND_ERROR_UNSIGNED = -2,
|
||||||
DNS_COMMAND_ERROR = -1,
|
DNS_COMMAND_ERROR = -1,
|
||||||
DNS_COMMAND_POLL = 0,
|
DNS_COMMAND_POLL = 0,
|
||||||
|
|
Loading…
Reference in New Issue