Timothy J Fontaine [Wed, 8 Aug 2012 02:12:01 +0000 (22:12 -0400)]
timers: implement setImmediate
Felix Böhm [Sun, 20 May 2012 19:26:29 +0000 (22:26 +0300)]
path: small speed improvements
Ben Noordhuis [Thu, 9 Aug 2012 23:25:00 +0000 (01:25 +0200)]
node: remove process.uvCounters()
Ben Noordhuis [Wed, 8 Aug 2012 23:02:47 +0000 (01:02 +0200)]
test: fix pummel/test-net-connect-econnrefused
The test relied on a peculiarity of process.nextTick() that was changed in
commit 4e5fe2d. Before that commit, each nextTick callback corresponded with
the event loop moving forward one tick. That's no longer the case.
Ben Noordhuis [Wed, 8 Aug 2012 22:01:38 +0000 (00:01 +0200)]
test: raise pummel/test-net-throttle write req size
pummel/test-net-throttle assumes that a couple of big write requests result in
some of them getting queued because the kernel's send buffer fills up.
Said assumption breaks on systems with large send buffers. Raise the size of
the write request to ameliorate the issue.
Ben Noordhuis [Wed, 8 Aug 2012 21:07:18 +0000 (23:07 +0200)]
fs: fix ReferenceError in truncateSync()
Fixes a minor oversight introduced in 168a555, resulting in the following error:
fs.js:467
return fs.ftruncateSync(path, len, callback);
^
ReferenceError: callback is not defined
at Object.fs.truncateSync (fs.js:467:40)
Ben Noordhuis [Wed, 8 Aug 2012 18:23:27 +0000 (20:23 +0200)]
installer: remove c-ares header files
Fixes #3847.
Bert Belder [Mon, 6 Aug 2012 23:36:31 +0000 (01:36 +0200)]
uv: upgrade to 41b1265
Bert Belder [Mon, 6 Aug 2012 23:35:10 +0000 (01:35 +0200)]
dns: use uv_inet_ntop/uv_inet_pton instead of c-ares equivalents
Bert Belder [Mon, 6 Aug 2012 23:25:06 +0000 (01:25 +0200)]
uv: upgrade to 3a8bb3b
Bert Belder [Mon, 6 Aug 2012 19:22:11 +0000 (21:22 +0200)]
dns: don't rely on libuv for c-ares integration
Bert Belder [Mon, 6 Aug 2012 23:48:15 +0000 (01:48 +0200)]
node.cc: include ares.h
Bert Belder [Mon, 6 Aug 2012 19:27:47 +0000 (21:27 +0200)]
Add c-ares dependency
This is the c-ares code that used to live in the libuv source tree.
It is based on c-ares 1.9.0.
Ben Noordhuis [Mon, 6 Aug 2012 21:43:47 +0000 (23:43 +0200)]
net: fix listen() regression, revert patches
This commit reverts the following commits (in reverse chronological order):
74d076c errnoException must be done immediately
ddb02b9 net: support Server.listen(Pipe)
085a098 cluster: do not use internal server API
d138875 net: lazy listen on handler
Commit d138875 introduced a backwards incompatible change that broke the
simple/test-net-socket-timeout and simple/test-net-lazy-listen tests - it
defers listening on the target port until the `net.Server` instance has at
least one 'connection' event listener.
The other patches had to be reverted in order to revert d138875.
Fixes #3832.
Josh Erickson [Mon, 6 Aug 2012 20:18:31 +0000 (15:18 -0500)]
net: add support for IPv6 addresses ending in ::
Modified net.isIP Ipv6 regex to allow for addresses ending in "::".
Added tests for new IPv6 matching reqex.
isaacs [Sat, 4 Aug 2012 19:39:11 +0000 (12:39 -0700)]
fs: fix naming of truncate/ftruncate functions
For backwards compatibility, fs.truncate(<number>) will proxy to
fs.ftruncate.
Fix #3805
isaacs [Sun, 5 Aug 2012 21:47:23 +0000 (14:47 -0700)]
doc: util.pump is deprecated. Use Stream.pipe
Conflicts:
doc/api/util.markdown
Ben Noordhuis [Sun, 5 Aug 2012 22:45:30 +0000 (00:45 +0200)]
fs: remove undocumented .destroy callbacks
The destroy() method of fs.ReadStream and fs.WriteStream takes a callback.
It's a leftover from the node 0.1 days, undocumented and not part of the
streams API. Remove it.
Ben Noordhuis [Sun, 5 Aug 2012 21:40:20 +0000 (23:40 +0200)]
Makefile: DRY js lint
Ben Noordhuis [Sun, 5 Aug 2012 21:31:28 +0000 (23:31 +0200)]
util: mark util.pump() as deprecated
isaacs [Sun, 5 Aug 2012 21:22:44 +0000 (14:22 -0700)]
errnoException must be done immediately
isaacs [Sun, 5 Aug 2012 18:26:18 +0000 (11:26 -0700)]
test-message: fix message output
1. The net changes add a stack frame to stdin errors.
2. The error line numbers were overly strict in many places.
Andreas Madsen [Sat, 14 Jul 2012 07:43:10 +0000 (09:43 +0200)]
net: support Server.listen(Pipe)
Andreas Madsen [Sat, 14 Jul 2012 07:38:00 +0000 (09:38 +0200)]
cluster: do not use internal server API
Andreas Madsen [Tue, 10 Jul 2012 10:06:13 +0000 (12:06 +0200)]
net: lazy listen on handler
This allow the server to be shared without the need to handle connection
from master
isaacs [Fri, 3 Aug 2012 23:23:14 +0000 (16:23 -0700)]
Merge remote-tracking branch 'ry/v0.8'
Conflicts:
ChangeLog
deps/uv/src/unix/sunos.c
deps/uv/test/test-tcp-unexpected-read.c
src/node_version.h
Bert Belder [Fri, 3 Aug 2012 15:11:08 +0000 (17:11 +0200)]
net: make pause work with connecting sockets
This fixes the problem that calling pause() on a socket would not
actually prevent 'data' events from being emitted. It also replaces
the existing test by a more elaborate one.
Ref: #3118
isaacs [Thu, 2 Aug 2012 22:00:57 +0000 (15:00 -0700)]
blog: Fix date on 0.8.5 release
isaacs [Thu, 2 Aug 2012 21:59:47 +0000 (14:59 -0700)]
Blog post about 0.8.5
isaacs [Thu, 2 Aug 2012 21:58:15 +0000 (14:58 -0700)]
Now working on 0.8.6
isaacs [Thu, 2 Aug 2012 21:57:34 +0000 (14:57 -0700)]
Merge branch 'v0.8.5-release' into v0.8
isaacs [Thu, 2 Aug 2012 15:12:22 +0000 (08:12 -0700)]
2012.08.02, Version 0.8.5 (Stable)
* node: tag Encode and friends NODE_EXTERN (Ben Noordhuis)
* fs: fix ReadStream / WriteStream missing callback (Gil Pedersen)
* fs: fix readFileSync("/proc/cpuinfo") regression (Ben Noordhuis)
* installer: don't assume bash is installed (Ben Noordhuis)
* Report errors properly from --eval and stdin (isaacs)
* assert: fix throws() throws an error without message property (koichik)
* cluster: fix libuv assert in net.listen() (Ben Noordhuis)
* build: always link sunos builds with libumem (Trent Mick)
* build: improve armv7 / hard-float detection (Adam Malcontenti-Wilson)
* https: Use host header as effective servername (isaacs)
* sunos: work around OS bug to prevent fs.watch() from spinning (Bryan Cantrill)
* linux: fix 'two watchers, one path' segfault (Ben Noordhuis)
* windows: fix memory leaks in many fs functions (Bert Belder)
* windows: don't allow directories to be opened for writing/appending (Bert Belder)
* windows: make fork() work even when not all stdio handles are valid (Bert Belder)
* windows: make unlink() not remove mount points, and improve performance (Bert Belder)
* build: Sign pkg installer for OS X (isaacs)
isaacs [Thu, 2 Aug 2012 20:35:41 +0000 (13:35 -0700)]
build: Sign pkg installer for OS X
This makes the installer work on Mountain Lion.
Ben Noordhuis [Thu, 2 Aug 2012 15:47:33 +0000 (17:47 +0200)]
doc: improve cluster.workers documentation
isaacs [Thu, 2 Aug 2012 15:11:09 +0000 (08:11 -0700)]
test: stdin error messages
isaacs [Thu, 2 Aug 2012 02:10:42 +0000 (19:10 -0700)]
npm: Upgrade to 1.1.46
Ben Noordhuis [Wed, 1 Aug 2012 23:06:31 +0000 (01:06 +0200)]
installer: fix cross-compile installs
The old installer was a JS script, which didn't work if node had been
cross-compiled for another architecture. Replace it with a python script.
Fixes #3807.
Ben Noordhuis [Thu, 2 Aug 2012 11:37:02 +0000 (13:37 +0200)]
net: fix .listen({fd:0})
Ben Noordhuis [Thu, 2 Aug 2012 10:11:35 +0000 (12:11 +0200)]
deps: remove openssl apps and tests
Shrinks the tarball by a few hundred kilobytes and fixes a broken symlinks
issue on Windows.
Fixes #3813.
Ben Noordhuis [Wed, 1 Aug 2012 23:35:51 +0000 (01:35 +0200)]
node: tag Encode and friends NODE_EXTERN
Makes the symbols visible on Windows. They were already visible on Unices.
Fixes #3811.
Gil Pedersen [Wed, 1 Aug 2012 14:04:28 +0000 (16:04 +0200)]
fs: fix ReadStream / WriteStream missing callback
The (undocumented) callback argument to .destroy() was not called if the
stream was no longer readable / writable.
Ben Noordhuis [Wed, 1 Aug 2012 18:25:24 +0000 (20:25 +0200)]
fs: fix readFileSync("/proc/cpuinfo") regression
Don't use positional reads. Not all proc files support pread(), especially on
older linux kernels.
Fixes #3808.
isaacs [Wed, 1 Aug 2012 17:14:17 +0000 (10:14 -0700)]
blog: Remove all windows line endings once and for all
Dave Pacheco [Wed, 1 Aug 2012 17:04:27 +0000 (10:04 -0700)]
update profiling blog post to use shell redirection instead of -o
isaacs [Wed, 1 Aug 2012 17:11:30 +0000 (10:11 -0700)]
blog: Remove ^M chars from profiling-node-js blog post
Ben Noordhuis [Wed, 1 Aug 2012 11:36:56 +0000 (13:36 +0200)]
installer: don't assume bash is installed
Use `/bin/sh` instead of `bash` when running the relocate.sh script.
Bert Belder [Tue, 31 Jul 2012 23:42:36 +0000 (01:42 +0200)]
uv: upgrade to 6209fe5
Eugen Dueck [Tue, 31 Jul 2012 04:15:46 +0000 (13:15 +0900)]
doc: http: document res.write() `drain` return value
Bert Belder [Tue, 31 Jul 2012 22:52:37 +0000 (00:52 +0200)]
v8: don't show performance warnings when compiling with msvc
Patch sent upstream: http://codereview.chromium.org/
10829109/
Bert Belder [Tue, 31 Jul 2012 19:38:58 +0000 (21:38 +0200)]
docs: remove unused require from example
Closes GH-3801
Bert Belder [Tue, 31 Jul 2012 19:26:26 +0000 (21:26 +0200)]
uv: upgrade to 69c2ef8
Ben Noordhuis [Tue, 31 Jul 2012 11:45:16 +0000 (13:45 +0200)]
deps, tools: remove stray reject files
Ben Noordhuis [Tue, 31 Jul 2012 01:09:04 +0000 (03:09 +0200)]
doc: document child_process.fork() limitation
isaacs [Mon, 30 Jul 2012 18:01:50 +0000 (11:01 -0700)]
doc: Remove timeout arg in child_process.fork
Fix #3784
Shigeki Ohtsu [Mon, 30 Jul 2012 09:26:25 +0000 (18:26 +0900)]
doc: fix domains example
Need `utf8` encoding for JSON.parse and fix to avoid JSON.parse error when only
one argument is passed in domain.bind
isaacs [Sat, 28 Jul 2012 21:00:27 +0000 (14:00 -0700)]
Report errors properly from --eval and stdin
koichik [Sat, 24 Mar 2012 07:00:14 +0000 (16:00 +0900)]
assert: fix throws() throws an error without message property
Fixes #2893.
Ben Noordhuis [Sat, 28 Jul 2012 23:59:26 +0000 (01:59 +0200)]
cluster: fix libuv assert in net.listen()
Problem: calling `server.listen()` (no port) on a net.Server triggered the
following libuv assertion:
node: ../deps/uv/src/unix/stream.c:406: uv__write: Assertion `fd_to_send >= 0'
failed.
Cause: uv_tcp_t handles are lazily initialized. Omitting the port made the
handle get initialized even more lazily. Too lazily - it wasn't initialized
when the handle was sent over to the child process.
Solution: implicitly bind to a random port in listen() when the port number
is omitted, it forces the handle to initialize. This is not a change in
behavior, listen() has always been identical to listen(0).
Fixes #3325.
Tom Hughes-Croucher [Thu, 14 Apr 2011 23:56:09 +0000 (16:56 -0700)]
child_process: improve maxBuffer error message
Mention what buffer (stdout, stderr) overflowed.
Ben Noordhuis [Sat, 28 Jul 2012 14:50:55 +0000 (16:50 +0200)]
deps: upgrade libuv to 4fe1916
Ben Noordhuis [Sat, 28 Jul 2012 12:10:10 +0000 (14:10 +0200)]
node: use variadic functions in ev-emul.h
Fixes #3786.
Joe Andaverde [Fri, 20 Jul 2012 17:51:45 +0000 (12:51 -0500)]
events: make .listeners() return a copy
Make EventEmitter.listeners(event) return a copy of the listeners array instead
of the array itself.
Fixes #3442.
Trent Mick [Fri, 27 Jul 2012 17:56:40 +0000 (10:56 -0700)]
always link sunos builds with libumem
Ben Noordhuis [Thu, 26 Jul 2012 23:06:12 +0000 (01:06 +0200)]
node: don't scan add-on for "init" symbol
From this commit onwards, use of the NODE_MODULE macro is mandatory. This lets
node guard against modules that are ABI incompatible.
Ben Noordhuis [Thu, 26 Jul 2012 22:55:33 +0000 (00:55 +0200)]
node: bump NODE_MODULE_VERSION
Bump NODE_MODULE_VERSION so old modules won't load without recompiling when
the next major release (v0.10) comes out.
This is necessary because the ABI changes between major releases.
Ben Noordhuis [Wed, 25 Jul 2012 23:45:04 +0000 (01:45 +0200)]
crypto: add sync interface to crypto.pbkdf2()
Fixes #3766.
Timothy J Fontaine [Mon, 9 Jul 2012 16:05:46 +0000 (18:05 +0200)]
test: update dgram tests after API change
Ben Noordhuis [Mon, 9 Jul 2012 15:57:40 +0000 (17:57 +0200)]
test: suppress simple/test-dgram-pingpong chatter
Ben Noordhuis [Mon, 9 Jul 2012 15:53:48 +0000 (17:53 +0200)]
dgram: make .bind() always asynchronous
Adam Malcontenti-Wilson [Sat, 23 Jun 2012 01:39:10 +0000 (11:39 +1000)]
build: improve armv7 / hard-float detection
Ben Noordhuis [Thu, 26 Jul 2012 11:19:14 +0000 (13:19 +0200)]
node: remove PrepareTick() and CheckTick()
Superfluous after commit 430d94e. Pointed out by Shigeki Ohtsu.
isaacs [Thu, 26 Jul 2012 18:58:03 +0000 (11:58 -0700)]
Merge remote-tracking branch 'ry/v0.8'
Conflicts:
AUTHORS
ChangeLog
src/node_version.h
isaacs [Wed, 25 Jul 2012 19:00:25 +0000 (12:00 -0700)]
https: Use host header as effective servername
Nathan Rajlich [Wed, 25 Jul 2012 17:34:13 +0000 (10:34 -0700)]
assert: remove unnecessary use of __proto__
AssertionError already inherits from Error above using util.inherits(),
so this extra line was redundant.
test/simple/test-assert.js already tests for `instanceof`, and still passes.
isaacs [Wed, 25 Jul 2012 17:38:41 +0000 (10:38 -0700)]
Blog post for 0.8.4
isaacs [Wed, 25 Jul 2012 17:28:03 +0000 (10:28 -0700)]
Now working on v0.8.5
isaacs [Wed, 25 Jul 2012 17:26:03 +0000 (10:26 -0700)]
Merge branch 'v0.8.4-release' into v0.8
isaacs [Tue, 24 Jul 2012 23:19:08 +0000 (16:19 -0700)]
Fix #3761 build: Default to V=1
isaacs [Tue, 24 Jul 2012 23:04:40 +0000 (16:04 -0700)]
2012.07.25, Version 0.8.4 (Stable)
* V8: Upgrade to 3.11.10.17
* npm: Upgrade to 1.1.45
* net: fix Socket({ fd: 42 }) api (Ben Noordhuis)
* readline: Remove event listeners on close (isaacs)
* windows: correctly prep long path for fs.exists(Sync) (Bert Belder)
* debugger: wake up the event loop when a debugger command is dispatched (Peter Rybin)
* tls: verify server's identity (Fedor Indutny)
* net: ignore socket.setTimeout(Infinity or NaN) (Fedor Indutny)
isaacs [Wed, 25 Jul 2012 00:06:50 +0000 (17:06 -0700)]
Build: add jslintfix
isaacs [Wed, 25 Jul 2012 00:05:22 +0000 (17:05 -0700)]
net.js: lint
Ben Noordhuis [Tue, 17 Jul 2012 13:16:23 +0000 (15:16 +0200)]
net: fix Socket({ fd: 42 }) api
Make the implementation match the documentation. This should work:
var s = new net.Socket({ fd: 42, allowHalfOpen: true };
And now it does.
isaacs [Tue, 24 Jul 2012 03:44:12 +0000 (20:44 -0700)]
readline: Remove event listeners on close
Fix #3756
isaacs [Tue, 24 Jul 2012 21:19:50 +0000 (14:19 -0700)]
v8: Reapply floating patches
isaacs [Tue, 24 Jul 2012 21:18:47 +0000 (14:18 -0700)]
V8: Upgrade to 3.11.10.17
isaacs [Tue, 24 Jul 2012 19:34:13 +0000 (12:34 -0700)]
npm: Upgrade to 1.1.45
This includes node-gyp 0.6.1
Bert Belder [Mon, 23 Jul 2012 16:34:03 +0000 (18:34 +0200)]
Merge branch 'v0.8'
Conflicts:
lib/tls.js
Timothy J Fontaine [Fri, 13 Jul 2012 19:11:38 +0000 (15:11 -0400)]
add unref/ref tests for socket/server/timers
Timothy J Fontaine [Fri, 13 Jul 2012 19:08:32 +0000 (15:08 -0400)]
add docs for socket/server/timer unref and ref
Timothy J Fontaine [Fri, 13 Jul 2012 02:19:01 +0000 (22:19 -0400)]
add ref/unref to setTimeout timers
Timothy J Fontaine [Fri, 13 Jul 2012 01:26:04 +0000 (21:26 -0400)]
ref/unref for net.Socket net.Server dgram.Socket
Timothy J Fontaine [Fri, 13 Jul 2012 01:25:36 +0000 (21:25 -0400)]
export HandleWrap Unref Ref in tcp/udp/timer/pipe
Bert Belder [Mon, 23 Jul 2012 09:26:03 +0000 (11:26 +0200)]
windows: correctly prep long path for fs.exists(Sync)
Closes GH-3739
Peter Rybin [Tue, 3 Jul 2012 19:21:37 +0000 (23:21 +0400)]
debugger: wake up the event loop when a debugger command is dispatched
When the event loop was blocked in epoll / kqueue or similar, debugger
commands wouldn't be processed. This patch fixes that by adding an
uv_async handle which is triggered when a debugger command is
dispatched. The async handle's callback makes sure that V8 is entered.
Closes GH-3626
Closes GH-3718
Brian White [Mon, 23 Jul 2012 02:08:13 +0000 (23:08 -0300)]
http: remove duplicate assignments
Closes GH-3754
koichik [Sat, 21 Jul 2012 17:33:06 +0000 (02:33 +0900)]
doc: remove duplicate section
Fixes #3750.
isaacs [Fri, 20 Jul 2012 18:51:38 +0000 (11:51 -0700)]
Blog post about 0.9.0
isaacs [Fri, 20 Jul 2012 18:51:08 +0000 (11:51 -0700)]
Now working on 0.9.0
isaacs [Fri, 20 Jul 2012 18:50:47 +0000 (11:50 -0700)]
Merge branch 'v0.9.0-release'
isaacs [Thu, 19 Jul 2012 21:27:31 +0000 (14:27 -0700)]
2012.07.20, Version 0.9.0 (Unstable)
* punycode: update to v1.1.1 (Mathias Bynens)
* c-ares: upgrade to 1.9.0 (Saúl Ibarra Corretgé)
* dns: ignore rogue DNS servers reported by windows (Saúl Ibarra Corretgé)
* unix: speed up uv_async_send() (Ben Noordhuis)
* darwin: get cpu model correctly on mac (Xidorn Quan)
* nextTick: Handle tick callbacks before any other I/O (isaacs)
* Enable color customization of `util.inspect` (Pavel Lang)
* tls: Speed and memory improvements (Fedor Indutny)
* readline: Use one history item for reentered line (Vladimir Beloborodov)
* Fix #3521 Make process.env more like a regular Object (isaacs)