platform/upstream/nodejs.git
13 years agoMinGW32: define STRUNCATE and change strncpy_s implementation to follow specification.
vegorov@chromium.org [Wed, 6 Jul 2011 12:25:25 +0000 (12:25 +0000)]
MinGW32: define STRUNCATE and change strncpy_s implementation to follow specification.

This fixes the debug build for MinGW32

Patch by Bert Belder.

Review URL: http://codereview.chromium.org/7308007

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@8552 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

13 years agolibuv: stop g++ from complaining about anonymous struct usage
Bert Belder [Fri, 15 Jul 2011 22:31:47 +0000 (00:31 +0200)]
libuv: stop g++ from complaining about anonymous struct usage

13 years agoClose #1348 Remove require.paths
isaacs [Fri, 15 Jul 2011 21:05:01 +0000 (14:05 -0700)]
Close #1348 Remove require.paths

Module.globalPaths is still set to a read-only copy of the global
include paths pulled off of the NODE_PATH environment variable.

It's important to be able to inspect this, but modifying it no longer
has any effect.

13 years agoRemove duplicate docs about main module
isaacs [Fri, 15 Jul 2011 22:10:27 +0000 (15:10 -0700)]
Remove duplicate docs about main module

13 years agoDocument that 'Buffer' is a global variable
AJ ONeal [Fri, 15 Jul 2011 20:11:14 +0000 (13:11 -0700)]
Document that 'Buffer' is a global variable

13 years agoAdd 'make test-uv-debug'
Ryan Dahl [Fri, 15 Jul 2011 20:52:36 +0000 (13:52 -0700)]
Add 'make test-uv-debug'

To run: ./configure --debug && make test-uv-debug

13 years agoconnect-timeout callbacks after close
Henry Rawas [Fri, 15 Jul 2011 20:20:24 +0000 (13:20 -0700)]
connect-timeout callbacks after close

13 years agoUpgrade libuv to 1be48f12a0
Ryan Dahl [Fri, 15 Jul 2011 18:15:02 +0000 (11:15 -0700)]
Upgrade libuv to 1be48f12a0

and bindings for new req interface

13 years agowindows: fix simple/test-executable-path
Ryan Dahl [Fri, 15 Jul 2011 18:05:12 +0000 (11:05 -0700)]
windows: fix simple/test-executable-path

13 years agoUse uv_exepath
Ryan Dahl [Fri, 15 Jul 2011 17:46:11 +0000 (10:46 -0700)]
Use uv_exepath

13 years agoadded information about relative paths in File System module
Wojciech Wnętrzak [Thu, 14 Jul 2011 11:17:40 +0000 (13:17 +0200)]
added information about relative paths in File System module

13 years agoev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6
Shigeki Ohtsu [Fri, 15 Jul 2011 03:38:45 +0000 (12:38 +0900)]
ev: define HAVE_SYNC_FILE_RANGE if kernel >= 2.6.17 *and* glibc version >= 2.6

13 years agoconnect-buffer play back queued write and end
Henry Rawas [Wed, 13 Jul 2011 00:00:33 +0000 (17:00 -0700)]
connect-buffer play back queued write and end

13 years agoNow working on v0.5.2
Ryan Dahl [Thu, 14 Jul 2011 23:56:39 +0000 (16:56 -0700)]
Now working on v0.5.2

13 years agoBump to v0.5.1 v0.5.1
Ryan Dahl [Thu, 14 Jul 2011 22:56:15 +0000 (15:56 -0700)]
Bump to v0.5.1

13 years agoMerge branch 'v0.4'
Ryan Dahl [Thu, 14 Jul 2011 22:52:08 +0000 (15:52 -0700)]
Merge branch 'v0.4'

Conflicts:
deps/libev/wscript
doc/api/modules.markdown

13 years agoComment out wsa_get_proto_info(AF_INET6) - not needed - causes warning in Win2k3
Ryan Dahl [Thu, 14 Jul 2011 22:34:08 +0000 (15:34 -0700)]
Comment out wsa_get_proto_info(AF_INET6) - not needed - causes warning in Win2k3

13 years agoRevert "net_uv: fix localhost resolution - was defaulting to ::1 on OSX"
Ryan Dahl [Thu, 14 Jul 2011 22:28:54 +0000 (15:28 -0700)]
Revert "net_uv: fix localhost resolution - was defaulting to ::1 on OSX"

Breaks test/internet/test-dns.js

This reverts commit 6d8b082eedc10a2827091b8b803760ba2fd8d616.

13 years agoAddons should not -DEV_MULTIPLICITY=0
Brian White [Thu, 14 Jul 2011 18:48:19 +0000 (11:48 -0700)]
Addons should not -DEV_MULTIPLICITY=0

Fixes #1229
Fixes #1332

13 years agoadd working http tests
Henry Rawas [Thu, 14 Jul 2011 22:17:35 +0000 (15:17 -0700)]
add working http tests

13 years agonet_uv: fix localhost resolution - was defaulting to ::1 on OSX
Ryan Dahl [Thu, 14 Jul 2011 21:49:50 +0000 (14:49 -0700)]
net_uv: fix localhost resolution - was defaulting to ::1 on OSX

13 years agoUpgrade libuv to f5ff8694
Ryan Dahl [Thu, 14 Jul 2011 21:28:52 +0000 (14:28 -0700)]
Upgrade libuv to f5ff8694

13 years agoClose #1303 Stream.pipe returns the destination
Elijah Insua [Mon, 11 Jul 2011 05:35:25 +0000 (01:35 -0400)]
Close #1303 Stream.pipe returns the destination

Squashed:

* Simple change to make Stream.pipe(destination) return the destination Stream
* Test: ensure Stream.pipe(destination) returns the destination Stream
* updated Stream.pipe() documentation to reflect that it now returns the
  destination stream

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 agoAdd tests for #1085 and #1304
koichik [Thu, 14 Jul 2011 16:58:43 +0000 (01:58 +0900)]
Add tests for #1085 and #1304

Fixes #1327.

13 years agoFixes #1085. The agent end event may call detachSocket() after the socket is detached...
Stefan Rusu [Thu, 14 Jul 2011 12:33:04 +0000 (15:33 +0300)]
Fixes #1085. The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.

13 years agoFixes #1304. The Connection instance may be destroyed by abort() when process.nextTic...
Stefan Rusu [Thu, 14 Jul 2011 09:52:43 +0000 (12:52 +0300)]
Fixes #1304. The Connection instance may be destroyed by abort() when process.nextTick is executed.

13 years agoAdding documentation for 'agent' option in http.request().
Kip Gebhardt [Tue, 28 Jun 2011 19:50:42 +0000 (12:50 -0700)]
Adding documentation for 'agent' option in http.request().

Fixes #1243.

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 Buffer drops last null character in UTF-8
koichik [Tue, 21 Jun 2011 15:53:31 +0000 (00:53 +0900)]
Fix Buffer drops last null character in UTF-8

Reproduce:

    $ node
    > buf = new Buffer('\0')
    <Buffer >
    > buf.length
    0
    > buf = new Buffer(1)
    <Buffer 28>
    > buf.write('\0')
    0

Fixes #394.
Fixes #1210.

13 years agoImprovements AssertionError message
koichik [Sun, 10 Jul 2011 09:47:41 +0000 (18:47 +0900)]
Improvements AssertionError message

Fixes #217.

13 years agoThe Node.JS website should link to whichever ChangeLog will be updated soonest.
koichik [Wed, 13 Jul 2011 15:31:56 +0000 (00:31 +0900)]
The Node.JS website should link to whichever ChangeLog will be updated soonest.

Fixes #1316.

13 years agoDocument error in console.timeEnd
koichik [Wed, 13 Jul 2011 15:10:17 +0000 (00:10 +0900)]
Document error in console.timeEnd

Fixes #1109.

13 years agoadded explanation of `exports`
AJ ONeal [Thu, 19 May 2011 19:49:29 +0000 (12:49 -0700)]
added explanation of `exports`

Fixes #1075.

13 years agoDoc improvements
koichik [Sat, 9 Jul 2011 17:04:56 +0000 (02:04 +0900)]
Doc improvements

Fixes #297.

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 agoUpdate favicon
Ryan Dahl [Mon, 11 Jul 2011 19:24:49 +0000 (12:24 -0700)]
Update favicon

13 years agoFix wallpaper links
Ryan Dahl [Mon, 11 Jul 2011 15:48:02 +0000 (08:48 -0700)]
Fix wallpaper links

13 years agologo update
Ryan Dahl [Mon, 11 Jul 2011 15:29:25 +0000 (08:29 -0700)]
logo update

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 agoDoc improvements. Explained the flags of fs.open().
koichik [Sat, 9 Jul 2011 07:59:35 +0000 (16:59 +0900)]
Doc improvements. Explained the flags of fs.open().

Fixes #1268.

13 years agoDoc improvements
koichik [Sat, 11 Jun 2011 13:09:40 +0000 (22:09 +0900)]
Doc improvements

moved 'continue' event from http.Agent to http.ClientRequest.
added 'close' event to http.ClientResponse.
added 'open' event to fs.ReadStream.

Fixes #1169.

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 agodocs for chown/chmod
isaacs [Sat, 2 Apr 2011 00:46:18 +0000 (17:46 -0700)]
docs for chown/chmod

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 3e2a2a7. 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 3e2a2a7. Always send a HTTP/1.1 status line to the client.

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 agoBring back execScript
Ryan Dahl [Wed, 6 Jul 2011 23:52:14 +0000 (16:52 -0700)]
Bring back execScript

Undoing
http://codereview.chromium.org/7060008
https://groups.google.com/forum/#!topic/v8-dev/JTRHrPHFBts

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 agofix an broken question.
Yoshihiro Kikuchi [Tue, 5 Jul 2011 08:32:23 +0000 (17:32 +0900)]
fix an broken question.

Fixes #1274.

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 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