platform/upstream/nodejs.git
13 years agoClose #1281 Make require a public member of module
isaacs [Thu, 14 Jul 2011 20:55:51 +0000 (13:55 -0700)]
Close #1281 Make require a public member of module

Reviewed by @felixge

13 years agotest-tcp-wrap dont assume port 80 priveleged'
Henry Rawas [Thu, 14 Jul 2011 20:59:37 +0000 (13:59 -0700)]
test-tcp-wrap dont assume port 80 priveleged'

13 years agonet_uv: sockets should be writable during connection
Henry Rawas [Thu, 14 Jul 2011 21:18:17 +0000 (14:18 -0700)]
net_uv: sockets should be writable during connection

13 years agonet_uv: Add maxConnections support
Henry Rawas [Thu, 14 Jul 2011 20:18:28 +0000 (13:18 -0700)]
net_uv: Add maxConnections support

13 years agoFix fs can't handle large file on 64bit platform
koichik [Fri, 8 Jul 2011 15:57:57 +0000 (00:57 +0900)]
Fix fs can't handle large file on 64bit platform

fs.read() and fs.write() can't handle more than 2GB files on 64bit platform.
Also fs.truncate() can't handle more than 4GB files.

Fixes #1199.
Fixes #1094.

13 years agofix socket-timeout. Also fix makefile test list name net-stream
Henry Rawas [Tue, 12 Jul 2011 22:26:45 +0000 (15:26 -0700)]
fix socket-timeout. Also fix makefile test list name net-stream

13 years agofix isip test
Henry Rawas [Tue, 12 Jul 2011 20:33:02 +0000 (13:33 -0700)]
fix isip test

13 years agotest-net-reconnect needs socket connect event
Henry Rawas [Fri, 8 Jul 2011 22:03:48 +0000 (15:03 -0700)]
test-net-reconnect needs socket connect event

13 years agoTell BSD users to run `gmake` instead.
Ben Noordhuis [Mon, 11 Jul 2011 12:16:00 +0000 (14:16 +0200)]
Tell BSD users to run `gmake` instead.

13 years agoFix off-by-one error in assertion.
Ben Noordhuis [Sat, 9 Jul 2011 01:22:03 +0000 (03:22 +0200)]
Fix off-by-one error in assertion.

Fixes test/simple/test-http-buffer-sanity.js

13 years agoFix V8 mingw32 build
Henry Rawas [Wed, 29 Jun 2011 18:12:58 +0000 (11:12 -0700)]
Fix V8 mingw32 build

Reported to V8
http://code.google.com/p/v8/issues/detail?id=1508

13 years agoStatically link in dependencies for node.exe
Igor Zinkovsky [Thu, 7 Jul 2011 20:54:30 +0000 (13:54 -0700)]
Statically link in dependencies for node.exe

13 years agoFixes #1260
koichik [Sun, 3 Jul 2011 06:20:25 +0000 (15:20 +0900)]
Fixes #1260

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

13 years agoFixes #1267.
koichik [Mon, 4 Jul 2011 19:10:14 +0000 (04:10 +0900)]
Fixes #1267.

Error message of JSON.parse() was changed.

13 years agomraleph emit hack
Ryan Dahl [Sat, 9 Jul 2011 00:08:52 +0000 (17:08 -0700)]
mraleph emit hack

13 years agoUpgrade V8 to 3.4.10
Ryan Dahl [Fri, 8 Jul 2011 23:40:11 +0000 (16:40 -0700)]
Upgrade V8 to 3.4.10

13 years agoAdd several asserts to tcp_wrap
Ryan Dahl [Wed, 6 Jul 2011 21:02:55 +0000 (14:02 -0700)]
Add several asserts to tcp_wrap

OnAlloc and OnConnection should not be occurring after uv_close was
called on the handle.

13 years agotest-uv: add more test cases
Henry Rawas [Fri, 8 Jul 2011 21:14:40 +0000 (14:14 -0700)]
test-uv: add more test cases

13 years agoadd tests to "make test-uv"
Henry Rawas [Fri, 8 Jul 2011 19:22:44 +0000 (12:22 -0700)]
add tests to "make test-uv"

13 years agoStart 'make test-uv' command
Ryan Dahl [Fri, 8 Jul 2011 17:40:35 +0000 (10:40 -0700)]
Start 'make test-uv' command

13 years agoisIP test
Henry Rawas [Thu, 7 Jul 2011 18:23:27 +0000 (11:23 -0700)]
isIP test

13 years agofix eaddrinuse bug
Henry Rawas [Thu, 7 Jul 2011 23:22:50 +0000 (16:22 -0700)]
fix eaddrinuse bug

13 years agonet_uv: fix test-net-eaddrinuse.js
Henry Rawas [Thu, 7 Jul 2011 00:13:17 +0000 (17:13 -0700)]
net_uv: fix test-net-eaddrinuse.js

13 years agoipv6 node
Henry Rawas [Wed, 6 Jul 2011 20:34:04 +0000 (13:34 -0700)]
ipv6 node

13 years agoRevert 8dc8773. Always send a HTTP/1.1 status line to the client.
Ben Noordhuis [Tue, 5 Jul 2011 19:54:06 +0000 (21:54 +0200)]
Revert 8dc8773. Always send a HTTP/1.1 status line to the client.

13 years agoAdd deps/uv/src/ares to include path
Ryan Dahl [Thu, 7 Jul 2011 21:39:25 +0000 (14:39 -0700)]
Add deps/uv/src/ares to include path

13 years agoEscape $CC and $CXX when passed to uv and V8
Ryan Dahl [Thu, 7 Jul 2011 20:52:04 +0000 (13:52 -0700)]
Escape $CC and $CXX when passed to uv and V8

13 years agoExport $CC and $CXX to uv and V8's build systems
Ryan Dahl [Thu, 7 Jul 2011 18:46:02 +0000 (11:46 -0700)]
Export $CC and $CXX to uv and V8's build systems

Now you can compile with clang by doing

  make distclean
  CC=clang CXX=clang++ ./configure
  make

13 years agocomplete libuv upgrade. sorry
Ryan Dahl [Thu, 7 Jul 2011 18:32:12 +0000 (11:32 -0700)]
complete libuv upgrade. sorry

13 years agoUpgrade libuv to 9518ab65949257384bf7e407d8502a6437fdda4b
Ryan Dahl [Thu, 7 Jul 2011 15:56:48 +0000 (08:56 -0700)]
Upgrade libuv to 9518ab65949257384bf7e407d8502a6437fdda4b

13 years agosysctl(CTL_HW, HW_PHYSMEM) always returns unsigned long. Will work fine for 32 and...
avz [Sun, 26 Jun 2011 07:30:23 +0000 (00:30 -0700)]
sysctl(CTL_HW, HW_PHYSMEM) always returns unsigned long. Will work fine for 32 and 64 bit systems. Closes #1233.

13 years agoSendTo and SendMsg expect a buffer only, not a string; fix the error message. Closes...
Joe Shaw [Mon, 27 Jun 2011 17:42:11 +0000 (13:42 -0400)]
SendTo and SendMsg expect a buffer only, not a string; fix the error message. Closes #1239.

13 years agourl: Don't swallow punycode errors
isaacs [Wed, 6 Jul 2011 20:12:37 +0000 (13:12 -0700)]
url: Don't swallow punycode errors

13 years agopunycode: Test for integer overflow
isaacs [Wed, 6 Jul 2011 20:12:21 +0000 (13:12 -0700)]
punycode: Test for integer overflow

13 years agoClose #1149 IDNA and Punycode support in url.parse
Jeremy Selier [Mon, 13 Jun 2011 12:43:16 +0000 (14:43 +0200)]
Close #1149 IDNA and Punycode support in url.parse

Using @bnoordhuis's punycode lib.

Close #1174 also

13 years agoUpgrade libuv to 0bf38570e8c7837bd830388f7b57f138aebb3395
Ryan Dahl [Wed, 6 Jul 2011 19:13:45 +0000 (12:13 -0700)]
Upgrade libuv to 0bf38570e8c7837bd830388f7b57f138aebb3395

13 years agoNow working on version v0.5.1
Ryan Dahl [Wed, 6 Jul 2011 05:13:55 +0000 (22:13 -0700)]
Now working on version v0.5.1

13 years agoBump to v0.5.0 v0.5.0
Ryan Dahl [Wed, 6 Jul 2011 00:41:24 +0000 (17:41 -0700)]
Bump to v0.5.0

13 years agoSupport SunOS 121. Check for ifaddrs in wscript for SunOS build.
Ryan Dahl [Wed, 6 Jul 2011 01:31:33 +0000 (18:31 -0700)]
Support SunOS 121. Check for ifaddrs in wscript for SunOS build.

13 years agoLibuv: add cygwin support
Bert Belder [Wed, 6 Jul 2011 00:50:50 +0000 (02:50 +0200)]
Libuv: add cygwin support

Fails a few tests

13 years agoRevert "Fixes #1260"
Ryan Dahl [Tue, 5 Jul 2011 23:49:13 +0000 (16:49 -0700)]
Revert "Fixes #1260"

Due to downgrade of V8.

This reverts commit 3e2abd12d3534d76e480fce7a0475d228749f31d.

13 years agoRevert "Fixes #1267."
Ryan Dahl [Tue, 5 Jul 2011 23:40:13 +0000 (16:40 -0700)]
Revert "Fixes #1267."

Revert due to V8 downgrade.

This reverts commit 04c916989291ccc28fb2a8230e4013f97cc9799d.

13 years agoRevert "Error argument for http.ServerRequest 'close'"
Ryan Dahl [Tue, 5 Jul 2011 22:42:32 +0000 (15:42 -0700)]
Revert "Error argument for http.ServerRequest 'close'"

Too slow.

This reverts commit e7ac6d8fcd3841da072d8b4b6c328b33549d45c3.

13 years agoDowngrade V8 to 3.1.8.25
Ryan Dahl [Tue, 5 Jul 2011 21:40:13 +0000 (14:40 -0700)]
Downgrade V8 to 3.1.8.25

There are serious performance regressions both in V8 and our own legacy
networking stack. Until we correct our own problems we are going back to the
old V8.

13 years agoVerify that the argument passed to vm.runInContext() is a context object.
Ben Noordhuis [Tue, 5 Jul 2011 20:34:15 +0000 (22:34 +0200)]
Verify that the argument passed to vm.runInContext() is a context object.

Fixes #558.

13 years agoParse the command line before initializing V8.
Ben Noordhuis [Thu, 23 Jun 2011 20:44:10 +0000 (22:44 +0200)]
Parse the command line before initializing V8.

Doing it the other way around means that V8 won't pick
up command line switches like `--prof`.

Props to Joshua Kehn for reporting the issue and Jeff Fifield
for pointing out the cause.

Fixes #900.
Fixes #1217.

13 years agodns_uv: match the old api better, fix tests
Bert Belder [Tue, 5 Jul 2011 19:16:13 +0000 (21:16 +0200)]
dns_uv: match the old api better, fix tests

13 years agouv: exception.code isntead of exception.errno
Ryan Dahl [Tue, 5 Jul 2011 19:07:30 +0000 (12:07 -0700)]
uv: exception.code isntead of exception.errno

13 years agoMerge branch 'V8-3.4'
Ryan Dahl [Tue, 5 Jul 2011 18:42:20 +0000 (11:42 -0700)]
Merge branch 'V8-3.4'

13 years agoUpgrade V8 to 3.4.9
Ryan Dahl [Tue, 5 Jul 2011 18:41:56 +0000 (11:41 -0700)]
Upgrade V8 to 3.4.9

13 years agomake test-process-uptime fail less often
Ryan Dahl [Tue, 5 Jul 2011 18:26:21 +0000 (11:26 -0700)]
make test-process-uptime fail less often

13 years agoRevert "Remove 'connect' event from server side sockets"
Ryan Dahl [Tue, 5 Jul 2011 17:52:22 +0000 (10:52 -0700)]
Revert "Remove 'connect' event from server side sockets"

Fixes #1276

This reverts commit f0a440d886bf5d7f84203c0520b274dbe834a5da.

13 years agoFix internet testcase config
Ryan Dahl [Tue, 5 Jul 2011 17:31:37 +0000 (10:31 -0700)]
Fix internet testcase config

13 years agonet_uv: enable another test case in test-net-pingpong
Ryan Dahl [Tue, 5 Jul 2011 17:08:35 +0000 (10:08 -0700)]
net_uv: enable another test case in test-net-pingpong

13 years agoTypo: stout -> stdout
Alex Xu [Sat, 2 Apr 2011 14:43:55 +0000 (10:43 -0400)]
Typo: stout -> stdout

Closes #874

13 years agoAvoid assertion failure closing tty stdin on windows
Bert Belder [Tue, 5 Jul 2011 00:32:51 +0000 (02:32 +0200)]
Avoid assertion failure closing tty stdin on windows

13 years agoFix wrong error handling at Open() after open(2) in sync mode
avz [Sat, 25 Jun 2011 09:42:20 +0000 (02:42 -0700)]
Fix wrong error handling at Open() after open(2) in sync mode

13 years agoTest case for issue #1228: errno masked in fs.openSync().
Ben Noordhuis [Sat, 25 Jun 2011 12:53:28 +0000 (14:53 +0200)]
Test case for issue #1228: errno masked in fs.openSync().

13 years agoFix `make test-internet`
Bert Belder [Mon, 4 Jul 2011 23:53:01 +0000 (01:53 +0200)]
Fix `make test-internet`

13 years agoFix bug in timers_uv timeout recomputation
Bert Belder [Mon, 4 Jul 2011 23:31:00 +0000 (01:31 +0200)]
Fix bug in timers_uv timeout recomputation

Closes #1209

13 years agoTest cases for #1234: don't send HTTP/1.1 responses to HTTP/1.0 clients.
Ben Noordhuis [Wed, 29 Jun 2011 19:14:02 +0000 (21:14 +0200)]
Test cases for #1234: don't send HTTP/1.1 responses to HTTP/1.0 clients.

13 years agoDon't send a HTTP/1.1 status line to HTTP/1.0 clients.
Ben Noordhuis [Wed, 29 Jun 2011 18:24:16 +0000 (20:24 +0200)]
Don't send a HTTP/1.1 status line to HTTP/1.0 clients.

Fixes #1234.

13 years agoClean up temporary file on exit.
Ben Noordhuis [Mon, 4 Jul 2011 23:06:39 +0000 (01:06 +0200)]
Clean up temporary file on exit.

Unbreaks test/simple/test-http-get-pipeline-problem.js,
it assumed a fixed number of files in the tmp directory.

13 years agolegacy c-ares binding should use legacy timer
Ryan Dahl [Mon, 4 Jul 2011 22:56:56 +0000 (15:56 -0700)]
legacy c-ares binding should use legacy timer

13 years agoBindings for libuv-integrated c-ares
Bert Belder [Mon, 4 Jul 2011 22:17:20 +0000 (00:17 +0200)]
Bindings for libuv-integrated c-ares

13 years agoFix v8 mingw build
Bert Belder [Mon, 4 Jul 2011 22:02:46 +0000 (00:02 +0200)]
Fix v8 mingw build

13 years agoFix net_uv.isIPv4/6 bug
Bert Belder [Mon, 4 Jul 2011 22:03:21 +0000 (00:03 +0200)]
Fix net_uv.isIPv4/6 bug

13 years agoUpdate POSIX splitPathRe to allow control chars. Fixes #1230.
Adam Luikart [Sat, 25 Jun 2011 22:37:57 +0000 (17:37 -0500)]
Update POSIX splitPathRe to allow control chars. Fixes #1230.

Use [\s\S] instead of . to match any char, including newlines.

13 years agoFixes #1267.
koichik [Mon, 4 Jul 2011 19:10:14 +0000 (04:10 +0900)]
Fixes #1267.

Error message of JSON.parse() was changed.

13 years agoRemoved/Fixed TODO DRY
Niklas Fiekas [Fri, 24 Dec 2010 23:40:48 +0000 (00:40 +0100)]
Removed/Fixed TODO DRY

13 years agonet_uv: add isIP
Ryan Dahl [Mon, 4 Jul 2011 18:25:31 +0000 (11:25 -0700)]
net_uv: add isIP

Issue #1270: Doesn't completely pass test/simple/test-net-isip.js yet.

13 years agoFix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237.
Joe Shaw [Mon, 27 Jun 2011 17:25:05 +0000 (13:25 -0400)]
Fix a misnamed argument; multicastAddress -> multicastInterface. Closes #1237.

13 years agoFixed a typo in a comment: "realpatch" -> "realpath"
Jörn Horstmann [Wed, 11 May 2011 09:33:16 +0000 (02:33 -0700)]
Fixed a typo in a comment: "realpatch" -> "realpath"

13 years agoDocument that `path.join()` and `path.resolve()` ignore non-string arguments.
Ben Noordhuis [Mon, 4 Jul 2011 16:21:38 +0000 (18:21 +0200)]
Document that `path.join()` and `path.resolve()` ignore non-string arguments.

Fixes #514.

13 years agoAdding missing v8 namespace to NODE_PSYMBOL
Mariano Iglesias [Fri, 11 Mar 2011 10:09:05 +0000 (07:09 -0300)]
Adding missing v8 namespace to NODE_PSYMBOL

13 years agoFix net.Socket.connect argument parsing
koichik [Mon, 4 Jul 2011 15:34:58 +0000 (00:34 +0900)]
Fix net.Socket.connect argument parsing

Fixes #1251.

13 years agoCheck that PR_SET_NAME is defined.
Ben Noordhuis [Mon, 4 Jul 2011 12:29:59 +0000 (14:29 +0200)]
Check that PR_SET_NAME is defined.

Avoids breaking the build with older (pre-2006) linux kernels.
Raises a JS exception if the script tries to assign to `process.title`.

Fixes #840.

13 years agoTest for #402: writing base64 at position > 0 should not mangle the result.
Ben Noordhuis [Mon, 4 Jul 2011 15:02:58 +0000 (17:02 +0200)]
Test for #402: writing base64 at position > 0 should not mangle the result.

This is a regression test, the bug itself was fixed in v0.3.x.

13 years agoDocument behaviour of the `encoding` parameter of fs.writeFile().
Ben Noordhuis [Mon, 4 Jul 2011 14:26:46 +0000 (16:26 +0200)]
Document behaviour of the `encoding` parameter of fs.writeFile().

Fixes #401.

13 years agoFix doctool uses RegExp object as a Function
koichik [Sun, 3 Jul 2011 07:46:24 +0000 (16:46 +0900)]
Fix doctool uses RegExp object as a Function

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

Fixes #1262.

13 years agoFixes #1260
koichik [Sun, 3 Jul 2011 06:20:25 +0000 (15:20 +0900)]
Fixes #1260

RegExp object is no longer Function.
http://code.google.com/p/v8/issues/detail?id=617

13 years agohttp: Fix agent id creation
Ryan Dahl [Sun, 3 Jul 2011 18:05:03 +0000 (11:05 -0700)]
http: Fix agent id creation

Unbreaks test-regress-GH-877.js

13 years agoFix require with --eval
Ryan Dahl [Sun, 3 Jul 2011 17:39:45 +0000 (10:39 -0700)]
Fix require with --eval

Caused by bad merging of d6ec8f

Fixes #1261.

13 years agouse_uv: Correct readyState on connecting
Ryan Dahl [Sat, 2 Jul 2011 07:18:36 +0000 (00:18 -0700)]
use_uv: Correct readyState on connecting

13 years agoMerge branch 'v0.4'
Ryan Dahl [Sat, 2 Jul 2011 03:32:41 +0000 (20:32 -0700)]
Merge branch 'v0.4'

13 years agoSet process.useUV also on env NODE_USE_UV=1
Ryan Dahl [Sat, 2 Jul 2011 02:30:15 +0000 (19:30 -0700)]
Set process.useUV also on env NODE_USE_UV=1

13 years agonet_uv: fix test-net-connect-timeout.js test
Henry Rawas [Fri, 1 Jul 2011 19:01:12 +0000 (12:01 -0700)]
net_uv: fix test-net-connect-timeout.js test

13 years agoFixes #877. Don't wait for socket pool to establish connections.
Ryan Dahl [Fri, 1 Jul 2011 22:49:39 +0000 (15:49 -0700)]
Fixes #877. Don't wait for socket pool to establish connections.

Thanks to Yann Biancheri for putting together an initial test.

13 years agoRevert "debugger: don't allow users to input non-valid commands"
Ryan Dahl [Fri, 1 Jul 2011 22:38:53 +0000 (15:38 -0700)]
Revert "debugger: don't allow users to input non-valid commands"

breaks 'print' command

This reverts commit 37d529f818aacd1146b1d927b3251bbefcea389f.

13 years agoUpgrade libuv to ba1c38f to fix mingw build
Ryan Dahl [Fri, 1 Jul 2011 17:59:42 +0000 (10:59 -0700)]
Upgrade libuv to ba1c38f to fix mingw build

13 years agoFix solaris build (http://codereview.chromium.org/7282034/)
Robert Mustacchi [Fri, 1 Jul 2011 16:48:34 +0000 (09:48 -0700)]
Fix solaris build (codereview.chromium.org/7282034/)

13 years agoComplete libuv upgrade
Ryan Dahl [Fri, 1 Jul 2011 16:38:47 +0000 (09:38 -0700)]
Complete libuv upgrade

13 years agoUpgrade libuv
Ryan Dahl [Fri, 1 Jul 2011 16:30:44 +0000 (09:30 -0700)]
Upgrade libuv

13 years agonet_uv: reuse socket
Henry Rawas [Thu, 30 Jun 2011 23:37:30 +0000 (16:37 -0700)]
net_uv: reuse socket

13 years agotiny fixes in tty_posix.js
Yoshihiro KIKUCHI [Thu, 30 Jun 2011 13:20:23 +0000 (22:20 +0900)]
tiny fixes in tty_posix.js

Close #1158
Close #1160
Close #1252

13 years agonet_uv: Stub out setKeepAlive
Ryan Dahl [Thu, 30 Jun 2011 21:53:22 +0000 (14:53 -0700)]
net_uv: Stub out setKeepAlive

13 years agoFix V8 mingw32 build
Henry Rawas [Wed, 29 Jun 2011 18:12:58 +0000 (11:12 -0700)]
Fix V8 mingw32 build

Reported to V8
http://code.google.com/p/v8/issues/detail?id=1508

13 years agoUpgrade libuv to 8fd916d6ddc9c7fd0e3e8e668efbc2d782e8e742
Ryan Dahl [Wed, 29 Jun 2011 17:35:17 +0000 (19:35 +0200)]
Upgrade libuv to 8fd916d6ddc9c7fd0e3e8e668efbc2d782e8e742

13 years agofix mingw build
Henry Rawas [Wed, 29 Jun 2011 16:59:45 +0000 (09:59 -0700)]
fix mingw build

13 years agonet_uv: Fix server.listen argument parsing
Ryan Dahl [Wed, 29 Jun 2011 16:04:55 +0000 (18:04 +0200)]
net_uv: Fix server.listen argument parsing