From 99e32f1e46749d380edbe3c8543e847c2a010165 Mon Sep 17 00:00:00 2001 From: "Maciej S. Szmigiero" Date: Sun, 24 Mar 2019 00:40:19 +0100 Subject: [PATCH] Increase anchor fetch timeout in tas_doc_read() tas_doc_read() uses a very short 50 msec network read timeout which makes fetching trust anchors pretty much impossible on high-latency connections like 3G. Use a 2 second read timeout, just like the other tas_read_cb() callback setter does. --- src/anchor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anchor.c b/src/anchor.c index 1d685130..09f71232 100644 --- a/src/anchor.c +++ b/src/anchor.c @@ -750,7 +750,7 @@ static void tas_doc_read(getdns_context *context, tas_connection *a) a->tcp.read_pos = a->tcp.read_buf; a->tcp.to_read = sizeof(context->tas_hdr_spc); } - GETDNS_SCHEDULE_EVENT(a->loop, a->fd, 50, + GETDNS_SCHEDULE_EVENT(a->loop, a->fd, 2000, getdns_eventloop_event_init(&a->event, a->req->owner, tas_read_cb, NULL, tas_reconnect_cb)); return;