platform/upstream/nodejs.git
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

13 years agoUpgrade V8 to 3.4.8
Ryan Dahl [Wed, 29 Jun 2011 15:26:51 +0000 (17:26 +0200)]
Upgrade V8 to 3.4.8

13 years agoAdd docs about NODE_USE_UV to man page
Ryan Dahl [Wed, 29 Jun 2011 15:16:15 +0000 (17:16 +0200)]
Add docs about NODE_USE_UV to man page

13 years agoRevert "Add support for file descriptor type detection."
Ryan Dahl [Wed, 29 Jun 2011 13:24:55 +0000 (15:24 +0200)]
Revert "Add support for file descriptor type detection."

This reverts commit 911cbd0cef02c93f821c0c80a3d5dbad2b692c42.

This patch is broken on Linux and I don't want to think about the
functionality during the Windows port. We can reconsider it after v0.6.

13 years agonet_uv: Delay listen emit
Henry Rawas [Tue, 28 Jun 2011 21:32:01 +0000 (14:32 -0700)]
net_uv: Delay listen emit

13 years agoEnable new timer binding only on --use-uv
Ryan Dahl [Wed, 29 Jun 2011 13:14:55 +0000 (15:14 +0200)]
Enable new timer binding only on --use-uv

13 years agoRevert "Get rid of the old timer binding"
Ryan Dahl [Wed, 29 Jun 2011 13:06:40 +0000 (15:06 +0200)]
Revert "Get rid of the old timer binding"

This reverts commit cc82724fdcd2c914be60e3073f87f053829f6baa.

Conflicts:

src/node.cc
wscript

13 years agoMerge branch 'v0.4'
Ryan Dahl [Wed, 29 Jun 2011 12:50:03 +0000 (14:50 +0200)]
Merge branch 'v0.4'

Conflicts:
src/node.js
src/node_version.h

13 years agoNow working on v0.4.10
Ryan Dahl [Wed, 29 Jun 2011 12:44:38 +0000 (14:44 +0200)]
Now working on v0.4.10

13 years agoBump to v0.4.9 v0.4.9
Ryan Dahl [Wed, 29 Jun 2011 11:24:02 +0000 (13:24 +0200)]
Bump to v0.4.9

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Wed, 29 Jun 2011 10:49:37 +0000 (12:49 +0200)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.25
Ryan Dahl [Wed, 29 Jun 2011 10:49:17 +0000 (12:49 +0200)]
Upgrade V8 to 3.1.8.25

13 years agoDont install ares_build.h or ares_rules.h
Ryan Dahl [Wed, 29 Jun 2011 00:44:26 +0000 (02:44 +0200)]
Dont install ares_build.h or ares_rules.h

13 years agoFix the MinGW build
Henry Rawas [Tue, 28 Jun 2011 20:32:35 +0000 (13:32 -0700)]
Fix the MinGW build

13 years agoFix test-tcp-wrap-listen
Ryan Dahl [Tue, 28 Jun 2011 11:56:02 +0000 (13:56 +0200)]
Fix test-tcp-wrap-listen

13 years agoFix test-net-pingpong.js on windows
Henry Rawas [Fri, 24 Jun 2011 19:32:09 +0000 (12:32 -0700)]
Fix test-net-pingpong.js on windows

13 years agoUpgrade libuv to f9b9bb44bd6e2b74729b5d1ff481adf4213e9a0b
Ryan Dahl [Wed, 22 Jun 2011 12:06:26 +0000 (14:06 +0200)]
Upgrade libuv to f9b9bb44bd6e2b74729b5d1ff481adf4213e9a0b

13 years agoFix mismatch createConnection and Socket.connect
koichik [Tue, 21 Jun 2011 14:53:02 +0000 (23:53 +0900)]
Fix mismatch createConnection and Socket.connect

net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.

net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])

Fixes #1208.

13 years agoTest case for issue #1218: uncatchable exception on TLS connection error.
Ben Noordhuis [Sat, 25 Jun 2011 13:30:17 +0000 (15:30 +0200)]
Test case for issue #1218: uncatchable exception on TLS connection error.

13 years agoPrevent "undefined symbol: ev_rt_now" link errors in third-party modules.
Ben Noordhuis [Wed, 22 Jun 2011 22:29:03 +0000 (00:29 +0200)]
Prevent "undefined symbol: ev_rt_now" link errors in third-party modules.

Fixes #1181.

13 years agonet_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var
Ryan Dahl [Mon, 20 Jun 2011 13:51:03 +0000 (15:51 +0200)]
net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var

13 years agonet_uv: Don't add listenerCallback when null
Ryan Dahl [Mon, 20 Jun 2011 12:48:00 +0000 (14:48 +0200)]
net_uv: Don't add listenerCallback when null

13 years agoFix -e/--eval can't load module from node_modules
koichik [Fri, 17 Jun 2011 16:11:43 +0000 (01:11 +0900)]
Fix -e/--eval can't load module from node_modules

With -e or --eval, require() can load module using relative path.

    node -e 'require("./foo")'

But it can't load module from node_modules directory.

    node -e 'require("foo")'

Fixes #1196.

13 years agoFixes #1197. Fix failing os.getNetworkInterfaces() test in test-os.js
Ben Noordhuis [Fri, 17 Jun 2011 20:40:29 +0000 (22:40 +0200)]
Fixes #1197. Fix failing os.getNetworkInterfaces() test in test-os.js

13 years agoFixes #1187. Support multiple 'link' headers
Ryan Dahl [Mon, 20 Jun 2011 10:50:58 +0000 (12:50 +0200)]
Fixes #1187. Support multiple 'link' headers

13 years agoFixes #1203. Add missing scope.Close to fs.sendfileSync
Ryan Dahl [Mon, 20 Jun 2011 10:48:38 +0000 (12:48 +0200)]
Fixes #1203. Add missing scope.Close to fs.sendfileSync

13 years agoFixes #1204. Add missing headers files to include
Sam Shull [Sun, 19 Jun 2011 06:06:33 +0000 (02:06 -0400)]
Fixes #1204. Add missing headers files to include

This commit fixes install of required dependencies for native
extensions.

13 years agoUpgrade libuv.
Ryan Dahl [Fri, 17 Jun 2011 17:52:31 +0000 (19:52 +0200)]
Upgrade libuv.

Also remove c-ares since it's included in libuv now.

libuv version b7b7df090ca285e53eb51bf518c4e5064876596

13 years agonet_uv: Export Socket and Stream
Ryan Dahl [Fri, 17 Jun 2011 16:09:15 +0000 (18:09 +0200)]
net_uv: Export Socket and Stream

13 years agonet_uv: Implement end(), destroySoon()
Ryan Dahl [Fri, 17 Jun 2011 15:10:12 +0000 (17:10 +0200)]
net_uv: Implement end(), destroySoon()

13 years agonet_uv: shim up more methods
Ryan Dahl [Fri, 17 Jun 2011 12:27:02 +0000 (14:27 +0200)]
net_uv: shim up more methods

13 years agoRevert "Add --cov code coverage option"
Ryan Dahl [Fri, 17 Jun 2011 12:01:27 +0000 (14:01 +0200)]
Revert "Add --cov code coverage option"

This can be done in user space. EG https://github.com/cloudkick/whiskey

This reverts commit da9b3340ebb7501ebb8a2896d2c259ffabdab340.
This reverts commit b4ff36a41b242c0b379d3c27fb30818de54fe2d4.

Conflicts:

src/node.cc

13 years agoAdd --use-uv command-line flag to use libuv backend
Ryan Dahl [Fri, 17 Jun 2011 11:51:40 +0000 (13:51 +0200)]
Add --use-uv command-line flag to use libuv backend

13 years agoSupport eof in net_uv
Ryan Dahl [Fri, 17 Jun 2011 11:36:16 +0000 (13:36 +0200)]
Support eof in net_uv

13 years agoInitial pass at new net.js for libuv
Ryan Dahl [Thu, 16 Jun 2011 19:11:05 +0000 (21:11 +0200)]
Initial pass at new net.js for libuv

13 years agotcp_wrap: implement shutdown
Ryan Dahl [Thu, 16 Jun 2011 14:08:17 +0000 (16:08 +0200)]
tcp_wrap: implement shutdown

13 years agotcp_wrap: Don't return req object on error.
Ryan Dahl [Thu, 16 Jun 2011 14:00:29 +0000 (16:00 +0200)]
tcp_wrap: Don't return req object on error.

13 years agotcp_wrap: add writeQueueSize
Ryan Dahl [Thu, 16 Jun 2011 13:49:44 +0000 (15:49 +0200)]
tcp_wrap: add writeQueueSize

13 years agotcp_wrap: implement socket.connect()
Ryan Dahl [Thu, 16 Jun 2011 13:33:47 +0000 (15:33 +0200)]
tcp_wrap: implement socket.connect()

13 years agotcp_wrap: onread oncomplete parameter massage
Ryan Dahl [Thu, 16 Jun 2011 13:12:57 +0000 (15:12 +0200)]
tcp_wrap: onread oncomplete parameter massage

13 years agotcp_wrap: implement write
Ryan Dahl [Thu, 16 Jun 2011 11:16:54 +0000 (13:16 +0200)]
tcp_wrap: implement write

13 years agoCleanup crypto verify to not print unnecessary errors
Mark Cavage [Wed, 15 Jun 2011 17:47:25 +0000 (10:47 -0700)]
Cleanup crypto verify to not print unnecessary errors

13 years agoMerge branch 'v0.4'
Ryan Dahl [Wed, 15 Jun 2011 12:43:37 +0000 (14:43 +0200)]
Merge branch 'v0.4'

Conflicts:
doc/api/modules.markdown
test/simple/test-crypto.js

13 years agoCloses #1177 remove one node_modules optimization
Mathias Buus [Mon, 13 Jun 2011 22:42:06 +0000 (00:42 +0200)]
Closes #1177 remove one node_modules optimization

to better support certain project structures.

13 years agotcp_wrap: Initial wrap of uv_read_start
Ryan Dahl [Tue, 14 Jun 2011 16:02:58 +0000 (18:02 +0200)]
tcp_wrap: Initial wrap of uv_read_start

13 years agoRemove confusing comment in node_buffer.h
Ryan Dahl [Tue, 14 Jun 2011 11:18:32 +0000 (13:18 +0200)]
Remove confusing comment in node_buffer.h

13 years agolibuv wraps: Dispose of JS object on close()
Ryan Dahl [Tue, 14 Jun 2011 11:02:15 +0000 (13:02 +0200)]
libuv wraps: Dispose of JS object on close()

13 years agoSupport for signature verification with RSA/DSA public keys
Mark Cavage [Thu, 9 Jun 2011 01:20:17 +0000 (18:20 -0700)]
Support for signature verification with RSA/DSA public keys

Fixes #1166.

13 years agotcp_wrap: Remove listener deck
Ryan Dahl [Tue, 14 Jun 2011 10:46:10 +0000 (12:46 +0200)]
tcp_wrap: Remove listener deck

13 years agoAMD compatibility for node, with docs and tests
isaacs [Sun, 12 Jun 2011 17:36:05 +0000 (10:36 -0700)]
AMD compatibility for node, with docs and tests

Closes #1173
Closes #1170

13 years agoDocumenting `require.main`, fixing #997
Trevor Burnham [Sun, 1 May 2011 18:03:08 +0000 (14:03 -0400)]
Documenting `require.main`, fixing #997

13 years agoCompensate for uv_async_init api change
Bert Belder [Sun, 12 Jun 2011 18:53:04 +0000 (20:53 +0200)]
Compensate for uv_async_init api change

13 years agoMassage util.inherits for perf increase
Ryan Dahl [Sat, 11 Jun 2011 06:51:48 +0000 (08:51 +0200)]
Massage util.inherits for perf increase

13 years agoBind uv_listen()
Ryan Dahl [Fri, 10 Jun 2011 16:25:06 +0000 (18:25 +0200)]
Bind uv_listen()

13 years agoInitial binding to uv_tcp_t
Ryan Dahl [Thu, 9 Jun 2011 13:31:51 +0000 (15:31 +0200)]
Initial binding to uv_tcp_t

13 years agoUpgrade libuv
Ryan Dahl [Thu, 9 Jun 2011 13:14:58 +0000 (15:14 +0200)]
Upgrade libuv

13 years agoAvoid tick spinner spinning forever
Bert Belder [Wed, 8 Jun 2011 01:46:29 +0000 (03:46 +0200)]
Avoid tick spinner spinning forever

13 years agoBuild on windows again
Bert Belder [Wed, 8 Jun 2011 02:41:28 +0000 (04:41 +0200)]
Build on windows again

13 years agoGet rid of node_idle_watcher
Bert Belder [Wed, 8 Jun 2011 02:01:07 +0000 (04:01 +0200)]
Get rid of node_idle_watcher

13 years agoGet rid of the old timer binding
Bert Belder [Wed, 8 Jun 2011 02:36:31 +0000 (04:36 +0200)]
Get rid of the old timer binding