]> granicus.if.org Git - libevent/commit
Merge branch 'evdns-tcp-pr-1004'
authorAzat Khuzhin <azat@libevent.org>
Mon, 25 May 2020 00:13:00 +0000 (03:13 +0300)
committerAzat Khuzhin <azat@libevent.org>
Mon, 25 May 2020 00:14:26 +0000 (03:14 +0300)
commit028842aacb235256daf38e7f7a1c3eebc036fb18
tree37561d2fc67e197533db9ab145762e2ea431186e
parente8c8951029a0a084dd73b27e6dc3b637a7c914db
parent2c2248eaee8b7dae77bc4b6e783f5e17b73764d1
Merge branch 'evdns-tcp-pr-1004'

@seleznevae:

  "Added support for DNS requests via TCP. By default, requests are done
   via UDP. In case truncated response is received new attempt is done
   via TCP connection. Added 2 new macros DNS_QUERY_USEVC and
   DNS_QUERY_IGNTC to force all requests to be done via TCP and to disable
   switch to TCP in case of truncated responses.

   Also added possibility for DNS server to listen and receive requests on
   TCP port. Current implementation of TCP support in DNS server seems
   rather preliminary and maybe changes after discussion and code review.

   Fallback to TCP in case of truncated DNS requests is done automatically.
   To imitate the old behaviour macros DNS_QUERY_IGNTC should be used. To
   force all DNS requests to be done via TCP one should use the flag
   DNS_QUERY_USEVC. Names DNS_QUERY_IGNTC, DNS_QUERY_USEVC were chosen to
   imitate similar flags in c-ares and glibc."

Ok, interfaces looks good, merging to avoid stalling it for too long.

* evdns-tcp-pr-1004:
  evdns: fix coding style issues
  evdns: fix trailing whitespaces
  evdns: bufferevent_setcb before bufferevent_free is redundant
  evdns: Implement dns requests via tcp
test/regress_http.c