Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2015-05-29 20:35:43 +0300
committerRoman Reiss <me@silverwind.io>2015-06-11 21:24:44 +0300
commitb5b8ff117c8581945d0c8c3a4b18d53f4b33b86f (patch)
tree9db9a4b3ee06b8210c71c3aef87f9307a5beecd5 /lib/tls.js
parentff8202c6f475973c8674e61c794b77e1b072144b (diff)
lib: don't use global Buffer
Port of https://github.com/joyent/node/pull/8603 The race condition present in the original PR didn't occur, so no workaround was needed. PR-URL: https://github.com/nodejs/io.js/pull/1794 Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tls.js b/lib/tls.js
index 10c82860ba8..714fdebfc07 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -4,6 +4,7 @@ const net = require('net');
const url = require('url');
const util = require('util');
const binding = process.binding('crypto');
+const Buffer = require('buffer').Buffer;
// Allow {CLIENT_RENEG_LIMIT} client-initiated session renegotiations
// every {CLIENT_RENEG_WINDOW} seconds. An error event is emitted if more