From 41637a530efb761c713a36f1465cc5ea9b976900 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Thu, 15 Aug 2019 15:03:43 +0200 Subject: [PATCH] http2: remove callback-based padding This option is not useful in practice, as mentioned in comments and the documentation, because the overhead of calling into JS makes it unreasonably expensive. PR-URL: https://github.com/nodejs/node/pull/29144 Reviewed-By: James M Snell Reviewed-By: Rich Trott --- doc/api/http2.md | 58 +++++--------------- lib/internal/http2/core.js | 19 ------- src/env.h | 1 - src/node_http2.cc | 43 +-------------- src/node_http2.h | 10 +--- src/node_http2_state.h | 14 ----- test/parallel/test-http2-padding-aligned.js | 5 +- test/parallel/test-http2-padding-callback.js | 51 ----------------- 8 files changed, 25 insertions(+), 176 deletions(-) delete mode 100644 test/parallel/test-http2-padding-callback.js diff --git a/doc/api/http2.md b/doc/api/http2.md index 805a720a79ccee..4dac23b0395a3a 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1929,6 +1929,11 @@ error will be thrown.