Commit 2b73522e authored by Simon Morlat's avatar Simon Morlat
Browse files

emulate DNS timeouts

parent 3b19c7e7
......@@ -242,6 +242,10 @@ static int resolver_process_data(belle_sip_simple_resolver_context_t *ctx, unsig
int error;
int gai_err;
/*Setting timeout to 0 can be used to simulate DNS timeout*/
if (belle_sip_stack_get_dns_timeout(ctx->base.stack)==0)
revents|=BELLE_SIP_EVENT_TIMEOUT;
if (revents & BELLE_SIP_EVENT_TIMEOUT) {
belle_sip_error("%s timed-out", __FUNCTION__);
notify_results(ctx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment