[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:29:23 +0000 |
Tim Rühsen started a new discussion on async_dns/async_dns.c:
https://gitlab.com/gnuwget/wget2/merge_requests/444#note_207965679
> + FILE *fp;
> + char *buf = malloc(1024);
> + prepare_file(fname);
> + if ((fp = fopen(fname, "a"))) {
> + snprintf(buf, 1024, "%d,%d,%d,%d,%d,%ld\n", MAXWAITING,
> TIMEOUT, MAXTRIES, resolved, failed, exec_time_);
> + fwrite(buf, 1, strlen(buf), fp);
> + fclose(fp);
> + }
> + free(buf);
> +}
> +
> +static void callback(void *arg, int status, int timeouts, struct hostent
> *host)
> +{
> + nwaiting--;
> +
> + if(!host || status != ARES_SUCCESS){
space after if
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/merge_requests/444#note_207965679
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, 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), 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
- 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