- Apr 08, 2014
-
-
Alexis Campailla authored
Re-applying commit 153784b3, which was overwritten by the update to openssl 1.0.1f. Original source: http://openssl.6102.n7.nabble.com/PATCH-s-client-Fix-keypress-requirement-with-redirected-input-on-Windows-td46787.html
-
Fedor Indutny authored
-
Fedor Indutny authored
Conflicts: deps/openssl/asm/x64-elf-gas/aes/vpaes-x86_64.s deps/openssl/asm/x64-macosx-gas/aes/vpaes-x86_64.s deps/openssl/asm/x64-win32-masm/aes/vpaes-x86_64.asm deps/openssl/openssl/CHANGES deps/openssl/openssl/Makefile deps/openssl/openssl/Makefile.org deps/openssl/openssl/NEWS deps/openssl/openssl/README deps/openssl/openssl/crypto/opensslv.h deps/openssl/openssl/openssl.spec deps/openssl/openssl/ssl/s23_clnt.c lib/http.js test/simple/test-http-client-readable.js
-
Fedor Indutny authored
-
Fedor Indutny authored
Socket may become not `readable`, but http should not rely on this property and should not think that it means that no data will ever arrive from it. In fact, it may arrive in a next tick and, since `this.push(null)` was already called, it will result in a error like this: Error: stream.push() after EOF at readableAddChunk (_stream_readable.js:143:15) at IncomingMessage.Readable.push (_stream_readable.js:123:10) at HTTPParser.parserOnBody (_http_common.js:132:22) at Socket.socketOnData (_http_client.js:277:20) at Socket.EventEmitter.emit (events.js:101:17) at Socket.Readable.read (_stream_readable.js:367:10) at Socket.socketCloseListener (_http_client.js:196:10) at Socket.EventEmitter.emit (events.js:123:20) at TCP.close (net.js:479:12) fix #6784
-
- Apr 07, 2014
-
-
Brian White authored
Signed-off-by:Fedor Indutny <fedor@indutny.com>
-
Saúl Ibarra Corretgé authored
-
Saúl Ibarra Corretgé authored
async, timer, prepare, idle and check handles no longer get a status parameter since they can never fail.
-
Fedor Indutny authored
-
- Apr 04, 2014
-
-
Evan Carroll authored
-
- Apr 03, 2014
-
-
Alex Kocharin authored
Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
- Apr 02, 2014
-
-
Dominic Tarr authored
when a pfx file is passed to tls.connection, it is the client private key, not the server's private key.
-
Yuki KAN authored
Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
C. Scott Ananian authored
This prevents segfaults when a native method is reassigned to a different object (which corrupts args.This()). When unwrapping, clients should use args.Holder() instead of args.This(). Closes #6690. Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
Nick Apperson authored
Increase the performance and simplify the logic of Buffer#write{U}Int* and Buffer#read{U}Int* methods by placing the byte manipulation code directly inline. Also improve the speed of buffer-write benchmarks by creating a new call directly to each method by using Function() instead of calling by buff[fn]. Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
Ben Noordhuis authored
The two biggest changes are that v8::Script::New() has been removed and that a v8::Script object now has to be explicitly bound to a context if you want to run it from another context. We can accommodate both changes without breaking the vm module's public API or even the internal JS API.
-
Ben Noordhuis authored
Fix up overzealous parses, strip whitespace from class and field names.
-
Ben Noordhuis authored
-
Andrew Low authored
The test/simple/test-smalloc.js has an implicit assumption of the byte order of the data stored for Double and Uint32 values. On a big endian platform this test fails without these patches. Use os.endianness() to detect the endian of the platform and use it to gate the static value used for comparison.
-
Trevor Norris authored
-
- Apr 01, 2014
-
-
Ben Noordhuis authored
Improve on commit b55c9d68 by not requiring that switches are comma separated. This commit makes `./configure --v8-options="--foo --bar"` work and takes special care to properly escape quotes in the options string.
-
James Pickard authored
By building the fs.Stats object in JS, which is returned by all fs stat functions, calls to v8::Object::Set() are removed. This also includes creating all associated Date objects in JS, rather than using v8::Date::New(). Both these changes have significant performance gains. Note that the returned value from fs.stat changes slightly for non-POSIX systems. Whereas before the stats object would be missing blocks and blksize keys, it now has these keys with undefined as the value. Signed-off-by:Trevor Norris <trev.norris@gmail.com>
-
- Mar 31, 2014
-
-
Goh Yisheng (Andrew) authored
-
- Mar 29, 2014
-
-
Fedor Indutny authored
Move `createCredentials` to `tls` module and rename it to `createSecureContext`. Make it use default values from `tls` module: `DEFAULT_CIPHERS` and `DEFAULT_ECDH_CURVE`. fix #7249
-
Fedor Indutny authored
Introduce a way to set some v8 flags at compile time, the values should be separated by comma.
-
Nathan Rajlich authored
Include the "expected protocol" in the Error message string, which evaluates to "http:" for the `http` core module, and "https:" for the `https` module. Closes #7355.
-
- Mar 28, 2014
-
-
dcarney@chromium.org authored
Original commit message below: fix FunctionCallbackInfo ambiguity - when compiling tools that embed v8 with g++ FunctionCallbackInfo is currently ambigous - more info: https://github.com/joyent/node/issues/7337 - original patch is here: https://codereview.appspot.com/78770045/ TBR=svenpanne@chromium.org Review URL: https://codereview.chromium.org/201573012 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@20217 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
-
Fedor Indutny authored
When asynchronously parsing ClientHello for session resumption - SNICallback may not be set. Check if it is present before invoking it. fix #7010
-
Fedor Indutny authored
These are an old and deprecated properties that was used by previous stream implementation, and are still in use in some user-land modules. Prior to this commit, they were read from the underlying socket, which may be non-readable/non-writable while connecting or while staying uninitialized. Force set them to `true`, just to make sure that there will be no inconsistency. fix #7152
-
Josh Dague authored
Previously the build artifacts did not include a signed timestamp, so when the certificate expired the validation of the artifact would fail. Now we sign against a timestamp server such that the artifact will always be valid regardless of the disposition of the certificate. Closes #7360 and #7059.
-
- Mar 26, 2014
-
-
Fedor Indutny authored
-
Fedor Indutny authored
Conflicts: src/node.cc src/node_crypto.cc src/node_crypto.h
-
Ben Noordhuis authored
Ensure that OpenSSL has enough entropy (at least 256 bits) for its PRNG. The entropy pool starts out empty and needs to fill up before the PRNG can be used securely. OpenSSL normally fills the pool automatically but not when someone starts generating random numbers before the pool is full: in that case OpenSSL keeps lowering the entropy estimate to thwart attackers trying to guess the initial state of the PRNG. When that happens, we wait until enough entropy is available, something that normally should never take longer than a few milliseconds. Fixes #7338.
-
Ben Noordhuis authored
The default entropy source is /dev/urandom on UNIX platforms, which is okay but we can do better by seeding it from OpenSSL's entropy pool. On Windows we can certainly do better; on that platform, V8 seeds the random number generator using only the current system time. Fixes #6250. NB: This is a back-port of commit 7ac23910 from the master branch that for some reason never got back-ported to the v0.10 branch. The default on UNIX platforms in v0.10 is different and arguably worse than it is with master: if no entropy source is provided, V8 3.14 calls srandom() with a xor of the PID and the current time in microseconds. That means that on systems with a coarse system clock, the initial state of the PRNG may be easily guessable. The situation on Windows is even more dire because there the PRNG is seeded with only the current time... in milliseconds.
-
isaacs authored
* Documentation upgrades * Fix glob bug which prevents proper README publishing * node-gyp upgrade to 0.13 * Documentation updates * Add --save-exact to save an exact dep (instead of a range) * alias 't' to 'test'
-
Nathan Rajlich authored
The `Agent#request()` function was removed in f3189ace, so don't use it in the documentation example. The function wasn't documented in the first place.
-
- Mar 25, 2014
-
-
Nathan Rajlich authored
Default to the `defaultAgent.protocol` when comparing the user-specified `options.protocol` string. This is so that `http.Agent` instances do not need to specify their own `protocol` field, since we have the relevant information already from the `defaultAgent`. Note that the test case could be separately cherry-picked to the `v0.10` branch, since it already passes correctly. Fixes #7349. Fixes the regression described in: http://git.io/2ds-WQ
-
- Mar 24, 2014
-
-
Ben Noordhuis authored
Turn off -Werror when building V8, it hits -Werror=unused-local-typedefs with g++ 4.8. The warning itself is harmless so don't abort the build. This was originally implemented in commit d2ab314e back in 2011 but the build process has gone through a few iterations since then, that change no longer works.
-
- Mar 21, 2014
-
-
Fedor Indutny authored
By default, each `v8::Context` has a different Security Token, which prevents access to one context from another. fix #7140
-
- Mar 18, 2014
-
-
Trevor Norris authored
Retrieve a new client object via PipeWrap::Instantiate(). This method performs appropriate checks to make sure everything is as it should be.
-