+ * Do not free something twice if query fails and is then cancelled.
* Do not spin if TCP connection blocks for writing (and add test case).
* Fail queries if TCP dies repeatedly, rather than retrying many times.
* Do not abort in a couple of places if TCP unexpectedly broken.
* Do not spin if TCP connection blocks for writing (and add test case).
* Fail queries if TCP dies repeatedly, rather than retrying many times.
* Do not abort in a couple of places if TCP unexpectedly broken.
+ * Do not free something twice if query fails and is then cancelled.
Portability/compilation fixes:
* Move `extern "C" {' to after #include <...>'s.
Portability/compilation fixes:
* Move `extern "C" {' to after #include <...>'s.
adns__vbuf_free(&qu->vb);
adns__vbuf_free(&qu->search_vb);
free(qu->query_dgram);
adns__vbuf_free(&qu->vb);
adns__vbuf_free(&qu->search_vb);
free(qu->query_dgram);
}
void adns_cancel(adns_query qu) {
}
void adns_cancel(adns_query qu) {