summaryrefslogtreecommitdiff
path: root/src/node_crypto_bio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_crypto_bio.h')
-rw-r--r--src/node_crypto_bio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node_crypto_bio.h b/src/node_crypto_bio.h
index 4794453ef..dc45faee2 100644
--- a/src/node_crypto_bio.h
+++ b/src/node_crypto_bio.h
@@ -87,7 +87,9 @@ class NodeBIO {
}
protected:
- static const size_t kBufferLength = 16 * 1024;
+ // NOTE: Size is maximum TLS frame length, this is required if we want
+ // to fit whole ClientHello into one Buffer of NodeBIO.
+ static const size_t kBufferLength = 16 * 1024 + 5;
class Buffer {
public: