diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-29 19:35:43 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-06-11 20:24:44 +0200 |
commit | b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f (patch) | |
tree | 9db9a4b3ee06b8210c71c3aef87f9307a5beecd5 /lib/tls.js | |
parent | ff8202c6f475973c8674e61c794b77e1b072144b (diff) | |
download | android-node-v8-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.gz android-node-v8-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.tar.bz2 android-node-v8-b5b8ff117c8581945d0c8c3a4b18d53f4b33b86f.zip |
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.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tls.js b/lib/tls.js index 10c82860ba..714fdebfc0 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 |