]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Reply to HTTP/2 PING frames immediately 14163/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 3 May 2024 12:28:12 +0000 (14:28 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 13 May 2024 14:20:56 +0000 (16:20 +0200)
commit3a22845932e0fbc5a5f4434e33797d0cb9f3eb75
treea83612fafd0e005d702a7844e44da1106ee75f8e
parent60ac0df284e6739a464a89ba348c80999229ed4c
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.

(cherry picked from commit 4170083b33b171b150257311ef832c743f4d32c6)
pdns/dnsdistdist/dnsdist-nghttp2-in.cc