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.
return NGHTTP2_ERR_CALLBACK_FAILURE;
}
}
+ else if (frame->hd.type == NGHTTP2_PING) {
+ conn->d_needFlush = true;
+ }
return 0;
}