aboutsummaryrefslogtreecommitdiff
path: root/src/node_http2.h
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-02-22 13:48:06 +0100
committerAnna Henningsen <anna@addaleax.net>2018-03-11 20:16:21 +0100
commit90e70b8caf26b73241c6f002c53d8cc96b6496b5 (patch)
tree0a0bee7b695131355e3850dc8bb3e536ce9f4093 /src/node_http2.h
parent98a14e026bab0bda4013f75d1d0968a12fe5117f (diff)
downloadandroid-node-v8-90e70b8caf26b73241c6f002c53d8cc96b6496b5.tar.gz
android-node-v8-90e70b8caf26b73241c6f002c53d8cc96b6496b5.tar.bz2
android-node-v8-90e70b8caf26b73241c6f002c53d8cc96b6496b5.zip
http2: simplify timeout tracking
There’s no need to reset the chunk counter for every write. PR-URL: https://github.com/nodejs/node/pull/19206 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_http2.h')
-rw-r--r--src/node_http2.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index 8f6662a016..08109dcf04 100644
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -884,8 +884,6 @@ class Http2Session : public AsyncWrap, public StreamListener {
// Write data to the session
inline ssize_t Write(const uv_buf_t* bufs, size_t nbufs);
- inline void SetChunksSinceLastWrite(size_t n = 0);
-
size_t self_size() const override { return sizeof(*this); }
inline void GetTrailers(Http2Stream* stream, uint32_t* flags);