]> granicus.if.org Git - pdns/commit
Gracefully handle a reused downstream TCP connection dying on us
authorRemi Gacogne <rgacogne-github@coredump.fr>
Tue, 1 Dec 2015 13:24:26 +0000 (14:24 +0100)
committerRemi Gacogne <rgacogne-github@coredump.fr>
Tue, 1 Dec 2015 13:30:30 +0000 (14:30 +0100)
commit8b92100f1f563aed5e6567b5257b5520bcb955a8
tree3b431fd4bed602da6236b292e122e2ca8e9caac1
parent07443d1a03a72fcd694557929f8a5cde91af71cb
Gracefully handle a reused downstream TCP connection dying on us

In dnsdist, we try to reuse TCP connection to Downstream servers
as much as possible. However, when sending the size of a new
query, we didn't properly handle a connection being closed by the
downstream server.

Turns out, writing tests actually help finding bugs, who
would have thought?
pdns/dnsdist-tcp.cc