platform/upstream/nodejs.git
12 years agonode: fix use of potentially uninitialized variable
Ben Noordhuis [Fri, 14 Oct 2011 15:05:02 +0000 (15:05 +0000)]
node: fix use of potentially uninitialized variable

12 years agotimer_wrap: add sanity check assert
Ben Noordhuis [Fri, 14 Oct 2011 15:00:37 +0000 (15:00 +0000)]
timer_wrap: add sanity check assert

12 years agotcp_wrap: add sanity check asserts
Ben Noordhuis [Fri, 14 Oct 2011 14:58:41 +0000 (14:58 +0000)]
tcp_wrap: add sanity check asserts

12 years agonode_script: remove unused variable
Ben Noordhuis [Fri, 14 Oct 2011 14:50:38 +0000 (14:50 +0000)]
node_script: remove unused variable

12 years agonode: fix arguments to uv_timer_start()
Ben Noordhuis [Fri, 14 Oct 2011 14:43:49 +0000 (14:43 +0000)]
node: fix arguments to uv_timer_start()

12 years agocares_wrap: make destructor virtual
Ben Noordhuis [Fri, 14 Oct 2011 14:39:21 +0000 (14:39 +0000)]
cares_wrap: make destructor virtual

A class with virtual methods should have a virtual destructor.

12 years agoUpgrade V8 to 3.7.0
Ryan Dahl [Fri, 14 Oct 2011 00:45:02 +0000 (17:45 -0700)]
Upgrade V8 to 3.7.0

12 years agoFix #1882 zlib Update 'availOutBefore' value, and test
isaacs [Thu, 13 Oct 2011 23:37:49 +0000 (16:37 -0700)]
Fix #1882 zlib Update 'availOutBefore' value, and test

12 years agodocs: add API documentation note about UDP datagram size
Guglielmo Ferri [Sat, 10 Sep 2011 12:55:58 +0000 (15:55 +0300)]
docs: add API documentation note about UDP datagram size

12 years agodocs: document `process.versions`
Maciej Małecki [Thu, 13 Oct 2011 14:10:24 +0000 (16:10 +0200)]
docs: document `process.versions`

12 years agonet: register net.Server callback only once
Simen Brekken [Wed, 12 Oct 2011 10:06:16 +0000 (13:06 +0300)]
net: register net.Server callback only once

Only register once for listening when passing a callback to Server.listen(),
this prevents servers recycled using close() from invoking the callback when
Server.listen() is called later.

12 years agoplatform: support long process names on linux
Ben Noordhuis [Thu, 13 Oct 2011 02:56:11 +0000 (04:56 +0200)]
platform: support long process names on linux

12 years agotest: test long process name support
Ben Noordhuis [Thu, 13 Oct 2011 13:36:28 +0000 (15:36 +0200)]
test: test long process name support

On platforms that support it: linux, freebsd, darwin

12 years agodocs: added .json modules.
koichik [Thu, 13 Oct 2011 08:06:27 +0000 (17:06 +0900)]
docs: added .json modules.

12 years agodocs: mention util instead of sys
Brian White [Thu, 13 Oct 2011 01:20:03 +0000 (22:20 -0300)]
docs: mention util instead of sys

12 years agoFix test-http-conn-reset.js on OSX
Ryan Dahl [Thu, 13 Oct 2011 00:31:32 +0000 (17:31 -0700)]
Fix test-http-conn-reset.js on OSX

12 years agodocs: improved fs.Stats section in API documentation
Ilya Dmitrichenko [Tue, 11 Oct 2011 22:30:29 +0000 (23:30 +0100)]
docs: improved fs.Stats section in API documentation

12 years agosys has been moved to util
Arnout Kazemier [Wed, 12 Oct 2011 18:50:42 +0000 (21:50 +0300)]
sys has been moved to util

12 years agoMove some slow tests to pummel
Ryan Dahl [Wed, 12 Oct 2011 23:59:00 +0000 (16:59 -0700)]
Move some slow tests to pummel

12 years agoFix test/pummel/test-watch-file.js
Ryan Dahl [Wed, 12 Oct 2011 23:18:42 +0000 (16:18 -0700)]
Fix test/pummel/test-watch-file.js

12 years agoFix test/pummel/test-exec.js
Ryan Dahl [Wed, 12 Oct 2011 23:11:55 +0000 (16:11 -0700)]
Fix test/pummel/test-exec.js

12 years agoNew win32 platform function: GetCPUInfo
Karl Skomski [Tue, 6 Sep 2011 19:28:15 +0000 (21:28 +0200)]
New win32 platform function: GetCPUInfo

Fixes #1644

12 years agoImprove IPC performance.
Daniel Ennis [Wed, 12 Oct 2011 00:54:55 +0000 (20:54 -0400)]
Improve IPC performance.

Reading of JSON data off the buffer, 10-15% performance increase.

Fixes #1864.

12 years agoAdd cluster.js to node.gyp
Ryan Dahl [Wed, 12 Oct 2011 21:51:25 +0000 (14:51 -0700)]
Add cluster.js to node.gyp

12 years agoAdd some docs for node cluster
Ryan Dahl [Wed, 12 Oct 2011 21:19:32 +0000 (14:19 -0700)]
Add some docs for node cluster

12 years agoRemove process.ARGV
Ryan Dahl [Wed, 12 Oct 2011 21:10:30 +0000 (14:10 -0700)]
Remove process.ARGV

Use process.argv instead.

12 years agoRevert some changes made in 12486a6
Ryan Dahl [Wed, 12 Oct 2011 19:46:41 +0000 (12:46 -0700)]
Revert some changes made in 12486a6

Some of the perf improvements from many-writes-fix branch were accidentally
undone in that commit. This puts them back in.

12 years agoRemove uname and git-rev detection from http_simple.js
Ryan Dahl [Wed, 12 Oct 2011 19:29:40 +0000 (12:29 -0700)]
Remove uname and git-rev detection from http_simple.js

12 years agoUpgrade libuv to c903bc3
Ryan Dahl [Wed, 12 Oct 2011 19:27:46 +0000 (12:27 -0700)]
Upgrade libuv to c903bc3

12 years agodocs: fix child_process.send() example
Ben Noordhuis [Wed, 12 Oct 2011 15:44:12 +0000 (17:44 +0200)]
docs: fix child_process.send() example

12 years agouv: upgrade to 25a177a
Ben Noordhuis [Wed, 12 Oct 2011 15:32:47 +0000 (17:32 +0200)]
uv: upgrade to 25a177a

Fixes #1869.

12 years agotest: add test for #1869
Ben Noordhuis [Wed, 12 Oct 2011 14:28:46 +0000 (16:28 +0200)]
test: add test for #1869

fs.readdir() on file should raise ENOTDIR, not UNKNOWN.

12 years agoRemove --use-legacy switch from --help section.
Ben Noordhuis [Wed, 12 Oct 2011 13:47:20 +0000 (15:47 +0200)]
Remove --use-legacy switch from --help section.

12 years agointroduce node cluster
Ryan Dahl [Wed, 12 Oct 2011 09:56:29 +0000 (02:56 -0700)]
introduce node cluster

12 years agofix simple/test-fs-utimes.js on windows
Igor Zinkovsky [Wed, 12 Oct 2011 05:34:51 +0000 (22:34 -0700)]
fix simple/test-fs-utimes.js on windows

12 years agoAdd throughput benchmark
Ryan Dahl [Wed, 12 Oct 2011 05:40:04 +0000 (22:40 -0700)]
Add throughput benchmark

12 years agofs.watch documentation
Igor Zinkovsky [Tue, 11 Oct 2011 23:01:37 +0000 (16:01 -0700)]
fs.watch documentation

12 years agoRemove more dead code
Ryan Dahl [Tue, 11 Oct 2011 22:20:09 +0000 (15:20 -0700)]
Remove more dead code

12 years agoRemove process.ENV
Ryan Dahl [Tue, 11 Oct 2011 22:17:32 +0000 (15:17 -0700)]
Remove process.ENV

12 years agoRemove stdio binding source - somehow this was missed in cdf5d91
Ryan Dahl [Tue, 11 Oct 2011 21:59:39 +0000 (14:59 -0700)]
Remove stdio binding source - somehow this was missed in cdf5d91

12 years agoFix test-module-load-list.js
Ryan Dahl [Tue, 11 Oct 2011 21:49:39 +0000 (14:49 -0700)]
Fix test-module-load-list.js

12 years agoRemove tests relying on !process.features.uv
Ryan Dahl [Tue, 11 Oct 2011 21:46:55 +0000 (14:46 -0700)]
Remove tests relying on !process.features.uv

12 years agoRemove --use-legacy and --use-uv
Ryan Dahl [Tue, 11 Oct 2011 21:38:38 +0000 (14:38 -0700)]
Remove --use-legacy and --use-uv

12 years agoFix windows build
Ryan Dahl [Tue, 11 Oct 2011 21:25:50 +0000 (14:25 -0700)]
Fix windows build

12 years agoRemove tty_legacy
Ryan Dahl [Tue, 11 Oct 2011 20:41:33 +0000 (13:41 -0700)]
Remove tty_legacy

12 years agoRemove dgram_legacy
Ryan Dahl [Tue, 11 Oct 2011 20:26:41 +0000 (13:26 -0700)]
Remove dgram_legacy

12 years agoRemove dns_legacy
Ryan Dahl [Tue, 11 Oct 2011 20:21:30 +0000 (13:21 -0700)]
Remove dns_legacy

12 years agoRemove child_process_legacy
Ryan Dahl [Tue, 11 Oct 2011 20:16:33 +0000 (13:16 -0700)]
Remove child_process_legacy

12 years agoRemove net_legacy timers_legacy
Ryan Dahl [Tue, 11 Oct 2011 20:07:14 +0000 (13:07 -0700)]
Remove net_legacy timers_legacy

12 years agodisable test-sendfd
Ryan Dahl [Tue, 11 Oct 2011 19:50:05 +0000 (12:50 -0700)]
disable test-sendfd

12 years agodocs: improve addons, readline, repl documentation
Fedor Indutny [Tue, 11 Oct 2011 19:14:00 +0000 (02:14 +0700)]
docs: improve addons, readline, repl documentation

12 years agodocs: fix typo in code snippet
Ben Noordhuis [Tue, 11 Oct 2011 19:05:45 +0000 (21:05 +0200)]
docs: fix typo in code snippet

12 years agoDisable test-child-process-custom-fds.js
Ryan Dahl [Tue, 11 Oct 2011 18:27:58 +0000 (11:27 -0700)]
Disable test-child-process-custom-fds.js

12 years agoUpgrade libuv to 4ac1309
Ryan Dahl [Tue, 11 Oct 2011 17:51:05 +0000 (10:51 -0700)]
Upgrade libuv to 4ac1309

Fixes #1857

12 years agowix project to create msi installer for windows
Tomasz Janczuk [Wed, 14 Sep 2011 21:51:49 +0000 (14:51 -0700)]
wix project to create msi installer for windows

Fixes #1706.

12 years agoRemove ANOTHER old TODO list
Ryan Dahl [Tue, 11 Oct 2011 17:08:47 +0000 (10:08 -0700)]
Remove ANOTHER old TODO list

12 years agoRemove old TODO list
Ryan Dahl [Tue, 11 Oct 2011 17:08:09 +0000 (10:08 -0700)]
Remove old TODO list

12 years agoDelete another CMake file
Ryan Dahl [Tue, 11 Oct 2011 17:07:33 +0000 (10:07 -0700)]
Delete another CMake file

12 years agoRemove cmake build system
Ryan Dahl [Tue, 11 Oct 2011 16:58:35 +0000 (09:58 -0700)]
Remove cmake build system

This removes one of the three build systems. CMake has never been officially
supported and is not updated with WAF and GYP. WAF itself is considered
legacy and will be removed once the GYP system is feature complete on
Unixes. GYP is used currently on Windows/MSVS.

12 years agov8: fix gyp build on windows
Ben Noordhuis [Tue, 11 Oct 2011 15:21:27 +0000 (17:21 +0200)]
v8: fix gyp build on windows

12 years agouv: upgrade to 47d22ac
Ben Noordhuis [Tue, 11 Oct 2011 14:56:43 +0000 (16:56 +0200)]
uv: upgrade to 47d22ac

12 years agonow working on v0.5.10
Ryan Dahl [Tue, 11 Oct 2011 01:56:37 +0000 (18:56 -0700)]
now working on v0.5.10

12 years agoBump version to v0.5.9 v0.5.9
Ryan Dahl [Mon, 10 Oct 2011 21:43:15 +0000 (14:43 -0700)]
Bump version to v0.5.9

12 years agoRevert "v8: implement VirtualMemory class on SunOS"
Ryan Dahl [Tue, 11 Oct 2011 01:17:17 +0000 (18:17 -0700)]
Revert "v8: implement VirtualMemory class on SunOS"

This reverts commit 9bbca99107652906a060679ee95bf1ad7381cbb5.

12 years agoRevert "Upgrade V8 to 3.6.6"
Ryan Dahl [Tue, 11 Oct 2011 00:58:30 +0000 (17:58 -0700)]
Revert "Upgrade V8 to 3.6.6"

Not stable enough.
- Windows snapshot linking broken
- Linux crash on ./node_g test/simple/test-stream-pipe-multi.js

This reverts commit 56e6952e639ba1557a5b22333788583e9e39fa29.

12 years agov8: implement VirtualMemory class on SunOS
Ben Noordhuis [Mon, 10 Oct 2011 22:32:54 +0000 (22:32 +0000)]
v8: implement VirtualMemory class on SunOS

12 years agoUpgrade libuv to f7f518a
Ryan Dahl [Tue, 11 Oct 2011 00:05:18 +0000 (17:05 -0700)]
Upgrade libuv to f7f518a

12 years agochild_process.fork: don't overwrite env
Ryan Dahl [Mon, 10 Oct 2011 21:49:02 +0000 (14:49 -0700)]
child_process.fork: don't overwrite env

thanks to Malte-Thorben Bruns for pointing this out

12 years agoRemove test-child-process-channel.js
Ryan Dahl [Mon, 10 Oct 2011 21:27:52 +0000 (14:27 -0700)]
Remove test-child-process-channel.js

12 years agoAdjust listenFD deprecation message. Remove test.
Ryan Dahl [Mon, 10 Oct 2011 21:24:56 +0000 (14:24 -0700)]
Adjust listenFD deprecation message. Remove test.

12 years agoprocess.stderr goes through libuv now
Ryan Dahl [Mon, 10 Oct 2011 20:52:18 +0000 (13:52 -0700)]
process.stderr goes through libuv now

This commit removes one assert from test-console.js in which we check that
process.stderr.write returns true. In the case of a dump to a file we cannot
guarantee this any longer now that it goes through fs.WriteStream.

12 years agogyp: work around sunos python flock() bug
Ben Noordhuis [Mon, 10 Oct 2011 20:50:47 +0000 (20:50 +0000)]
gyp: work around sunos python flock() bug

flock(LOCK_EX) always fails with EBADF, use fcntl(F_SETLK) instead.

12 years agotty.WritableStream should be writable
Ryan Dahl [Mon, 10 Oct 2011 20:41:04 +0000 (13:41 -0700)]
tty.WritableStream should be writable

12 years agoUpgrade libuv to 5656e3
Ryan Dahl [Mon, 10 Oct 2011 20:30:10 +0000 (13:30 -0700)]
Upgrade libuv to 5656e3

This modifies the TTYWrap constructor to add another argument specifying if
it's a readable or writable TTY . That is stdin or stdout. If a TTYWrap is
not readable then writes to it are blocking.

This makes process.stdout blocking.

12 years agoFix #1851 Correct X/index doc
isaacs [Mon, 10 Oct 2011 18:46:36 +0000 (11:46 -0700)]
Fix #1851 Correct X/index doc

12 years agoUpgrade V8 to 3.6.6
Ryan Dahl [Mon, 10 Oct 2011 18:52:42 +0000 (11:52 -0700)]
Upgrade V8 to 3.6.6

12 years agoUpdate docs for server fd sharing
Ryan Dahl [Mon, 10 Oct 2011 18:31:40 +0000 (11:31 -0700)]
Update docs for server fd sharing

12 years agouv: upgrade to 41e8574
Ben Noordhuis [Mon, 10 Oct 2011 14:56:02 +0000 (16:56 +0200)]
uv: upgrade to 41e8574

12 years agotty: unbreak --use-legacy
Ben Noordhuis [Mon, 10 Oct 2011 13:37:07 +0000 (15:37 +0200)]
tty: unbreak --use-legacy

Fixes #1844.

12 years agoWindows: exit on ctrl+c
Bert Belder [Sat, 8 Oct 2011 00:18:26 +0000 (02:18 +0200)]
Windows: exit on ctrl+c

Fixes #1813

12 years agofix for simple/test-executable-path.js on windows
Igor Zinkovsky [Sat, 8 Oct 2011 00:08:48 +0000 (17:08 -0700)]
fix for simple/test-executable-path.js on windows

12 years agoChange API for sending handles
Ryan Dahl [Fri, 7 Oct 2011 23:43:53 +0000 (16:43 -0700)]
Change API for sending handles

Does not support sending net.Server objects only raw TCPWrap objects.

12 years agoUpgrade libuv to 9f6024a
Ryan Dahl [Fri, 7 Oct 2011 22:20:33 +0000 (15:20 -0700)]
Upgrade libuv to 9f6024a

Fixes #1840

12 years agoDo load balancing test in test-child-process-fork2.
Ryan Dahl [Fri, 7 Oct 2011 20:58:49 +0000 (13:58 -0700)]
Do load balancing test in test-child-process-fork2.

12 years agoSome small optimizations
Bert Belder [Fri, 7 Oct 2011 01:07:45 +0000 (03:07 +0200)]
Some small optimizations

12 years agoSimplify arg parsing in String.write
Ryan Dahl [Thu, 6 Oct 2011 23:57:35 +0000 (16:57 -0700)]
Simplify arg parsing in String.write

12 years agonet: remove unconditional getpeername() call
Ben Noordhuis [Thu, 6 Oct 2011 21:53:27 +0000 (23:53 +0200)]
net: remove unconditional getpeername() call

Speeds up http_simple benchmark by about 1.0%

12 years agoSimplify writeReq handling in net_uv
Bert Belder [Thu, 6 Oct 2011 19:27:10 +0000 (21:27 +0200)]
Simplify writeReq handling in net_uv

12 years agoFixing #1774 about issues when running node with --harmony_block_scoping v8 option
talltyler [Fri, 7 Oct 2011 03:04:39 +0000 (23:04 -0400)]
Fixing #1774 about issues when running node with --harmony_block_scoping v8 option

Fixes #1837.

12 years agoBlack hole tcp reads after destroy()
Bert Belder [Fri, 7 Oct 2011 17:00:48 +0000 (19:00 +0200)]
Black hole tcp reads after destroy()

12 years agoAdd test-child-process-fork2 and fixes to make it work
Ryan Dahl [Fri, 7 Oct 2011 09:43:44 +0000 (02:43 -0700)]
Add test-child-process-fork2 and fixes to make it work

12 years agoDon't check sign of loadavg
Fedor Indutny [Fri, 7 Oct 2011 08:21:23 +0000 (15:21 +0700)]
Don't check sign of loadavg

Fixes #1838

12 years agouse uv for memory and loadavg functions
Fedor Indutny [Fri, 7 Oct 2011 08:17:51 +0000 (15:17 +0700)]
use uv for memory and loadavg functions

12 years agoSupport sending handles to other processes
Ryan Dahl [Fri, 7 Oct 2011 08:30:26 +0000 (01:30 -0700)]
Support sending handles to other processes

Needs test.

12 years agoTurn off V8's -Werror in GYP
Ryan Dahl [Fri, 7 Oct 2011 08:08:53 +0000 (01:08 -0700)]
Turn off V8's -Werror in GYP

12 years agoMerge branch 'ipc-binding'
Ryan Dahl [Fri, 7 Oct 2011 08:00:40 +0000 (01:00 -0700)]
Merge branch 'ipc-binding'

12 years agoReimplement child_process.fork
Ryan Dahl [Fri, 7 Oct 2011 07:57:37 +0000 (00:57 -0700)]
Reimplement child_process.fork

Fixes test/simple/test-child-process-fork.js

12 years agoUpgrade libuv to 886b112
Ryan Dahl [Fri, 7 Oct 2011 07:47:13 +0000 (00:47 -0700)]
Upgrade libuv to 886b112

12 years agomv test-child-process-spawn-node.js test/simple/test-child-process-fork.js
Ryan Dahl [Fri, 7 Oct 2011 05:56:29 +0000 (22:56 -0700)]
mv test-child-process-spawn-node.js test/simple/test-child-process-fork.js

12 years agouv_write2 uv_read2_start binding
Ryan Dahl [Wed, 5 Oct 2011 19:33:05 +0000 (12:33 -0700)]
uv_write2 uv_read2_start binding