Skip to content

Instantly share code, notes, and snippets.

@jgajek
Created March 28, 2016 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgajek/46607738aefc984ff0f5 to your computer and use it in GitHub Desktop.
Save jgajek/46607738aefc984ff0f5 to your computer and use it in GitHub Desktop.
if (!(statp->options & RES_IGNTC) && anhp->tc) {
/*
* To get the rest of answer,
* use TCP with same server.
*/
Dprint(statp->options & RES_DEBUG,
(stdout, ";; truncated answer\n"));
*v_circuit = 1;
__res_iclose(statp, false);
// XXX if we have received one reply we could
// XXX use it and not repeat it over TCP...
return (1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment