diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-11-28 02:49:30 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-07 03:47:57 +0400 |
commit | 03747f69fba646dc9902519c1736d5f4f267ef7b (patch) | |
tree | 8f77bcc99ae036a4574926dbf63cdbe418499c6c /src/tls_wrap.h | |
parent | f5ab3e4c5cd37b76d60f657190b315183dbefeba (diff) | |
download | android-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.tar.gz android-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.tar.bz2 android-node-v8-03747f69fba646dc9902519c1736d5f4f267ef7b.zip |
tls_wrap: use writev when possible
Try writing multiple chunks from NodeBIO if possible.
Diffstat (limited to 'src/tls_wrap.h')
-rw-r--r-- | src/tls_wrap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls_wrap.h b/src/tls_wrap.h index 924a7243c4..a5090cbe83 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -68,6 +68,9 @@ class TLSCallbacks : public crypto::SSLWrap<TLSCallbacks>, protected: static const int kClearOutChunkSize = 1024; + // Maximum number of buffers passed to uv_write() + static const int kSimultaneousBufferCount = 10; + // Write callback queue's item class WriteItem { public: |