From: varun-elear Date: Wed, 21 Apr 2021 10:36:42 +0000 (+0530) Subject: Increase DNS resolution timeout during join to 30 seconds X-Git-Url: http://git.meshlink.io/?a=commitdiff_plain;h=a4f9eca1b05d1b0cdb8854169bf1165ae4b99c0b;hp=fc07b9250cf8d9d705aa9723edbefd812f43404f;p=meshlink Increase DNS resolution timeout during join to 30 seconds --- diff --git a/src/meshlink.c b/src/meshlink.c index f6b12bd8..63feee2c 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -3154,7 +3154,7 @@ bool meshlink_join(meshlink_handle_t *mesh, const char *invitation) { } // Connect to the meshlink daemon mentioned in the URL. - struct addrinfo *ai = adns_blocking_request(mesh, xstrdup(address), xstrdup(port), SOCK_STREAM, 5); + struct addrinfo *ai = adns_blocking_request(mesh, xstrdup(address), xstrdup(port), SOCK_STREAM, 30); if(ai) { for(struct addrinfo *aip = ai; aip; aip = aip->ai_next) {