platform/upstream/nodejs.git
11 years agoMerge remote-tracking branch 'origin/v0.8'
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

11 years agotyped arrays: remove unnecessary special-casing
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.

11 years agotyped arrays: simplify typed array get() and set()
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.

11 years agodoc: rectify http.ClientResponse close/end events
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.

11 years agocrypto: sort return value of getCiphers/getHashes
Ben Noordhuis [Sat, 13 Oct 2012 00:49:53 +0000 (02:49 +0200)]
crypto: sort return value of getCiphers/getHashes

11 years agocrypto: add crypto.getHashes()
Ben Noordhuis [Sat, 13 Oct 2012 00:44:11 +0000 (02:44 +0200)]
crypto: add crypto.getHashes()

11 years agocrypto: add crypto.getCiphers()
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.

11 years agorepl: ensure each REPL instance gets its own "context"
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.

11 years agodgram: remove stale code
Ben Noordhuis [Fri, 12 Oct 2012 23:22:05 +0000 (01:22 +0200)]
dgram: remove stale code

11 years agodoc: set default background color to white
Max Ogden [Fri, 12 Oct 2012 18:31:59 +0000 (21:31 +0300)]
doc: set default background color to white

11 years agolint
isaacs [Fri, 12 Oct 2012 18:44:02 +0000 (11:44 -0700)]
lint

11 years agoNow working on 0.8.13
isaacs [Fri, 12 Oct 2012 15:57:25 +0000 (08:57 -0700)]
Now working on 0.8.13

11 years agoblog: Post about 0.8.12
isaacs [Fri, 12 Oct 2012 15:57:12 +0000 (08:57 -0700)]
blog: Post about 0.8.12

11 years agoMerge branch 'v0.8.12-release' into v0.8
isaacs [Fri, 12 Oct 2012 15:56:53 +0000 (08:56 -0700)]
Merge branch 'v0.8.12-release' into v0.8

11 years agostring_decoder: Add 'end' method, do base64 properly
isaacs [Thu, 11 Oct 2012 22:53:11 +0000 (15:53 -0700)]
string_decoder: Add 'end' method, do base64 properly

11 years ago2012.10.12, Version 0.8.12 (Stable) v0.8.12
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)

11 years agonpm: Upgrade to 1.1.63
isaacs [Thu, 11 Oct 2012 21:11:38 +0000 (14:11 -0700)]
npm: Upgrade to 1.1.63

11 years agodoc: Reduce crypto stability to 2-Unstable
isaacs [Thu, 11 Oct 2012 15:32:36 +0000 (08:32 -0700)]
doc: Reduce crypto stability to 2-Unstable

11 years agodeps: upgrade libuv to 47b2cd3
Ben Noordhuis [Thu, 11 Oct 2012 12:36:23 +0000 (14:36 +0200)]
deps: upgrade libuv to 47b2cd3

11 years agobuffer: report proper retained size in profiler
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.

11 years agoutil: add a "customInspect" option to `util.inspect()`
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.

11 years agoUpdate AUTHORS and .mailmap
Ben Noordhuis [Wed, 10 Oct 2012 21:07:33 +0000 (23:07 +0200)]
Update AUTHORS and .mailmap

11 years agoutil: make `inspect()` accept an "options" argument
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.

11 years agouv: upgrade to b0c1a38
Bert Belder [Wed, 10 Oct 2012 15:18:48 +0000 (17:18 +0200)]
uv: upgrade to b0c1a38

11 years agodeps: upgrade libuv to cb03e3b
Ben Noordhuis [Wed, 10 Oct 2012 00:17:32 +0000 (02:17 +0200)]
deps: upgrade libuv to cb03e3b

11 years agohttps: fix renegotation attack protection
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

11 years agotls: remove dead code
Ben Noordhuis [Tue, 9 Oct 2012 14:32:49 +0000 (16:32 +0200)]
tls: remove dead code

Remove dead code. Forgotten in 76ddf06.

11 years agocluster: make 'listening' handler see actual port
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.

11 years agobuffer: include encoding value in exception when invalid
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.

11 years agowindows: use USERPROFILE to get the user's home dir
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

11 years agocrypto: fix -Wtautological-compare warning
Ben Noordhuis [Sun, 7 Oct 2012 22:00:30 +0000 (00:00 +0200)]
crypto: fix -Wtautological-compare warning

11 years agodoc: consistent use of the callback argument
Andreas Madsen [Mon, 8 Oct 2012 17:10:29 +0000 (19:10 +0200)]
doc: consistent use of the callback argument

11 years agotls: don't use a timer to track renegotiations
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.

11 years agodeps: upgrade libuv to 40134c3
Ben Noordhuis [Sun, 7 Oct 2012 22:44:47 +0000 (00:44 +0200)]
deps: upgrade libuv to 40134c3

11 years agotest: write to temp dir, not fixtures dir
Ben Noordhuis [Sun, 7 Oct 2012 22:25:07 +0000 (00:25 +0200)]
test: write to temp dir, not fixtures dir

11 years agoFix -Wsizeof-array-argument compiler warning.
Andrew Paprocki [Sun, 7 Oct 2012 08:04:26 +0000 (10:04 +0200)]
Fix -Wsizeof-array-argument compiler warning.

11 years agorepl: dynamically lookup the require extensions for tab complete
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

11 years agoUpdate LICENSE file.
Ben Noordhuis [Sat, 6 Oct 2012 22:46:35 +0000 (00:46 +0200)]
Update LICENSE file.

11 years agodeps: upgrade libuv to b9ed1a6
Ben Noordhuis [Sat, 6 Oct 2012 21:04:30 +0000 (23:04 +0200)]
deps: upgrade libuv to b9ed1a6

11 years agorepl: move "isSyntaxError()" definition to the bottom
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

11 years agodoc: document the custom "inspect()" function behavior
Nathan Rajlich [Fri, 5 Oct 2012 23:48:13 +0000 (16:48 -0700)]
doc: document the custom "inspect()" function behavior

Closes #3361.

11 years agobuffer: fix byteLength with UTF-16LE
koichik [Tue, 2 Oct 2012 14:57:38 +0000 (23:57 +0900)]
buffer: fix byteLength with UTF-16LE

Fixes #4075.

11 years agoRevert "http: make http.ServerResponse emit 'end'"
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

11 years agodoc: better example for process.hrtime()
Alex Kocharin [Wed, 3 Oct 2012 19:02:14 +0000 (23:02 +0400)]
doc: better example for process.hrtime()

Fixes #3984.

11 years agostreams: fix pipe is destructed by 'end' from destination
koichik [Thu, 12 Jan 2012 05:33:56 +0000 (14:33 +0900)]
streams: fix pipe is destructed by 'end' from destination

11 years agodoc: stream: clarify meaning of 'drain' some more
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).

11 years agodoc: stream: clarify meaning of 'drain' event
Ben Noordhuis [Mon, 1 Oct 2012 20:27:19 +0000 (22:27 +0200)]
doc: stream: clarify meaning of 'drain' event

11 years agonode_http_parser: fix whitespace errors
Ben Noordhuis [Tue, 2 Oct 2012 12:49:43 +0000 (14:49 +0200)]
node_http_parser: fix whitespace errors

11 years agodoc: Correct stream.write fd mention
isaacs [Mon, 1 Oct 2012 21:30:02 +0000 (14:30 -0700)]
doc: Correct stream.write fd mention

No streams actually work this way.

11 years agopath: add platform specific path delimiter
Paul Serby [Mon, 1 Oct 2012 20:10:32 +0000 (22:10 +0200)]
path: add platform specific path delimiter

Closes #3728
Closes #4071

11 years agorepl: make "end of input" JSON.parse() errors throw in the REPL
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

11 years agorepl: make invalid RegExp modifiers 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.

11 years agoblog: s/LibUV/libuv/
isaacs [Sun, 30 Sep 2012 22:47:27 +0000 (15:47 -0700)]
blog: s/LibUV/libuv/

11 years agoblog: LXJS talk by @piscisaureus
isaacs [Sun, 30 Sep 2012 17:34:28 +0000 (10:34 -0700)]
blog: LXJS talk by @piscisaureus

11 years agotest: Fix stdin message tests
isaacs [Fri, 28 Sep 2012 17:42:52 +0000 (10:42 -0700)]
test: Fix stdin message tests

11 years agotest: Fix simple/test-http-client-timeout-agent
isaacs [Fri, 28 Sep 2012 16:55:29 +0000 (09:55 -0700)]
test: Fix simple/test-http-client-timeout-agent

Merge breakage.

11 years agoMerge remote-tracking branch 'ry/v0.8' into v0.8-merge
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

11 years agodebugger: test repeating last command
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.

11 years agoFixed a bug with last command repeating in debugger
Alex Kocharin [Sat, 25 Aug 2012 19:25:32 +0000 (23:25 +0400)]
Fixed a bug with last command repeating in debugger

11 years agohttp: add response.headersSent property
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.

11 years agohttp: handle multiple Proxy-Authenticate values
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.

11 years agodoc: Make the CLA more simple/sane
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.

11 years agoblog: Post about 0.8.11
isaacs [Thu, 27 Sep 2012 17:25:37 +0000 (10:25 -0700)]
blog: Post about 0.8.11

11 years agoNow working on 0.8.12
isaacs [Thu, 27 Sep 2012 17:25:12 +0000 (10:25 -0700)]
Now working on 0.8.12

11 years agoMerge branch 'v0.8.11-release' into v0.8
isaacs [Thu, 27 Sep 2012 17:24:32 +0000 (10:24 -0700)]
Merge branch 'v0.8.11-release' into v0.8

11 years ago2012.09.27, Version 0.8.11 (Stable) v0.8.11
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)

11 years agohttp: handle multiple Proxy-Authenticate values
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.

11 years agotest: pick another CNAME record to test dns queries
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.

11 years agofs: fix stat() reporting for large files
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.

11 years agoblog: Post about v0.8.10
isaacs [Tue, 25 Sep 2012 22:37:53 +0000 (15:37 -0700)]
blog: Post about v0.8.10

11 years agoNow working on 0.8.11
isaacs [Tue, 25 Sep 2012 22:36:10 +0000 (15:36 -0700)]
Now working on 0.8.11

11 years agoMerge branch 'v0.8.10-release' into v0.8
isaacs [Tue, 25 Sep 2012 22:33:01 +0000 (15:33 -0700)]
Merge branch 'v0.8.10-release' into v0.8

11 years ago2012.09.25, Version 0.8.10 (Stable) v0.8.10
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)

11 years agoopenssl: fix compilation issues on SmartOS x64
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.

11 years agotest: Fix premature close in test-http-client-timeout-agent
isaacs [Tue, 25 Sep 2012 18:15:44 +0000 (11:15 -0700)]
test: Fix premature close in test-http-client-timeout-agent

11 years agotls: lint
isaacs [Tue, 25 Sep 2012 18:09:34 +0000 (11:09 -0700)]
tls: lint

cc @indutny >_<

11 years agodomain: Remove stray console.log
isaacs [Tue, 25 Sep 2012 18:08:44 +0000 (11:08 -0700)]
domain: Remove stray console.log

11 years agoopenssl: use optimized asm code on x86 and x64
Bert Belder [Wed, 12 Sep 2012 23:50:38 +0000 (01:50 +0200)]
openssl: use optimized asm code on x86 and x64

11 years agoopenssl: add generated asm code
Bert Belder [Sat, 8 Sep 2012 00:43:18 +0000 (02:43 +0200)]
openssl: add generated asm code

11 years agoopenssl: add 'clean' target to asm Makefile
Bert Belder [Fri, 21 Sep 2012 16:03:28 +0000 (18:03 +0200)]
openssl: add 'clean' target to asm Makefile

11 years agoopenssl: generate asm code with a Makefile
Ben Noordhuis [Mon, 10 Sep 2012 16:35:58 +0000 (18:35 +0200)]
openssl: generate asm code with a Makefile

11 years agoopenssl: disable HT sidechannel attack mitigation
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.

11 years agoopenssl: revert empty_OPENSSL_cpuid_setup.patch
Bert Belder [Wed, 12 Sep 2012 23:11:06 +0000 (01:11 +0200)]
openssl: revert empty_OPENSSL_cpuid_setup.patch

11 years agoopenssl: fix perlasm issue
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.

11 years agoopenssl: add optimized bignum x64 asm code for windows
Bert Belder [Sat, 8 Sep 2012 00:08:22 +0000 (02:08 +0200)]
openssl: add optimized bignum x64 asm code for windows

11 years agotls: use slab allocator
Fedor Indutny [Thu, 5 Jul 2012 19:50:21 +0000 (15:50 -0400)]
tls: use slab allocator

11 years agonpm: upgrade to 1.1.62
isaacs [Tue, 25 Sep 2012 15:28:55 +0000 (08:28 -0700)]
npm: upgrade to 1.1.62

11 years agotest: fix failing due to too early timeout
Shigeki Ohtsu [Tue, 25 Sep 2012 06:00:01 +0000 (15:00 +0900)]
test: fix failing due to too early timeout

11 years agodoc: put API table of contents in alphabetical order
Adam Blackburn [Sat, 22 Sep 2012 22:48:47 +0000 (16:48 -0600)]
doc: put API table of contents in alphabetical order

11 years agowindows: fix typo in node.gyp
Bert Belder [Mon, 24 Sep 2012 22:50:37 +0000 (00:50 +0200)]
windows: fix typo in node.gyp

11 years agohttp: make the client "res" object gets the same domain as "req"
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.

11 years agorepl: make invalid RegExps throw in the REPL
Nathan Rajlich [Sat, 22 Sep 2012 01:46:16 +0000 (18:46 -0700)]
repl: make invalid RegExps throw in the REPL

Fixes #2746.

11 years agouv: upgrade to 39ca621
Bert Belder [Sat, 22 Sep 2012 01:53:16 +0000 (03:53 +0200)]
uv: upgrade to 39ca621

11 years agov8: loosen artificial mmap constraint
Bryan Cantrill [Tue, 18 Sep 2012 22:35:29 +0000 (15:35 -0700)]
v8: loosen artificial mmap constraint

Fixes #4010.

11 years agohandle_wrap: don't abort if wrap == NULL
Ben Noordhuis [Wed, 1 Aug 2012 12:21:39 +0000 (14:21 +0200)]
handle_wrap: don't abort if wrap == NULL

After a disconnect, the internal pointer of the parent/child channel is set to
NULL. That's not an error so don't abort().

11 years agotest: possible ipc.ref() regression
Andreas Madsen [Wed, 1 Aug 2012 11:39:14 +0000 (13:39 +0200)]
test: possible ipc.ref() regression

11 years agochild_process: don't die when disconnect event exists
Andreas Madsen [Wed, 1 Aug 2012 11:33:22 +0000 (13:33 +0200)]
child_process: don't die when disconnect event exists

11 years agochild_process: make .fork()'d child auto-exit
Ben Noordhuis [Tue, 31 Jul 2012 14:14:34 +0000 (16:14 +0200)]
child_process: make .fork()'d child auto-exit

A child process created with .fork() needed to call `process.exit()` explicitly
because the communication channel with the parent kept the event loop alive.

Fix that by only ref'ing the channel when there are 'message' event listeners.

Fixes #3799.

11 years agoevents: speed up .removeAllListeners()
Ben Noordhuis [Tue, 31 Jul 2012 23:29:10 +0000 (01:29 +0200)]
events: speed up .removeAllListeners()

11 years agoevents: speed up newListener/removeListener events
Ben Noordhuis [Tue, 31 Jul 2012 23:21:46 +0000 (01:21 +0200)]
events: speed up newListener/removeListener events