]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Reply to HTTP/2 PING frames immediately 14128/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 May 2024 12:28:12 +0000 (14:28 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 May 2024 12:28:12 +0000 (14:28 +0200)
commit4170083b33b171b150257311ef832c743f4d32c6
tree1a9cee88ef80f9d35ae977d5dcce6e18b6814545
parent5e386641f208cf843e40094269e12de4e84170c5
dnsdist: Reply to HTTP/2 PING frames immediately

We usually buffer a bit to avoid sending a lot of small data chunks
on the wire (or to the kernel anyway), but for `HTTP/2 PING` frames
that are not followed by anything else calling for a response, this
causes an issue as these frames are designed to measure the latency
between a client and a server, and are used by HTTP/2 proxies to
ensure that a connection can be reused.
pdns/dnsdistdist/dnsdist-nghttp2-in.cc