platform/upstream/nodejs.git
12 years agobench: start (NUM_CPUS-1) workers
Ben Noordhuis [Wed, 9 Nov 2011 16:32:39 +0000 (17:32 +0100)]
bench: start (NUM_CPUS-1) workers

The master is a worker too so fork off one less worker.

12 years agoRemove stray NODE_MODULE() semi-colons.
Ben Noordhuis [Wed, 9 Nov 2011 15:33:50 +0000 (16:33 +0100)]
Remove stray NODE_MODULE() semi-colons.

12 years agoRemove 'report this bug' message from cluster master
Ryan Dahl [Wed, 9 Nov 2011 01:07:49 +0000 (17:07 -0800)]
Remove 'report this bug' message from cluster master

12 years agoFixes #2047. Fill workers array immediately after fork
Ryan Dahl [Wed, 9 Nov 2011 01:03:29 +0000 (17:03 -0800)]
Fixes #2047. Fill workers array immediately after fork

12 years agoUpgrade libuv to 196e145
Ryan Dahl [Wed, 9 Nov 2011 00:59:40 +0000 (16:59 -0800)]
Upgrade libuv to 196e145

12 years agoprocess.kill doesn't create error obj correctly
Ryan Dahl [Wed, 9 Nov 2011 00:58:32 +0000 (16:58 -0800)]
process.kill doesn't create error obj correctly

12 years agoUpgrade libuv to 2b7774a
Ryan Dahl [Wed, 9 Nov 2011 00:52:45 +0000 (16:52 -0800)]
Upgrade libuv to 2b7774a

12 years agoFixes #2052. Readline get win cols correctly
Ryan Dahl [Tue, 8 Nov 2011 21:36:36 +0000 (13:36 -0800)]
Fixes #2052. Readline get win cols correctly

12 years agocrypto: use the right mutex
Ben Noordhuis [Tue, 8 Nov 2011 16:57:21 +0000 (17:57 +0100)]
crypto: use the right mutex

12 years agoUpgrade libuv to f1859eb
Ryan Dahl [Tue, 8 Nov 2011 19:19:50 +0000 (11:19 -0800)]
Upgrade libuv to f1859eb

Fixes #2040
Fixes https://github.com/joyent/node/commit/0e8a55d2a22b88dc3b9b0165f344602b0fa8c977#commitcomment-69710

12 years agocrypto: make module thread-safe
Ben Noordhuis [Tue, 8 Nov 2011 16:57:21 +0000 (17:57 +0100)]
crypto: make module thread-safe

12 years agoUpgrade V8 to 3.6.6.7
Ryan Dahl [Tue, 8 Nov 2011 18:00:12 +0000 (10:00 -0800)]
Upgrade V8 to 3.6.6.7

12 years agoCluster documentation added.
Scott Anderson [Mon, 7 Nov 2011 21:54:34 +0000 (15:54 -0600)]
Cluster documentation added.

12 years agotest: fs.realpath() should not call its callback twice
Ben Noordhuis [Tue, 8 Nov 2011 12:03:25 +0000 (13:03 +0100)]
test: fs.realpath() should not call its callback twice

Test case for #2045.

12 years agofs: fix fs.realpath on windows to return on error
Benjamin Pasero [Tue, 8 Nov 2011 10:17:33 +0000 (11:17 +0100)]
fs: fix fs.realpath on windows to return on error

12 years agofs: make mkdir() call callback if mode is omitted
Ben Noordhuis [Tue, 8 Nov 2011 11:44:36 +0000 (12:44 +0100)]
fs: make mkdir() call callback if mode is omitted

Fixes #2043.

12 years agocluster: fix call to undefined function
Ben Noordhuis [Tue, 8 Nov 2011 07:29:25 +0000 (08:29 +0100)]
cluster: fix call to undefined function

12 years agodocs: minor grammar fix in cluster page
Eric Lovett [Mon, 7 Nov 2011 19:37:05 +0000 (11:37 -0800)]
docs: minor grammar fix in cluster page

12 years agobuild: fix race in parallel build
Ben Noordhuis [Mon, 7 Nov 2011 23:25:51 +0000 (00:25 +0100)]
build: fix race in parallel build

Run `make clean` first, *then* `make all`

12 years agoUpdate multi-core text on index.html
Ryan Dahl [Mon, 7 Nov 2011 18:43:48 +0000 (10:43 -0800)]
Update multi-core text on index.html

12 years agoRemove v0.4 links from index.html
Ryan Dahl [Mon, 7 Nov 2011 18:41:01 +0000 (10:41 -0800)]
Remove v0.4 links from index.html

12 years agobuild: fix man page install path on the BSDs
Ben Noordhuis [Mon, 7 Nov 2011 05:46:05 +0000 (06:46 +0100)]
build: fix man page install path on the BSDs

Fixes #2026.

12 years agobench: update static_http_server benchmark to new API
koichik [Sat, 5 Nov 2011 16:23:33 +0000 (01:23 +0900)]
bench: update static_http_server benchmark to new API

Fixes #2016.

12 years agotest: debugger-repl should wait for 'drain' event
Fedor Indutny [Sat, 5 Nov 2011 07:47:21 +0000 (13:47 +0600)]
test: debugger-repl should wait for 'drain' event

12 years agodocs: use markdown for link, not html
Eric Lovett [Sat, 5 Nov 2011 10:08:15 +0000 (03:08 -0700)]
docs: use markdown for link, not html

12 years agodocs: fix copy/paste error, 0.6.0 is a stable release
Ben Noordhuis [Sat, 5 Nov 2011 09:44:27 +0000 (10:44 +0100)]
docs: fix copy/paste error, 0.6.0 is a stable release

12 years agodocs: minor typo fix in child process docs
Eric Lovett [Sat, 5 Nov 2011 09:36:20 +0000 (02:36 -0700)]
docs: minor typo fix in child process docs

12 years agoNow working on v0.6.1
Ryan Dahl [Sat, 5 Nov 2011 08:55:34 +0000 (01:55 -0700)]
Now working on v0.6.1

12 years agoBump version to v0.6.0 v0.6.0
Ryan Dahl [Fri, 4 Nov 2011 23:40:14 +0000 (16:40 -0700)]
Bump version to v0.6.0

12 years agodocs: fix typo
koichik [Sat, 5 Nov 2011 03:35:38 +0000 (12:35 +0900)]
docs: fix typo

12 years agouv: upgrade to c468e2a
Ben Noordhuis [Sat, 5 Nov 2011 02:13:55 +0000 (03:13 +0100)]
uv: upgrade to c468e2a

12 years agofix test-module-loading on windows
Igor Zinkovsky [Sat, 5 Nov 2011 00:48:24 +0000 (17:48 -0700)]
fix test-module-loading on windows

12 years agoupdate fs_event_wrap.cc to work with new uv_fs_event_init api
Igor Zinkovsky [Sat, 5 Nov 2011 01:04:52 +0000 (18:04 -0700)]
update fs_event_wrap.cc to work with new uv_fs_event_init api

12 years agomake updates to work with latest libuv api changes
Igor Zinkovsky [Sat, 5 Nov 2011 00:55:12 +0000 (17:55 -0700)]
make updates to work with latest libuv api changes

12 years agoUpgrade libuv to 1997e10b50
Bert Belder [Sat, 5 Nov 2011 00:50:05 +0000 (01:50 +0100)]
Upgrade libuv to 1997e10b50

12 years agodocs: make std*Stream spawn opts explicitly internal
Ryan Dahl [Fri, 4 Nov 2011 22:55:06 +0000 (15:55 -0700)]
docs: make std*Stream spawn opts explicitly internal

Fixes #1884.

12 years agodocs: fix some minor typos in the fs documentation
Jacob H.C. Kragh [Fri, 4 Nov 2011 22:07:10 +0000 (23:07 +0100)]
docs: fix some minor typos in the fs documentation

* fchmodSync: replace 'path' with 'fd'
* lchmod: replace 'fd' with 'path'
* utimes, futimes, fsync: mark 'callback' as optional

12 years agobench: add http_simple cluster edition benchmark
Ben Noordhuis [Fri, 4 Nov 2011 22:31:39 +0000 (23:31 +0100)]
bench: add http_simple cluster edition benchmark

12 years agocluster: add example for message passing
Ryan Dahl [Fri, 4 Nov 2011 22:33:49 +0000 (15:33 -0700)]
cluster: add example for message passing

12 years agoupgrade libuv to 82cf0b38c0
Igor Zinkovsky [Fri, 4 Nov 2011 22:19:46 +0000 (15:19 -0700)]
upgrade libuv to 82cf0b38c0
fixes #2004

12 years agocluster: Remove eachWorker, workerCount
Ryan Dahl [Fri, 4 Nov 2011 22:14:26 +0000 (15:14 -0700)]
cluster: Remove eachWorker, workerCount

unnecessary

12 years agonew cluster api
Ryan Dahl [Fri, 4 Nov 2011 22:11:19 +0000 (15:11 -0700)]
new cluster api

12 years agodocs: fix typo in the documented fchown signature
Jacob H.C. Kragh [Fri, 4 Nov 2011 18:11:50 +0000 (19:11 +0100)]
docs: fix typo in the documented fchown signature

12 years agoClose #1930 Convenience methods for zlib
Matt Robenolt [Mon, 24 Oct 2011 16:29:24 +0000 (12:29 -0400)]
Close #1930 Convenience methods for zlib

This is a combination of 20 commits. Their commit messages are preserved
below for the benefit of future generations.

* Adding a shortcut to easily compress/decompress a string of text.
* Making the API consistent. unzip should accept a Buffer for input as well.
* Adding docs.
* Oops, typo.
* Propagate error through the callback.
* Adding zlib from string tests.
* Typo in test.
* Remove 'end' listeners, and join buffers properly instead of joining them
  as a string.
* Oops, needs to be rendered to a string.
* Updated test to include multi-byte characters.
* unzip should return a raw Buffer. Updated docs to reflect.
* And finally updating test.
* EventEmitter.destroy() is a bit more customary
* Revert "EventEmitter.destroy() is a bit more customary"
* Renaming internal methods to "buffer" instead of string.
* Remove the 'error' listeners as well.
* @isaacs: spacing/style, and compress duplicate functions into one
* @isaacs: Update docs
* @isaacs: doc style fix

12 years agofix debugger-repl test
Fedor Indutny [Fri, 4 Nov 2011 16:56:21 +0000 (22:56 +0600)]
fix debugger-repl test

12 years agodebugger: do not request `continue` on connection
Fedor Indutny [Fri, 4 Nov 2011 16:20:53 +0000 (22:20 +0600)]
debugger: do not request `continue` on connection

* Updated test
* Use `node debug file`, not `node debug -e "..."` in test

12 years agoImplement process._debugProcess
Bert Belder [Fri, 4 Nov 2011 15:23:02 +0000 (16:23 +0100)]
Implement process._debugProcess

12 years agoMake error reporting from node::DLOpen more consistent
Bert Belder [Fri, 4 Nov 2011 15:11:39 +0000 (16:11 +0100)]
Make error reporting from node::DLOpen more consistent

12 years agoWindows: ErrnoException shouldn't mix up crt and win32 errors
Bert Belder [Fri, 4 Nov 2011 15:10:48 +0000 (16:10 +0100)]
Windows: ErrnoException shouldn't mix up crt and win32 errors

12 years agoFix line endings and trailing whitespace
Bert Belder [Fri, 4 Nov 2011 15:06:48 +0000 (16:06 +0100)]
Fix line endings and trailing whitespace

12 years agourl: add '.' '+' and '-' in url protocol
Jordan Sissel [Fri, 4 Nov 2011 12:22:18 +0000 (13:22 +0100)]
url: add '.' '+' and '-' in url protocol

- Based on BNF from RFC 1738 section 5.
- Added tests to cover svn+ssh and some other examples

12 years agofs: don't use octal values, not allowed in strict mode
Ben Noordhuis [Fri, 4 Nov 2011 12:10:07 +0000 (13:10 +0100)]
fs: don't use octal values, not allowed in strict mode

12 years agotest: fix simple/net-pipe-connect-errors
Ben Noordhuis [Fri, 4 Nov 2011 04:28:30 +0000 (05:28 +0100)]
test: fix simple/net-pipe-connect-errors

When trying to connect to something that is not a UNIX socket, Linux returns
ECONNREFUSED, not ENOTSOCK.

We cannot atomically determine if the other end is a) a stale socket, or b) not
a socket at all, so let's accept both error codes.

12 years agoUpgrade libuv to 9c7ed0d
Ryan Dahl [Thu, 3 Nov 2011 23:30:58 +0000 (16:30 -0700)]
Upgrade libuv to 9c7ed0d

Fixes test-net-pipe-connect-errors.js on UNIX.
See #2001.

12 years agoreport debugger's test errors
Fedor Indutny [Thu, 3 Nov 2011 21:09:07 +0000 (03:09 +0600)]
report debugger's test errors

12 years agostdout and stderr are blocking when referring to regular files
Ryan Dahl [Thu, 3 Nov 2011 20:27:26 +0000 (13:27 -0700)]
stdout and stderr are blocking when referring to regular files

Fixes message tests.

12 years agoSocket.write should reset timeout timer.
Ryan Dahl [Thu, 3 Nov 2011 19:34:23 +0000 (12:34 -0700)]
Socket.write should reset timeout timer.

Fixes #2002.

12 years agonet: implement Server.prototype.address() for pipes
Ben Noordhuis [Tue, 1 Nov 2011 22:42:45 +0000 (23:42 +0100)]
net: implement Server.prototype.address() for pipes

12 years agotest error codes related to pipes
Maciej Małecki [Thu, 3 Nov 2011 14:13:22 +0000 (15:13 +0100)]
test error codes related to pipes

This tests passes on node v0.4, but fails on node v0.5. v0.5 seems to
generally lack error codes for various error events related to UNIX
pipes.

Fixes #2001

12 years agoRemove -Werror from V8 build
Ryan Dahl [Thu, 3 Nov 2011 17:46:16 +0000 (10:46 -0700)]
Remove -Werror from V8 build

12 years agoDowngrade V8 to 3.6.4
Ryan Dahl [Thu, 3 Nov 2011 17:34:22 +0000 (10:34 -0700)]
Downgrade V8 to 3.6.4

12 years agodocs: make fs.mkdir()'s mode argument an option.
koichik [Thu, 3 Nov 2011 11:04:22 +0000 (20:04 +0900)]
docs: make fs.mkdir()'s mode argument an option.

12 years agofs: make mkdir() default to 0777 permissions
Ben Noordhuis [Thu, 3 Nov 2011 08:35:49 +0000 (09:35 +0100)]
fs: make mkdir() default to 0777 permissions

Fixes #1999.

12 years agouv: upgrade to 0fb3769
Ben Noordhuis [Thu, 3 Nov 2011 02:25:11 +0000 (03:25 +0100)]
uv: upgrade to 0fb3769

12 years agov8: fix freebsd build, implement VirtualMemory class
Ben Noordhuis [Thu, 3 Nov 2011 02:23:59 +0000 (03:23 +0100)]
v8: fix freebsd build, implement VirtualMemory class

12 years agofix process.uptime() on windows
Igor Zinkovsky [Thu, 3 Nov 2011 01:27:43 +0000 (18:27 -0700)]
fix process.uptime() on windows

12 years agoprocess.kill to use uv_kill
Igor Zinkovsky [Wed, 2 Nov 2011 22:06:48 +0000 (15:06 -0700)]
process.kill to use uv_kill

12 years agohttp: emit Error object after .abort()
Ben Noordhuis [Thu, 3 Nov 2011 00:20:54 +0000 (01:20 +0100)]
http: emit Error object after .abort()

It was emitting the net.Socket object due to misuse of the arguments object.

Fixes #1399.

12 years agoupgrade libuv to e1bee05ecdbffbe9de37830530ad2ae2f1fb41c8
Igor Zinkovsky [Wed, 2 Nov 2011 23:51:26 +0000 (16:51 -0700)]
upgrade libuv to e1bee05ecdbffbe9de37830530ad2ae2f1fb41c8

12 years agoRemove separation of libuv tests
Ryan Dahl [Wed, 2 Nov 2011 23:26:43 +0000 (16:26 -0700)]
Remove separation of libuv tests

12 years agodocs: http: link to relevant net.Socket methods
Ben Noordhuis [Wed, 2 Nov 2011 23:21:25 +0000 (00:21 +0100)]
docs: http: link to relevant net.Socket methods

12 years agoignore undefined messages in the debugger repl
Fedor Indutny [Wed, 2 Nov 2011 22:38:38 +0000 (04:38 +0600)]
ignore undefined messages in the debugger repl

fixes #1995

12 years agotest: add ChildProcess.prototype.killed test case
Ben Noordhuis [Wed, 2 Nov 2011 17:37:34 +0000 (18:37 +0100)]
test: add ChildProcess.prototype.killed test case

12 years agochild_process: in a new `ChildProcess` set `killed` to false
Maciej Małecki [Wed, 2 Nov 2011 16:52:47 +0000 (17:52 +0100)]
child_process: in a new `ChildProcess` set `killed` to false

This behavior is consistent with what v0.4 does.

12 years agoAdd missing copyright headers
Ryan Dahl [Wed, 2 Nov 2011 17:00:57 +0000 (10:00 -0700)]
Add missing copyright headers

12 years agodocs: http: fix docs for the 'close' event
Ben Noordhuis [Wed, 2 Nov 2011 16:24:53 +0000 (17:24 +0100)]
docs: http: fix docs for the 'close' event

12 years agoRevert "Upgrade V8 to 3.7.1"
Ben Noordhuis [Wed, 2 Nov 2011 15:58:08 +0000 (16:58 +0100)]
Revert "Upgrade V8 to 3.7.1"

This reverts commit 92f5a5d3caf01f382f90c235e9057590a5e76870.

V8 3.7.1 in debug mode on ia32 has a curious race-like bug where an fs.Stats
object is not fully formed until some time after it's created. This is easy
to demonstrate by running `make test-debug`.

V8 3.7.0 does not exhibit this behaviour so back we go.

Fixes #1981.

12 years agofix pummel/test-net-throttle on windows
Igor Zinkovsky [Tue, 1 Nov 2011 23:30:42 +0000 (16:30 -0700)]
fix pummel/test-net-throttle on windows

12 years agodoc: fix links
Maciej Małecki [Tue, 1 Nov 2011 19:52:35 +0000 (20:52 +0100)]
doc: fix links

Changes:

  * 'http://github.com' => 'https://github.com'
  * 'https://github.com/ry/node' => 'https://github.com/joyent/node'
  * 'https://github.com/ry/http-parser' =>
    'https://github.com/joyent/http-parser'
  * old issue links
  * wiki link

12 years agowindows: enable pending accepts knob
Igor Zinkovsky [Tue, 1 Nov 2011 08:35:48 +0000 (01:35 -0700)]
windows: enable pending accepts knob

12 years agouv: upgrade to 90b0b7d
Ben Noordhuis [Tue, 1 Nov 2011 21:11:58 +0000 (22:11 +0100)]
uv: upgrade to 90b0b7d

12 years agoos: rename getNetworkInterfaces() to networkInterfaces()
Ben Noordhuis [Tue, 1 Nov 2011 16:23:17 +0000 (17:23 +0100)]
os: rename getNetworkInterfaces() to networkInterfaces()

12 years agonode: remove `process.compile`
Maciej Małecki [Tue, 1 Nov 2011 14:16:16 +0000 (15:16 +0100)]
node: remove `process.compile`

It was deprecated before v0.4.

12 years agoprocess: fix process.nextTick() error case regression
Ben Noordhuis [Tue, 1 Nov 2011 15:30:41 +0000 (16:30 +0100)]
process: fix process.nextTick() error case regression

Patch and test by Koichi Kobayashi.

12 years agotest: fix test/message/undefined_reference_in_new_context.js
koichik [Tue, 1 Nov 2011 10:30:19 +0000 (19:30 +0900)]
test: fix test/message/undefined_reference_in_new_context.js

after 4d4900f, stack trace was changed.

12 years agodoc: Correct blatantly wrong futimes documentation
isaacs [Mon, 31 Oct 2011 23:31:37 +0000 (16:31 -0700)]
doc: Correct blatantly wrong futimes documentation

12 years agoprocess: optimize process.nextTick()
Ben Noordhuis [Mon, 31 Oct 2011 21:31:12 +0000 (22:31 +0100)]
process: optimize process.nextTick()

33% performance boost on large nextTick queues.

12 years agobench: add process.nextTick() benchmark
Ben Noordhuis [Mon, 31 Oct 2011 20:58:22 +0000 (21:58 +0100)]
bench: add process.nextTick() benchmark

12 years agotls, https: add passphrase option
koichik [Wed, 26 Oct 2011 17:34:56 +0000 (02:34 +0900)]
tls, https: add passphrase option

Fixes #1925.

12 years agodocs: tty: remove tty.open() documentation
Ben Noordhuis [Sun, 30 Oct 2011 20:22:46 +0000 (21:22 +0100)]
docs: tty: remove tty.open() documentation

12 years agocore: fix off-by-one error in node::DLOpen()
Ben Noordhuis [Sun, 30 Oct 2011 16:33:42 +0000 (17:33 +0100)]
core: fix off-by-one error in node::DLOpen()

Fixes loading of modules that use the NODE_MODULE macro on POSIX platforms.

12 years agodocs: addons: fix example
Ben Noordhuis [Sun, 30 Oct 2011 16:15:10 +0000 (17:15 +0100)]
docs: addons: fix example

12 years agofix for --harmony_block_scoping
koichik [Sun, 30 Oct 2011 15:49:20 +0000 (00:49 +0900)]
fix for --harmony_block_scoping

Fixes #1969.

12 years agodocs: fix option's name of cluster.startMaster()
koichik [Sun, 30 Oct 2011 02:40:31 +0000 (11:40 +0900)]
docs: fix option's name of cluster.startMaster()

12 years agouv: upgrade to 70381ce
Ben Noordhuis [Sun, 30 Oct 2011 01:56:51 +0000 (02:56 +0100)]
uv: upgrade to 70381ce

12 years agoevents: separate maxListeners and _events
Siddharth Mahendraker [Sun, 23 Oct 2011 11:19:45 +0000 (14:19 +0300)]
events: separate maxListeners and _events

Fixes #1479.
Fixes #1923.

12 years agofix pummel/test-child-process-spawn-loop.js on windows
Igor Zinkovsky [Sat, 29 Oct 2011 01:30:03 +0000 (18:30 -0700)]
fix pummel/test-child-process-spawn-loop.js on windows

12 years agoUpgrade libuv to e4d6509211
Bert Belder [Fri, 28 Oct 2011 23:33:01 +0000 (01:33 +0200)]
Upgrade libuv to e4d6509211

12 years agoExport some functions from node.h
Bert Belder [Fri, 28 Oct 2011 10:08:36 +0000 (12:08 +0200)]
Export some functions from node.h

12 years agoSupport native extension loading on Windows
Bert Belder [Fri, 28 Oct 2011 09:31:34 +0000 (11:31 +0200)]
Support native extension loading on Windows