diff options
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r-- | lib/_tls_common.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js index 2c15d91df8..3040b3a5b4 100644 --- a/lib/_tls_common.js +++ b/lib/_tls_common.js @@ -133,6 +133,10 @@ exports.createSecureContext = function createSecureContext(options, context) { } } + // Do not keep read/write buffers in free list + if (options.singleUse) + c.context.setFreeListLength(0); + return c; }; |