diff options
author | Anatoli Papirovski <apapirovski@mac.com> | 2017-10-05 16:16:20 -0400 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2017-10-21 09:48:36 -0400 |
commit | aaf2a1c2264fffd6eea82fe3778f41ac046e6349 (patch) | |
tree | 0174f50a01102dfc140cd27bf8b32f3ae93efa7a /src/tls_wrap.h | |
parent | fe13e0077f5923e327465c9cd00d344cefee800f (diff) | |
download | android-node-v8-aaf2a1c2264fffd6eea82fe3778f41ac046e6349.tar.gz android-node-v8-aaf2a1c2264fffd6eea82fe3778f41ac046e6349.tar.bz2 android-node-v8-aaf2a1c2264fffd6eea82fe3778f41ac046e6349.zip |
tls: properly track writeQueueSize during writes
Make writeQueueSize represent the actual size of the write queue
within the TLS socket. Add tls test to confirm that bufferSize
works as expected.
PR-URL: https://github.com/nodejs/node/pull/15791
Fixes: https://github.com/nodejs/node/issues/15005
Refs: https://github.com/nodejs/node/pull/15006
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index fe3abe04f5..8d75d6fcc9 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -132,6 +132,7 @@ class TLSWrap : public AsyncWrap, AsyncWrap* GetAsyncWrap() override; bool IsIPCPipe() override; + uint32_t UpdateWriteQueueSize(uint32_t write_queue_size = 0); // Resource implementation static void OnAfterWriteImpl(WriteWrap* w, void* ctx); |