]> granicus.if.org Git - pdns/commit
dnsdist: Fix TCP with Fast Open requested but unsupported
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 23 Jun 2017 08:35:03 +0000 (10:35 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 23 Jun 2017 08:35:03 +0000 (10:35 +0200)
commitd987f632e5ffb81cbc2a6c52e9508fc547f6b7e5
treebccf4d0ac271d65a9253434fb0749254fcf103bd
parent6944ee1433a3ced182dd7996f63e366167422910
dnsdist: Fix TCP with Fast Open requested but unsupported

If `tcpFastOpen` is set on a backend, we used to skip the
`connect()` call regardless of `MSG_FASTOPEN` availability.
We then tried to call `sendmsg()` (without `MSG_FASTOPEN`)
on an unconnected TCP socket, which failed.
pdns/dnsdist-lua.cc
pdns/dnsdist-tcp.cc