]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix unlimited retries when TCP Fast Open is enabled 8079/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 Jul 2019 13:07:10 +0000 (15:07 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 Jul 2019 13:59:50 +0000 (15:59 +0200)
commita4aa1f330423a2d3a86b22779a70c04a5fc65a55
tree35812c0faa11fb22b3f060d3afc606ef7999f380
parent1573e7b893f41b0e861bd4778e6985b9fbeb6e3c
dnsdist: Fix unlimited retries when TCP Fast Open is enabled

Using the same flag to indicate whether a connection was reused
after being pulled from the pool AND to know if the TFO flag should
be passed to sendmsg() led to an unlimited number of reconnection
attemps when TFO was enabled and the backend closed the connection
right after a write (sendmsg() succeeds then read() returns 0 right
away).
pdns/dnsdist-tcp.cc