isaacs [Mon, 13 Feb 2012 18:04:53 +0000 (10:04 -0800)]
Upgrade V8 to 3.9.5
Karl Skomski [Mon, 13 Feb 2012 13:28:43 +0000 (14:28 +0100)]
build: detect host_arch better
Fedor Indutny [Sun, 12 Feb 2012 15:53:43 +0000 (21:53 +0600)]
debugger: export `debug_port` to `process`
`process.debug_port` is useful for changing debugger port in runtime,
before starting it (via SIGUSR1).
Using `--port=` argument for debugger repl, tests will run debugger
server on a `common.PORT` (as it usually does for any other servers).
`process._debugEnd()` stops debugger and its server.
* debugger: implemented process._debugEnd(), `node debug --port=5858 app.js`
* test: start debugger repl on common.PORT
* fixes #2613
* fixes #2614
Ben Noordhuis [Sun, 12 Feb 2012 15:12:26 +0000 (16:12 +0100)]
Merge remote-tracking branch 'origin/v0.6'
Conflicts:
common.gypi
Ben Noordhuis [Sun, 12 Feb 2012 15:12:04 +0000 (16:12 +0100)]
uv: upgrade to 4e1f2b1
koichik [Sat, 11 Feb 2012 17:05:30 +0000 (02:05 +0900)]
test: fix timing sensitivity in test-net-write-slow
Ben Noordhuis [Sat, 11 Feb 2012 13:24:15 +0000 (14:24 +0100)]
docs: update net.Server.address() documentation
isaacs [Sat, 11 Feb 2012 04:55:21 +0000 (20:55 -0800)]
apidoc css: Footer li's should be sans-serif
isaacs [Sat, 11 Feb 2012 03:38:13 +0000 (19:38 -0800)]
Fix #2690 css: Set font size in apidoc LIs to match Ps
Igor Zinkovsky [Fri, 10 Feb 2012 09:35:35 +0000 (01:35 -0800)]
set readable/writable for pipes
Igor Zinkovsky [Fri, 10 Feb 2012 19:27:12 +0000 (11:27 -0800)]
Ben Noordhuis [Fri, 10 Feb 2012 17:51:31 +0000 (18:51 +0100)]
docs: clarify http 'data' callback
Fixes #2733.
Ben Noordhuis [Thu, 9 Feb 2012 16:14:39 +0000 (17:14 +0100)]
docs: document tls/crypto `ciphers` option
Hitherto undocumented option that lets the user select the list of ciphers to
use or exclude in a SSL/TLS session.
Nathan Rajlich [Thu, 9 Feb 2012 03:47:31 +0000 (19:47 -0800)]
build: use -fPIC for native addons on UNIX
No -fPIC on 32 bits Linux but do enable for the other UNIX flavors.
Ben Noordhuis [Thu, 9 Feb 2012 05:22:50 +0000 (06:22 +0100)]
test: add cluster 'bind twice' test
This test starts two clustered HTTP servers on the same port. It expects the
first cluster to succeed and the second cluster to fail with EADDRINUSE.
isaacs [Wed, 8 Feb 2012 20:36:20 +0000 (12:36 -0800)]
npm: update to 1.1.1
Andreas Madsen [Tue, 7 Feb 2012 20:10:11 +0000 (21:10 +0100)]
child_process: stop .disconnect() call if channel is diconnected
Dave Pacheco [Wed, 8 Feb 2012 00:50:05 +0000 (16:50 -0800)]
disable omit-frame-pointer on solaris systems
isaacs [Wed, 8 Feb 2012 17:59:31 +0000 (09:59 -0800)]
Makefile: Don't use ** in globs
Many shells don't have GLOBSTAR turned on by default. This is
why uv and v8 so often don't get cleaned out properly.
Marcel Laverdet [Wed, 8 Feb 2012 00:10:22 +0000 (18:10 -0600)]
Re-add top-level v8::Locker
11d1eca9 added a v8 locker to ease development of 3rd party threading
extensions but it created a condition which would cause node to exit
uncleanly while in debug mode; it was reverted in
7543c38d.
The problem here is that the Locker was being disposed after V8 was torn
down. Adding some scoping fixes that.
isaacs [Wed, 8 Feb 2012 00:44:57 +0000 (16:44 -0800)]
Now working on 0.7.4
isaacs [Tue, 7 Feb 2012 23:42:33 +0000 (15:42 -0800)]
2012.02.07, Version 0.7.3 (unstable)
* Upgrade V8 to 3.9.2
* Revert support for isolates. (Ben Noordhuis)
* cluster: Cleanup docs, event handling, and process.disconnect (Andreas Madsen)
* gyp_addon: link with node.lib on Windows (Nathan Rajlich)
* http: fix case where http-parser is freed twice (koichik)
* Windows: disable RTTI and exceptions (Bert Belder)
isaacs [Tue, 7 Feb 2012 23:41:21 +0000 (15:41 -0800)]
Check the version before building tarball
I keep forgetting to do this. It's such a stupid thing.
Ben Noordhuis [Tue, 7 Feb 2012 22:42:38 +0000 (23:42 +0100)]
test: add --debug-brk regression test
Ben Noordhuis [Tue, 7 Feb 2012 22:11:34 +0000 (23:11 +0100)]
debugger: fix --debug-brk
Commit 840229a forgot to update the debugger special case in lib/module.js
Fixes #2710.
Igor Zinkovsky [Tue, 7 Feb 2012 06:53:39 +0000 (22:53 -0800)]
enable x64 windows build
use "vcbuild x64" to do x64 build of node.exe
isaacs [Tue, 7 Feb 2012 07:01:17 +0000 (23:01 -0800)]
Fix merge-conflicts in HTML
Thanks, @AndreasMadsen
isaacs [Mon, 6 Feb 2012 23:43:21 +0000 (15:43 -0800)]
Merge remote-tracking branch 'ry/v0.6'
Conflicts:
ChangeLog
deps/v8/src/version.cc
deps/v8/tools/gyp/v8.gyp
doc/about/index.html
doc/community/index.html
doc/index.html
doc/logos/index.html
doc/template.html
lib/path.js
lib/querystring.js
src/node_version.h
isaacs [Mon, 6 Feb 2012 23:22:52 +0000 (15:22 -0800)]
v8: Remove OutputDirectory from build/common.gypi
isaacs [Mon, 6 Feb 2012 23:21:49 +0000 (15:21 -0800)]
Upgrade V8 to 3.9.2
Andreas Madsen [Wed, 1 Feb 2012 16:27:14 +0000 (17:27 +0100)]
[doc] cluster: remove part about autoFork since this do not exist
Andreas Madsen [Wed, 1 Feb 2012 16:23:25 +0000 (17:23 +0100)]
cluster: use process.disconnect method
After adding a .disconect method and connected flag in child_process
we should no longer use the process._channel object.
Andreas Madsen [Wed, 1 Feb 2012 16:16:15 +0000 (17:16 +0100)]
cluster: simplify process event handling
This simplify the internalMessage and exit event handling
And simply relay message and error event to the worker object
Note that the error event was not relayed before
Nathan Rajlich [Fri, 6 Jan 2012 23:48:23 +0000 (15:48 -0800)]
gyp_addon: link with node.lib on Windows
Closes GH-2685
koichik [Mon, 6 Feb 2012 17:24:50 +0000 (02:24 +0900)]
http: fix http-parser is freed twice
after response to CONNECT/Upgrade request.
Fixes #2704.
Ben Noordhuis [Mon, 6 Feb 2012 16:47:09 +0000 (17:47 +0100)]
test: remove deprecated isolates test
Bert Belder [Mon, 6 Feb 2012 14:37:37 +0000 (15:37 +0100)]
Windows: disable RTTI and exceptions
Ben Noordhuis [Fri, 3 Feb 2012 15:32:00 +0000 (16:32 +0100)]
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
Ben Noordhuis [Sun, 5 Feb 2012 22:30:14 +0000 (23:30 +0100)]
Revert "Add explicit v8 locker"
This reverts commit
11d1eca9f3c465045828e3a00b103620c8253258.
It sporadically (but reproducibly) triggers an assert inside V8:
Fatal error in /path/to/node/deps/v8/src/isolate.cc, line 1857
CHECK(CurrentPerIsolateThreadData()->isolate_ == this) failed
Needs further investigation.
koichik [Sun, 5 Feb 2012 10:11:54 +0000 (19:11 +0900)]
doc: add the note about 'data' event
Refs #2691.
koichik [Fri, 3 Feb 2012 11:09:30 +0000 (20:09 +0900)]
net: fix large file downloads failing
Fixes #2678.
Marcel Laverdet [Wed, 10 Aug 2011 21:39:03 +0000 (16:39 -0500)]
Add explicit v8 locker
v8 requires a lock of each thread using the vm, but if none is
explicitly is created it will implicitly create one for you. This
creates issues when trying to build modules which use v8's
multi-threading features because there's no lock to unlock.
Christopher Jeffrey [Thu, 2 Feb 2012 06:44:22 +0000 (00:44 -0600)]
fs: fix ReadStream fails to read from existing fd
A ReadStream constructed from an existing file descriptor failed to start
reading automatically. Avoids a userspace call to ReadStream.prototype._read().
Stefan Rusu [Fri, 3 Feb 2012 16:29:58 +0000 (18:29 +0200)]
test: add tcp and https DNS error tests
net-dns-error: specifc test for the net DNS issue.
http-dns-error: now it works for HTTPS as well.
Stefan Rusu [Fri, 3 Feb 2012 16:27:53 +0000 (18:27 +0200)]
net: destroy socket on DNS error
The socket was never destroyed on DNS errors. This broke some clients, including
lib/https.js.
Bert Belder [Fri, 3 Feb 2012 14:37:46 +0000 (15:37 +0100)]
Rename some occurrences of `process_1` back to `process`
Dave Pacheco [Fri, 3 Feb 2012 01:02:09 +0000 (17:02 -0800)]
dtrace: add missing translator
Add missing translator for node_dtrace_http_*_request_t types.
Fixes #2667.
isaacs [Fri, 3 Feb 2012 01:19:28 +0000 (17:19 -0800)]
Now working on v0.6.11
isaacs [Fri, 3 Feb 2012 00:04:47 +0000 (16:04 -0800)]
2012.02.02, Version 0.6.10 (stable)
* Update V8 to 3.6.6.20
* Add npm msysgit bash shim to msi installer (isaacs)
* buffers: fix intermittent out of bounds error (Ben Noordhuis)
* buffers: honor length argument in base64 decoder (Ben Noordhuis)
* windows: Fix path.exists regression (Bert Belder)
* Make QueryString.parse run faster (Philip Tellis)
* http: avoid freeing http-parser objects too early (koichik)
* timers: add v0.4 compatibility hack (Ben Noordhuis)
* Proper EPERM error code support (Igor Zinkovsky, Brandon Philips)
* dgram: Implement udp multicast methods on windows (Bert Belder)
isaacs [Fri, 3 Feb 2012 00:56:23 +0000 (16:56 -0800)]
msi: npm bash shim fixes
isaacs [Thu, 2 Feb 2012 23:37:59 +0000 (15:37 -0800)]
Patches floating on v8
isaacs [Thu, 2 Feb 2012 23:35:14 +0000 (15:35 -0800)]
Upgrade v8 to 3.6.6.20
isaacs [Thu, 2 Feb 2012 22:57:12 +0000 (14:57 -0800)]
Add npm msysgit bash shim to msi installer
Ben Noordhuis [Wed, 1 Feb 2012 21:37:26 +0000 (22:37 +0100)]
buffers: fix intermittent out of bounds error
The base64 decoder would intermittently throw an out-of-bounds exception when
the buffer in `buf.write('', 'base64')` was a zero-sized buffer located at the
end of the slab.
Fixes #2657.
Ben Noordhuis [Wed, 1 Feb 2012 21:07:42 +0000 (22:07 +0100)]
buffers: honor length argument in base64 decoder
Honor the length argument in `buf.write(s, 0, buf.length, 'base64')`. Before
this commit, the length argument was ignored. The decoder would keep writing
until it hit the end of the buffer. Since most buffers in Node are slices of
a parent buffer (the slab), this bug would overwrite the content of adjacent
buffers.
The bug is trivially demonstrated with the following test case:
var assert = require('assert');
var a = Buffer(3);
var b = Buffer('xxx');
a.write('
aaaaaaaa', 'base64');
assert.equal(b.toString(), 'xxx');
This commit coincidentally also fixes a bug where Buffer._charsWritten was not
updated for zero length buffers.
Bert Belder [Thu, 2 Feb 2012 16:42:08 +0000 (17:42 +0100)]
uv: upgrade to 267e75d
Bert Belder [Thu, 2 Feb 2012 15:57:45 +0000 (16:57 +0100)]
_makeLong shouldn't turn the empty string into \\?\C:\
Bert Belder [Thu, 2 Feb 2012 15:56:58 +0000 (16:56 +0100)]
Run path.exists paths through _makeLong
Philip Tellis [Fri, 2 Dec 2011 18:42:32 +0000 (00:12 +0530)]
Make QueryString.parse run faster
Use decodeURIComponent when appropriate, and only fall back to
querystring.decode if it throws, or if the character is a '+'.
Fix #2248
Ben Noordhuis [Wed, 1 Feb 2012 21:25:55 +0000 (22:25 +0100)]
Revert "Process symlinked shared library as .node"
This reverts commit
7e0bf7d57de318f45a097e05644efa49beb65209.
It's possible to make GYP generate an XCode project that produces a .node file,
hence this commit is no longer needed.
Ben Noordhuis [Wed, 1 Feb 2012 21:25:55 +0000 (22:25 +0100)]
Revert "Process symlinked shared library as .node"
This reverts commit
7e0bf7d57de318f45a097e05644efa49beb65209.
It's possible to make GYP generate an XCode project that produces a .node file,
hence this commit is no longer needed.
isaacs [Wed, 1 Feb 2012 21:05:04 +0000 (13:05 -0800)]
working on 0.7.3 now
isaacs [Wed, 1 Feb 2012 02:43:23 +0000 (18:43 -0800)]
2012.02.01, Version 0.7.2 (unstable)
* Update V8 to 3.8.9
* Support for sharing streams across Isolates (Igor Zinkovsky)
* #2636 - Fix case where http_parsers are freed too early (koichik)
* url: Support for IPv6 addresses in URLs (Łukasz Walukiewicz)
* child_process: Add disconnect() method to child processes (Andreas Madsen)
* fs: add O_EXCL support, exclusive open file (Ben Noordhuis)
* fs: more specific error messages (Tj Holowaychuk)
* tty: emit 'unknown' key event if key sequence not found (Dan VerWeire, Nathan Rajlich)
* build: compile release build too if BUILDTYPE=Debug (Ben Noordhuis)
* module: fix --debug-brk on symlinked scripts (Fedor Indutny)
* zlib: fix `Failed to set dictionary` issue (Fedor Indutny)
* waf: predict target arch for OS X (Fedor Indutny)
isaacs [Wed, 1 Feb 2012 02:35:04 +0000 (18:35 -0800)]
Update v8 to 3.8.9
isaacs [Wed, 1 Feb 2012 02:22:10 +0000 (18:22 -0800)]
Merge remote-tracking branch 'ry/master' into merge-v0.6
isaacs [Wed, 1 Feb 2012 02:18:00 +0000 (18:18 -0800)]
Merge remote-tracking branch 'ry/v0.6' into master
Conflicts:
ChangeLog
deps/uv/src/unix/udp.c
deps/uv/src/win/fs.c
deps/uv/src/win/udp.c
deps/uv/test/test-fs.c
doc/index.html
doc/logos/index.html
doc/template.html
src/node_version.h
Paddy Byers [Tue, 22 Nov 2011 23:49:18 +0000 (23:49 +0000)]
Process symlinked shared library as .node
Paddy Byers [Tue, 22 Nov 2011 23:46:01 +0000 (23:46 +0000)]
Tidy _resolveFilename
Igor Zinkovsky [Fri, 20 Jan 2012 00:52:23 +0000 (16:52 -0800)]
support for sharing streams accross isolates
Dan VerWeire [Mon, 30 Jan 2012 15:04:20 +0000 (10:04 -0500)]
test: dgram-{broadcast,multicast}-multi-process : prevent false failures
* check exit code of child processes
* wait 1000 ms to exit the child process
* prefix log messages with [PARENT] or [CHILD] to help debugging
* kill all child processes before exiting
Conflicts:
test/simple/test-dgram-multicast-multi-process.js
Andreas Madsen [Tue, 31 Jan 2012 16:14:42 +0000 (17:14 +0100)]
child_process: do not disconnect on exit emit
When using isolate the .fork would break because it had
no .disconnect method. This remove the exit handler there
would call .disconnect since it was not required.
It also change .disconnect to throw if the channel is closed,
this was not possible before because .disconnect would be called
twice.
Bert Belder [Tue, 31 Jan 2012 16:41:46 +0000 (17:41 +0100)]
uv: upgrade to 3eb94e9
Bert Belder [Tue, 31 Jan 2012 15:46:14 +0000 (16:46 +0100)]
Small test-dgram-multicast-multi-process fixes
Somehow windows doesn't want to bind to 224.0.0.1. Let's test with a multicast
address that has no special meaning.
Ben Noordhuis [Thu, 19 Jan 2012 15:18:37 +0000 (16:18 +0100)]
build: don't set -mmacosx-version-min
It sets __MAC_OS_X_VERSION_MIN_REQUIRED__, which is what we use for feature
detection.
Andreas Madsen [Tue, 31 Jan 2012 13:46:23 +0000 (14:46 +0100)]
Test for ChildProcess.disconnect()
Ben Noordhuis [Tue, 31 Jan 2012 00:36:57 +0000 (01:36 +0100)]
fs: add O_EXCL support, exclusive open file
Ben Noordhuis [Mon, 30 Jan 2012 23:54:40 +0000 (00:54 +0100)]
fs, test: add file open mode tests
Łukasz Walukiewicz [Wed, 25 Jan 2012 23:12:00 +0000 (00:12 +0100)]
url: Support for IPv6 addresses in URLs.
Fixes #1138, #2610.
Tj Holowaychuk [Tue, 31 Jan 2012 00:41:32 +0000 (16:41 -0800)]
more specific fs error messages
Igor Zinkovsky [Mon, 30 Jan 2012 23:57:08 +0000 (15:57 -0800)]
Roman Shtylman [Mon, 30 Jan 2012 16:58:08 +0000 (11:58 -0500)]
add node::SetMethod and node::SetPrototypeMethod
defines cannot be used if the callback is a templated and has
multiple template arguments. The comma separating the arguments
breaks the preprocessor argument handling. Using a templated function
is clearer and more idiomatic in c++.
Andreas Madsen [Mon, 30 Jan 2012 15:35:05 +0000 (16:35 +0100)]
Add disconnect method to forked child processes
This disconnect method allows the child to exit gracefully.
This also adds a disconnect event and connect property.
koichik [Mon, 30 Jan 2012 15:16:01 +0000 (00:16 +0900)]
http: fix free http-parser too early
when the status code is 100 (Continue).
Fixes #2636.
Ben Noordhuis [Sun, 29 Jan 2012 22:30:13 +0000 (23:30 +0100)]
timers: add v0.4 compatibility hack
If a timer callback throws and the user's uncaughtException handler ignores the
exception, other timers that expire on the current tick should still run.
If #2582 goes through, this hack should be removed.
Fixes #2631.
Brandon Benvie [Mon, 30 Jan 2012 07:41:40 +0000 (02:41 -0500)]
core: make .deprecate() warn only once
Brandon Benvie [Sun, 29 Jan 2012 04:13:42 +0000 (23:13 -0500)]
core: add `NativeModule.prototype.deprecate`
Formalize and cleanup handling of deprecated core methods.
Brandon Benvie [Sun, 29 Jan 2012 04:39:38 +0000 (23:39 -0500)]
Change removed process methods to be non-enumerable.
Dan VerWeire [Fri, 27 Jan 2012 23:49:07 +0000 (18:49 -0500)]
tty: emit 'unknown' key event if key sequence not found
Add key.code and key.sequence -mad props go out to @TooTallNate
isaacs [Sat, 28 Jan 2012 01:07:43 +0000 (17:07 -0800)]
Correct spelling of Ben Noordhuis
isaacs [Sat, 28 Jan 2012 00:54:40 +0000 (16:54 -0800)]
Now working on 0.6.10
isaacs [Fri, 27 Jan 2012 21:33:01 +0000 (13:33 -0800)]
2012.01.27, Version 0.6.9 (stable)
* dgram: Bring back missing functionality for Unix (Dan VerWeire, Roman Shtylman, Ben Noordnuis)
- Note: Windows UDP support not yet complete.
* http: Fix parser memory leak (koichik)
* zlib: Fix #2365 crashes on invalid input (Nicolas LaCasse)
* module: fix --debug-brk on symlinked scripts (Fedor Indutny)
* Documentation Restyling (Matthew Fitzsimmons)
* Update npm to 1.1.0-3 (isaacs)
* Windows: fix regression in stat() calls to C:\ (Bert Belder)
Ben Noordhuis [Sat, 28 Jan 2012 00:30:46 +0000 (01:30 +0100)]
uv: upgrade to 332b72e
Ben Noordhuis [Fri, 27 Jan 2012 23:17:01 +0000 (00:17 +0100)]
uv: upgrade to 16124bb
isaacs [Fri, 27 Jan 2012 21:42:08 +0000 (13:42 -0800)]
stdout ending test message correction
Ben Noordhuis [Fri, 27 Jan 2012 21:25:04 +0000 (22:25 +0100)]
uv: upgrade to 3de0411
Ben Noordhuis [Fri, 27 Jan 2012 21:16:47 +0000 (22:16 +0100)]
uv: upgrade to 3f1bad2
isaacs [Fri, 27 Jan 2012 21:12:07 +0000 (13:12 -0800)]
Properly update npm to 1.1.0-3
Thanks @mscdex for spotting this.
Fedor Indutny [Fri, 27 Jan 2012 14:23:32 +0000 (20:23 +0600)]
waf: predict target arch for OSX
isaacs [Fri, 27 Jan 2012 01:14:16 +0000 (17:14 -0800)]
Fix #2507 Raise errors less agressively when destroying stdio streams
Also, if an error is already provided, then raise the provided
error, rather than throwing it with a less helpful 'stdout cannot
be closed' message.
This is important for properly handling EPIPEs.
Dan VerWeire [Wed, 25 Jan 2012 17:46:45 +0000 (12:46 -0500)]
test: handle unhandled dgram scenarios
- watch for the death of child processes and fail the test if they all die
- use setTimeout to fail the test if responses are not received and processed in 5000ms