Ben Noordhuis [Sun, 21 Oct 2012 21:06:48 +0000 (23:06 +0200)]
Merge remote-tracking branch 'origin/v0.8'
Conflicts:
deps/openssl/openssl.gyp
Soarez [Thu, 18 Oct 2012 15:53:53 +0000 (16:53 +0100)]
streams: remove useless line
The removed line was removing a calllback that was never setup
in first place. 016afe2 forgot to remove this.
Ben Noordhuis [Sat, 20 Oct 2012 13:03:48 +0000 (15:03 +0200)]
node: update description of --print
Bert Belder [Wed, 17 Oct 2012 16:33:40 +0000 (18:33 +0200)]
uv: upgrade to 1e32cb0
isaacs [Tue, 16 Oct 2012 17:59:23 +0000 (10:59 -0700)]
doc: Typo. s/arguemnt/argument/
Nathan Rajlich [Mon, 15 Oct 2012 21:51:43 +0000 (14:51 -0700)]
test: disable global variable check for "test-repl-options.js"
Previously, the "global" mode of REPLs was broken when created after another
non-global REPL (they would end up sharing the same context). Now that "global"
mode is fixed for that case (
b1e78cef097c682ed63528ad7efe294b18a9fb1d), this
test case gets its global scope modified with "module" and other REPL-specific
properties, so disable the global check.
Ben Noordhuis [Wed, 19 Sep 2012 12:37:08 +0000 (14:37 +0200)]
configure: turn on VFPv3 on ARMv7
Fixes a V8 build error caused by missing arm_fpu and arm_neon settings.
This is a back-port of commit bbf6b4e from the master branch.
Fixes #4142.
Ben Noordhuis [Mon, 15 Oct 2012 21:40:15 +0000 (23:40 +0200)]
Revert "Disable OpenSSL UI"
This reverts commit
1c88c3b3b56c6047180e116c5614dad2b13995f9.
It breaks the "read a password from stdin" functionality that OpenSSL provides.
Fixes #4059, #4143.
Conflicts:
deps/openssl/openssl.gyp
Jan Lehnardt [Sun, 14 Oct 2012 12:44:06 +0000 (14:44 +0200)]
docs: fix copy and paste error
Nathan Rajlich [Sat, 13 Oct 2012 23:16:56 +0000 (16:16 -0700)]
Merge remote-tracking branch 'origin/v0.8'
Conflicts:
AUTHORS
ChangeLog
deps/uv/test/runner-win.c
doc/api/process.markdown
lib/repl.js
src/node_crypto.cc
src/node_version.h
Dean McNamee [Fri, 12 Oct 2012 23:24:25 +0000 (01:24 +0200)]
typed arrays: remove unnecessary special-casing
Uint32Value() on undefined is equal to 0, no need to special case it.
Dean McNamee [Fri, 12 Oct 2012 23:03:22 +0000 (01:03 +0200)]
typed arrays: simplify typed array get() and set()
Instead of duplicating V8's logic (including clamping), just simply call into
V8's Get() and Set() methods, which handles all conversions and typing.
Ben Noordhuis [Fri, 12 Oct 2012 13:27:47 +0000 (15:27 +0200)]
doc: rectify http.ClientResponse close/end events
* The 'close' event doesn't emit an error object.
* It's possible for a 'close' event to come after an 'end' event, contrary to
what the documentation said.
Fixes #4116.
Ben Noordhuis [Sat, 13 Oct 2012 00:49:53 +0000 (02:49 +0200)]
crypto: sort return value of getCiphers/getHashes
Ben Noordhuis [Sat, 13 Oct 2012 00:44:11 +0000 (02:44 +0200)]
crypto: add crypto.getHashes()
Ben Noordhuis [Fri, 12 Oct 2012 23:26:14 +0000 (01:26 +0200)]
crypto: add crypto.getCiphers()
Returns a list of, unsurprisingly, the available ciphers.
Nathan Rajlich [Fri, 12 Oct 2012 23:34:36 +0000 (16:34 -0700)]
repl: ensure each REPL instance gets its own "context"
Before there was this weird module-scoped "context" variable which seemingly
shared the "context" of subsequent REPL instances, unless ".clear" was invoked
inside the REPL. To be proper, we need to ensure that each REPL gets its own
"context" object. I literally don't know why this "sharing" behavior was in place
before, but it was just plain wrong.
Ben Noordhuis [Fri, 12 Oct 2012 23:22:05 +0000 (01:22 +0200)]
dgram: remove stale code
Max Ogden [Fri, 12 Oct 2012 18:31:59 +0000 (21:31 +0300)]
doc: set default background color to white
isaacs [Fri, 12 Oct 2012 18:44:02 +0000 (11:44 -0700)]
lint
isaacs [Fri, 12 Oct 2012 15:57:25 +0000 (08:57 -0700)]
Now working on 0.8.13
isaacs [Fri, 12 Oct 2012 15:57:12 +0000 (08:57 -0700)]
blog: Post about 0.8.12
isaacs [Fri, 12 Oct 2012 15:56:53 +0000 (08:56 -0700)]
Merge branch 'v0.8.12-release' into v0.8
isaacs [Thu, 11 Oct 2012 22:53:11 +0000 (15:53 -0700)]
string_decoder: Add 'end' method, do base64 properly
isaacs [Thu, 11 Oct 2012 21:22:13 +0000 (14:22 -0700)]
2012.10.12, Version 0.8.12 (Stable)
* npm: Upgrade to 1.1.63
* crypto: Reduce stability index to 2-Unstable (isaacs)
* windows: fix handle leak in uv_fs_utime (Bert Belder)
* windows: fix application crashed popup in debug version (Bert Belder)
* buffer: report proper retained size in profiler (Ben Noordhuis)
* buffer: fix byteLength with UTF-16LE (koichik)
* repl: make "end of input" JSON.parse() errors throw in the REPL (Nathan Rajlich)
* repl: make invalid RegExp modifiers throw in the REPL (Nathan Rajlich)
* http: handle multiple Proxy-Authenticate values (Willi Eggeling)
isaacs [Thu, 11 Oct 2012 21:11:38 +0000 (14:11 -0700)]
npm: Upgrade to 1.1.63
isaacs [Thu, 11 Oct 2012 15:32:36 +0000 (08:32 -0700)]
doc: Reduce crypto stability to 2-Unstable
Ben Noordhuis [Thu, 11 Oct 2012 12:36:23 +0000 (14:36 +0200)]
deps: upgrade libuv to 47b2cd3
Ben Noordhuis [Wed, 10 Oct 2012 22:44:49 +0000 (00:44 +0200)]
buffer: report proper retained size in profiler
Make buffers report the proper retained size in heap snapshots.
Before this commit, Buffer objects would show up in the heap profiler as being
only a few hundred bytes large, even if the actual buffer was many megabytes.
Nathan Rajlich [Wed, 10 Oct 2012 20:52:56 +0000 (13:52 -0700)]
util: add a "customInspect" option to `util.inspect()`
For disabling calling the custom `inspect()` function when defined on an object
that is being inspected.
Ben Noordhuis [Wed, 10 Oct 2012 21:07:33 +0000 (23:07 +0200)]
Update AUTHORS and .mailmap
Nathan Rajlich [Wed, 10 Oct 2012 01:47:08 +0000 (18:47 -0700)]
util: make `inspect()` accept an "options" argument
Consolidates all the formatting options into an "options" object argument.
This is so that we don't have to be constantly remembering the order of
the arguments and so that we can add more formatting options easily.
Closes #4085.
Bert Belder [Wed, 10 Oct 2012 15:18:48 +0000 (17:18 +0200)]
uv: upgrade to b0c1a38
Ben Noordhuis [Wed, 10 Oct 2012 00:17:32 +0000 (02:17 +0200)]
deps: upgrade libuv to cb03e3b
Ben Noordhuis [Sun, 7 Oct 2012 23:22:44 +0000 (01:22 +0200)]
https: fix renegotation attack protection
Listen for the 'clientError' event that is emitted when a renegotation attack
is detected and close the connection.
Fixes test/pummel/test-https-ci-reneg-attack.js
Ben Noordhuis [Tue, 9 Oct 2012 14:32:49 +0000 (16:32 +0200)]
tls: remove dead code
Remove dead code. Forgotten in 76ddf06.
Aaditya Bhatia [Tue, 9 Oct 2012 01:01:03 +0000 (18:01 -0700)]
cluster: make 'listening' handler see actual port
Make the 'listening' event handler in the master process see the actual port
that the worker bound to when the worker specified port 0, i.e. a random port.
Ricky Ng-Adam [Tue, 9 Oct 2012 08:14:00 +0000 (16:14 +0800)]
buffer: include encoding value in exception when invalid
Encoding failures can be somewhat confusing, especially when they are due to
control flow frameworks auto-filling parameters from the previous step output
values to functions (such as toString and write) that developers don't expect
to take an encoding parameter. By outputting the value as part of the message,
should make it easier to track down these sort of bugs.
Bert Belder [Mon, 8 Oct 2012 22:47:38 +0000 (00:47 +0200)]
windows: use USERPROFILE to get the user's home dir
Fixes #3461
Close #3462
Close #4093
Ben Noordhuis [Sun, 7 Oct 2012 22:00:30 +0000 (00:00 +0200)]
crypto: fix -Wtautological-compare warning
Andreas Madsen [Mon, 8 Oct 2012 17:10:29 +0000 (19:10 +0200)]
doc: consistent use of the callback argument
Ben Noordhuis [Mon, 8 Oct 2012 00:18:30 +0000 (02:18 +0200)]
tls: don't use a timer to track renegotiations
It makes tls.createSecurePair(null, true) hang until the timer expires.
Using a timer here is silly. Use a timestamp instead.
Ben Noordhuis [Sun, 7 Oct 2012 22:44:47 +0000 (00:44 +0200)]
deps: upgrade libuv to 40134c3
Ben Noordhuis [Sun, 7 Oct 2012 22:25:07 +0000 (00:25 +0200)]
test: write to temp dir, not fixtures dir
Andrew Paprocki [Sun, 7 Oct 2012 08:04:26 +0000 (10:04 +0200)]
Fix -Wsizeof-array-argument compiler warning.
Nathan Rajlich [Sun, 7 Oct 2012 18:27:14 +0000 (11:27 -0700)]
repl: dynamically lookup the require extensions for tab complete
Removes 2 TODO items
Ben Noordhuis [Sat, 6 Oct 2012 22:46:35 +0000 (00:46 +0200)]
Update LICENSE file.
Ben Noordhuis [Sat, 6 Oct 2012 21:04:30 +0000 (23:04 +0200)]
deps: upgrade libuv to b9ed1a6
Nathan Rajlich [Sat, 6 Oct 2012 01:33:28 +0000 (18:33 -0700)]
repl: move "isSyntaxError()" definition to the bottom
fixes lint "line length too long" error
Nathan Rajlich [Fri, 5 Oct 2012 23:48:13 +0000 (16:48 -0700)]
doc: document the custom "inspect()" function behavior
Closes #3361.
koichik [Tue, 2 Oct 2012 14:57:38 +0000 (23:57 +0900)]
buffer: fix byteLength with UTF-16LE
Fixes #4075.
isaacs [Thu, 4 Oct 2012 00:40:14 +0000 (17:40 -0700)]
Revert "http: make http.ServerResponse emit 'end'"
This reverts commit
790d651f0dfae13f1e2b799820ab18ac09f251b7.
This makes Duplex streams unworkable, and would only ever be a special
case for HTTP responses, which is not ideal.
Intead, we're going to just bless the 'finish' event for all Writable
streams in 0.10
Alex Kocharin [Wed, 3 Oct 2012 19:02:14 +0000 (23:02 +0400)]
doc: better example for process.hrtime()
Fixes #3984.
koichik [Thu, 12 Jan 2012 05:33:56 +0000 (14:33 +0900)]
streams: fix pipe is destructed by 'end' from destination
Ben Noordhuis [Wed, 3 Oct 2012 11:38:03 +0000 (13:38 +0200)]
doc: stream: clarify meaning of 'drain' some more
Courtesy of Lee Coltrane (@coltrane).
Ben Noordhuis [Mon, 1 Oct 2012 20:27:19 +0000 (22:27 +0200)]
doc: stream: clarify meaning of 'drain' event
Ben Noordhuis [Tue, 2 Oct 2012 12:49:43 +0000 (14:49 +0200)]
node_http_parser: fix whitespace errors
isaacs [Mon, 1 Oct 2012 21:30:02 +0000 (14:30 -0700)]
doc: Correct stream.write fd mention
No streams actually work this way.
Paul Serby [Mon, 1 Oct 2012 20:10:32 +0000 (22:10 +0200)]
path: add platform specific path delimiter
Closes #3728
Closes #4071
Nathan Rajlich [Mon, 1 Oct 2012 18:36:06 +0000 (11:36 -0700)]
repl: make "end of input" JSON.parse() errors throw in the REPL
Nathan Rajlich [Mon, 1 Oct 2012 05:43:35 +0000 (22:43 -0700)]
repl: make invalid RegExp modifiers throw in the REPL
Fixes #4012.
isaacs [Sun, 30 Sep 2012 22:47:27 +0000 (15:47 -0700)]
blog: s/LibUV/libuv/
isaacs [Sun, 30 Sep 2012 17:34:28 +0000 (10:34 -0700)]
blog: LXJS talk by @piscisaureus
isaacs [Fri, 28 Sep 2012 17:42:52 +0000 (10:42 -0700)]
test: Fix stdin message tests
isaacs [Fri, 28 Sep 2012 16:55:29 +0000 (09:55 -0700)]
test: Fix simple/test-http-client-timeout-agent
Merge breakage.
isaacs [Fri, 28 Sep 2012 16:47:48 +0000 (09:47 -0700)]
Merge remote-tracking branch 'ry/v0.8' into v0.8-merge
Conflicts:
AUTHORS
ChangeLog
deps/openssl/openssl.gyp
deps/uv/src/unix/linux/linux-core.c
deps/uv/src/unix/process.c
deps/uv/src/unix/stream.c
deps/v8/src/arm/builtins-arm.cc
deps/v8/src/arm/code-stubs-arm.cc
deps/v8/src/arm/full-codegen-arm.cc
lib/tls.js
src/node_version.h
test/simple/test-http-client-timeout-agent.js
Fedor Indutny [Fri, 28 Sep 2012 06:58:50 +0000 (10:58 +0400)]
debugger: test repeating last command
* debugger: Add NODE_FORCE_READLINE environment variable, handle
`SIGINT`'s sent to process while in this mode.
Alex Kocharin [Sat, 25 Aug 2012 19:25:32 +0000 (23:25 +0400)]
Fixed a bug with last command repeating in debugger
Pavel Lang [Tue, 18 Sep 2012 16:26:08 +0000 (18:26 +0200)]
http: add response.headersSent property
Boolean property getter. True if headers was sent, false otherwise.
thewilli [Mon, 24 Sep 2012 08:18:05 +0000 (11:18 +0300)]
http: handle multiple Proxy-Authenticate values
Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
be received several times as well. Currently only one value is preserved. This
change allows to receive multiple values concatenated by space and comma.
isaacs [Thu, 27 Sep 2012 20:25:55 +0000 (13:25 -0700)]
doc: Make the CLA more simple/sane
1. Emails should go to @isaacs, not emily.
2. Ask for the electronic signature first, not the printed faxed thing.
isaacs [Thu, 27 Sep 2012 17:25:37 +0000 (10:25 -0700)]
blog: Post about 0.8.11
isaacs [Thu, 27 Sep 2012 17:25:12 +0000 (10:25 -0700)]
Now working on 0.8.12
isaacs [Thu, 27 Sep 2012 17:24:32 +0000 (10:24 -0700)]
Merge branch 'v0.8.11-release' into v0.8
isaacs [Thu, 27 Sep 2012 16:39:23 +0000 (09:39 -0700)]
2012.09.27, Version 0.8.11 (Stable)
* fs: Fix stat() size reporting for large files (Ben Noordhuis)
thewilli [Mon, 24 Sep 2012 08:18:05 +0000 (11:18 +0300)]
http: handle multiple Proxy-Authenticate values
Just as the 'WWW-Authenticate' HTTP header the 'Proxy-Authenticate' header might
be received several times as well. Currently only one value is preserved. This
change allows to receive multiple values concatenated by space and comma.
Bert Belder [Tue, 25 Sep 2012 23:56:42 +0000 (01:56 +0200)]
test: pick another CNAME record to test dns queries
Google.com no longer has a CNAME record.
Ben Noordhuis [Tue, 25 Sep 2012 23:20:08 +0000 (01:20 +0200)]
fs: fix stat() reporting for large files
Use Number::New(), not Integer::New(). Large values won't fit in an Integer.
Apply to the size, ino and blocks fields.
isaacs [Tue, 25 Sep 2012 22:37:53 +0000 (15:37 -0700)]
blog: Post about v0.8.10
isaacs [Tue, 25 Sep 2012 22:36:10 +0000 (15:36 -0700)]
Now working on 0.8.11
isaacs [Tue, 25 Sep 2012 22:33:01 +0000 (15:33 -0700)]
Merge branch 'v0.8.10-release' into v0.8
isaacs [Tue, 25 Sep 2012 15:09:30 +0000 (08:09 -0700)]
2012.09.25, Version 0.8.10 (Stable)
* npm: Upgrade to 1.1.62
* repl: make invalid RegExps throw in the REPL (Nathan Rajlich)
* v8: loosen artificial mmap constraint (Bryan Cantrill)
* process: fix setuid() and setgid() error reporting (Ben Noordhuis)
* domain: Properly exit() on domain disposal (isaacs)
* fs: fix watchFile() missing deletion events (Ben Noordhuis)
* fs: fix assert in fs.watch() (Ben Noordhuis)
* fs: don't segfault on deeply recursive stat() (Ben Noordhuis)
* http: Remove timeout handler when data arrives (Frédéric Germain)
* http: make the client "res" object gets the same domain as "req" (Nathan Rajlich)
* windows: don't blow up when an invalid FD is used (Bert Belder)
* unix: map EDQUOT to UV_ENOSPC (Charlie McConnell)
* linux: improve /proc/cpuinfo parser (Ben Noordhuis)
* win/tty: reset background brightness when color is set to default (Bert Belder)
* unix: put child process stdio fds in blocking mode (Ben Noordhuis)
* unix: fix EMFILE busy loop (Ben Noordhuis)
* sunos: don't set TCP_KEEPALIVE (Ben Noordhuis)
* tls: Use slab allocator for memory management (Fedor Indutny)
* openssl: Use optimized assembly code for x86 and x64 (Bert Belder)
Bert Belder [Tue, 25 Sep 2012 19:25:55 +0000 (21:25 +0200)]
openssl: fix compilation issues on SmartOS x64
the SunOS linker is more strict than usual, so we have to be more
correct.
isaacs [Tue, 25 Sep 2012 18:15:44 +0000 (11:15 -0700)]
test: Fix premature close in test-http-client-timeout-agent
isaacs [Tue, 25 Sep 2012 18:09:34 +0000 (11:09 -0700)]
tls: lint
cc @indutny >_<
isaacs [Tue, 25 Sep 2012 18:08:44 +0000 (11:08 -0700)]
domain: Remove stray console.log
Bert Belder [Wed, 12 Sep 2012 23:50:38 +0000 (01:50 +0200)]
openssl: use optimized asm code on x86 and x64
Bert Belder [Sat, 8 Sep 2012 00:43:18 +0000 (02:43 +0200)]
openssl: add generated asm code
Bert Belder [Fri, 21 Sep 2012 16:03:28 +0000 (18:03 +0200)]
openssl: add 'clean' target to asm Makefile
Ben Noordhuis [Mon, 10 Sep 2012 16:35:58 +0000 (18:35 +0200)]
openssl: generate asm code with a Makefile
Bert Belder [Fri, 21 Sep 2012 16:07:08 +0000 (18:07 +0200)]
openssl: disable HT sidechannel attack mitigation
It used to be off before. It's extremely unlikely that such an attack
would be a viable attack against node. And it makes AES much slower.
Bert Belder [Wed, 12 Sep 2012 23:11:06 +0000 (01:11 +0200)]
openssl: revert empty_OPENSSL_cpuid_setup.patch
Bert Belder [Wed, 12 Sep 2012 23:03:50 +0000 (01:03 +0200)]
openssl: fix perlasm issue
When perlasm generates MASM code it sets the assembler target to 468.
In this mode MASM refuses to assemble the CPUID instruction. Bumping
the target to 586 solves this problem.
Bert Belder [Sat, 8 Sep 2012 00:08:22 +0000 (02:08 +0200)]
openssl: add optimized bignum x64 asm code for windows
Fedor Indutny [Thu, 5 Jul 2012 19:50:21 +0000 (15:50 -0400)]
tls: use slab allocator
isaacs [Tue, 25 Sep 2012 15:28:55 +0000 (08:28 -0700)]
npm: upgrade to 1.1.62
Shigeki Ohtsu [Tue, 25 Sep 2012 06:00:01 +0000 (15:00 +0900)]
test: fix failing due to too early timeout
Adam Blackburn [Sat, 22 Sep 2012 22:48:47 +0000 (16:48 -0600)]
doc: put API table of contents in alphabetical order
Bert Belder [Mon, 24 Sep 2012 22:50:37 +0000 (00:50 +0200)]
windows: fix typo in node.gyp
Nathan Rajlich [Mon, 24 Sep 2012 18:30:26 +0000 (11:30 -0700)]
http: make the client "res" object gets the same domain as "req"
Fixes #4046.