]> git.ipfire.org Git - thirdparty/pdns.git/commit
Better handling of reconnections in Remote Logger (dnsdist, rec)
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 3 Mar 2020 11:24:34 +0000 (12:24 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 6 Mar 2020 16:11:44 +0000 (17:11 +0100)
commitebf995258fbe844ba5af457c4e83ec1b9a09a0bf
tree4f239a0a7dfd9cb23dc17821d486fb68e4443729
parent8ad7250d5f4cdf20dcda52f5401f033c99313fd3
Better handling of reconnections in Remote Logger (dnsdist, rec)

- Do not lock while trying to reconnect ;
- Try to reconnect right away if the disconnection was detected in
  the maintenance thread ;
- Keep queueing messages when the connection has been lost, until
  the buffer gets full.
pdns/remote_logger.cc
pdns/remote_logger.hh