]> granicus.if.org Git - neomutt/commitdiff
add logging around getaddrinfo()
authorRichard Russon <rich@flatcap.org>
Thu, 23 Nov 2017 20:25:48 +0000 (20:25 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 26 Nov 2017 22:43:48 +0000 (22:43 +0000)
If the user's networking isn't set up correctly, this call can
potentially take several seconds to timeout.

conn/getdomain.c

index e9540107c5123e7c65823eb84f9ee6a5d95ccfe0..6418b5190e0cb9b8ce56645b116697cb203c7032 100644 (file)
@@ -99,7 +99,9 @@ int getdnsdomainname(char *d, size_t len)
 
 #else /* !HAVE_GETADDRINFO_A */
 
+  mutt_debug(3, "before getaddrinfo\n");
   getaddrinfo(node, NULL, &hints, &h);
+  mutt_debug(3, "after getaddrinfo\n");
 
 #endif