]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add `tcpConnectTimeout` to `newServer()` 4818/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 23 Dec 2016 17:11:19 +0000 (18:11 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Jan 2017 14:21:50 +0000 (15:21 +0100)
commitb40cffe7556afbf1745c31b42da2586477a6d6e2
tree56cbef2fd64240fa15d6a99c7618c9e085325a8a
parentb257c6b9dc74aa7f29365429b424dee488bf299c
dnsdist: Add `tcpConnectTimeout` to `newServer()`

While we already timeouts when writing to or reading from TCP backends,
the initial connection attempt was blocking. In addition to that, if the
connection to the backend failed we didn't retry and simply closed the
corresponding connection to the client. We now retry up to `retries` times,
as we did for I/O errors.
pdns/README-dnsdist.md
pdns/dnsdist-console.cc
pdns/dnsdist-lua.cc
pdns/dnsdist-tcp.cc
pdns/dnsdist.hh