Agrego nuevo codigo de error timeout.

master
Félix Arreola Rodríguez 2022-09-17 20:21:20 -05:00
parent 01e3996254
commit a90273808b
2 changed files with 3 additions and 2 deletions

View File

@ -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);
} }

View File

@ -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,