From 102939ada5bda712993541ef2a3bedd5b31316d2 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 14 Aug 2015 15:57:33 -0700 Subject: [PATCH] tls: fix throughput issues after incorrect merge 1e066e4a was done incorrectly and has overwritten an important change in: c17449df. Using bigger output buffer increases performance in 3-4 times. PR-URL: https://github.com/nodejs/node/pull/2381 Fix: https://github.com/joyent/node/issues/25803 Reviewed-By: Trevor Norris Reviewed-By: Sakthipriyan Vairamani --- src/tls_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls_wrap.h b/src/tls_wrap.h index b906d78de1f..7a9dc888ccb 100644 --- a/src/tls_wrap.h +++ b/src/tls_wrap.h @@ -53,7 +53,7 @@ class TLSWrap : public crypto::SSLWrap, size_t self_size() const override { return sizeof(*this); } protected: - static const int kClearOutChunkSize = 1024; + static const int kClearOutChunkSize = 16384; // Maximum number of bytes for hello parser static const int kMaxHelloLength = 16384;