[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cach
From: |
Tim Rühsen |
Subject: |
Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444) |
Date: |
Mon, 26 Aug 2019 09:28:35 +0000 |
Tim Rühsen started a new discussion on async_dns/async_dns.c:
https://gitlab.com/gnuwget/wget2/merge_requests/444#note_207965350
> +static int TIMEOUT; // Max. number of ms for first try
> +
> +static int nwaiting;
> +
> +static int resolved;
> +static int failed;
> +
> +// create fname & set first row (needed for further processing with R)
> +static void prepare_file(const char *fname)
> +{
> + struct stat st;
> + FILE *fp;
> +
> + if ((stat(fname, &st) || !st.st_size) && (fp = fopen(fname, "a"))) {
> + const char *content =
> "MAXWAITING,TIMEOUT,MAXTRIES,RESOLVED,FAILED,TIME(sec)\n";
> + fwrite(content, 1, strlen(content), fp);
Use fputs() for constant strings.
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/444#note_207965350
You're receiving this email because of your account on gitlab.com.
- [Wget-dev] wget2 | Add c-ares support for quickly fill DNS cache in background (!444), DalmeGNU, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), Tim Rühsen, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444),
Tim Rühsen <=
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), Tim Rühsen, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), Tim Rühsen, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), DalmeGNU, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), DalmeGNU, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), Tim Rühsen, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), Tim Rühsen, 2019/08/26
- Re: [Wget-dev] wget2 | WIP: Add c-ares support for quickly fill DNS cache in background (!444), DalmeGNU, 2019/08/26