platform/upstream/nodejs.git
12 years agodtrace ustack helper improvements
Dave Pacheco [Thu, 1 Mar 2012 17:19:51 +0000 (09:19 -0800)]
dtrace ustack helper improvements

Fixes #2852

12 years agoChange test fixture from symlink to regular file
isaacs [Thu, 23 Feb 2012 04:19:12 +0000 (20:19 -0800)]
Change test fixture from symlink to regular file

The only test using this is test/simple/test-fs-chmod.js, and it was
treating a.js and a1.js as two separate files, resulting in a race
condition.  (Interestingly enough, it was *not* using the symlink file to
test lchmod, which uses a different temp file.)

12 years agouv: upgrade to b3fe183
Ben Noordhuis [Thu, 1 Mar 2012 16:00:33 +0000 (17:00 +0100)]
uv: upgrade to b3fe183

12 years agoMerge branch 'json-api-v0.6' into v0.6
isaacs [Thu, 1 Mar 2012 00:05:18 +0000 (16:05 -0800)]
Merge branch 'json-api-v0.6' into v0.6

12 years agoHandle miscs better
isaacs [Mon, 27 Feb 2012 19:44:36 +0000 (11:44 -0800)]
Handle miscs better

12 years agoDebugger should be a misc, not 'concept'
isaacs [Mon, 27 Feb 2012 19:44:30 +0000 (11:44 -0800)]
Debugger should be a misc, not 'concept'

12 years ago'Events' is a module, not an event named 's'
isaacs [Mon, 27 Feb 2012 19:37:26 +0000 (11:37 -0800)]
'Events' is a module, not an event named 's'

12 years agos/streams/stream/
isaacs [Mon, 27 Feb 2012 19:18:10 +0000 (11:18 -0800)]
s/streams/stream/

12 years agos/buffers/buffer/
isaacs [Mon, 27 Feb 2012 19:12:35 +0000 (11:12 -0800)]
s/buffers/buffer/

12 years agodoc refactor: zlib
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: zlib

12 years agodoc refactor: vm
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: vm

12 years agodoc refactor: util
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: util

12 years agodoc refactor: url
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: url

12 years agodoc refactor: tty
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: tty

12 years agodoc refactor: tls
isaacs [Mon, 27 Feb 2012 19:09:35 +0000 (11:09 -0800)]
doc refactor: tls

12 years agodoc refactor: timers
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: timers

12 years agodoc refactor: synopsis
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: synopsis

12 years agodoc refactor: streams
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: streams

12 years agodoc refactor: stdio
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: stdio

12 years agodoc refactor: repl
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: repl

12 years agodoc refactor: readline
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: readline

12 years agodoc refactor: querystring
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: querystring

12 years agodoc refactor: process
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: process

12 years agodoc refactor: path
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: path

12 years agodoc refactor: os
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: os

12 years agodoc refactor: net
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: net

12 years agodoc refactor: modules
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: modules

12 years agodoc refactor: https
isaacs [Mon, 27 Feb 2012 19:09:34 +0000 (11:09 -0800)]
doc refactor: https

12 years agodoc refactor: http
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: http

12 years agodoc refactor: globals
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: globals

12 years agodoc refactor: fs
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: fs

12 years agodoc refactor: events
isaacs [Mon, 27 Feb 2012 19:09:33 +0000 (11:09 -0800)]
doc refactor: events

12 years agodoc refactor: dns
isaacs [Mon, 27 Feb 2012 19:08:41 +0000 (11:08 -0800)]
doc refactor: dns

12 years agodoc refactor: dgram
isaacs [Mon, 27 Feb 2012 19:08:27 +0000 (11:08 -0800)]
doc refactor: dgram

12 years agodoc refactor: debugger
isaacs [Mon, 27 Feb 2012 19:08:17 +0000 (11:08 -0800)]
doc refactor: debugger

12 years agodoc refactor: crypto
isaacs [Mon, 27 Feb 2012 19:08:02 +0000 (11:08 -0800)]
doc refactor: crypto

12 years agodoc refactor: cluster
isaacs [Mon, 27 Feb 2012 19:07:49 +0000 (11:07 -0800)]
doc refactor: cluster

12 years agodoc refactor: buffers
isaacs [Mon, 27 Feb 2012 19:07:25 +0000 (11:07 -0800)]
doc refactor: buffers

12 years agodoc refactor: assert
isaacs [Mon, 27 Feb 2012 19:07:12 +0000 (11:07 -0800)]
doc refactor: assert

12 years agodoc refactor: appendix_1
isaacs [Mon, 27 Feb 2012 19:06:55 +0000 (11:06 -0800)]
doc refactor: appendix_1

12 years agodoc refactor: addons
isaacs [Mon, 27 Feb 2012 19:06:31 +0000 (11:06 -0800)]
doc refactor: addons

12 years agoAdd 'about these docs' section
isaacs [Mon, 27 Feb 2012 19:06:14 +0000 (11:06 -0800)]
Add 'about these docs' section

12 years agos/child_processes/child_process/
isaacs [Mon, 27 Feb 2012 19:04:08 +0000 (11:04 -0800)]
s/child_processes/child_process/

Conflicts:

doc/api/child_process.markdown

12 years agoRemove empty sections
isaacs [Mon, 27 Feb 2012 19:02:07 +0000 (11:02 -0800)]
Remove empty sections

12 years agoIncrease contrast of links, decrease contrast of bullets
isaacs [Mon, 27 Feb 2012 19:01:53 +0000 (11:01 -0800)]
Increase contrast of links, decrease contrast of bullets

12 years agoUpdate styles to reflect changed api doc html structure
isaacs [Mon, 27 Feb 2012 19:01:33 +0000 (11:01 -0800)]
Update styles to reflect changed api doc html structure

12 years agoUpdate template to use new token style
isaacs [Mon, 27 Feb 2012 18:59:51 +0000 (10:59 -0800)]
Update template to use new token style

Conflicts:

doc/template.html

12 years agoUse new doc generation tool
isaacs [Mon, 27 Feb 2012 18:59:35 +0000 (10:59 -0800)]
Use new doc generation tool

Conflicts:

Makefile

12 years agodocs: Move images out of the dist tarball
isaacs [Mon, 13 Feb 2012 22:47:50 +0000 (14:47 -0800)]
docs: Move images out of the dist tarball

This puts all images in doc/images/ and references them via
http://nodejs.org/images/.

Any complaints about copyright usage etc. can thus be node/joyent's
problem, rather than the problem of a downstream distribution channel.

Conflicts:

Makefile

12 years agoNew documentation generation tool
isaacs [Mon, 27 Feb 2012 18:59:01 +0000 (10:59 -0800)]
New documentation generation tool

12 years agochild_process: remove dummy "setsid" option setting
Joshua Holbrook [Sun, 26 Feb 2012 19:38:36 +0000 (11:38 -0800)]
child_process: remove dummy "setsid" option setting

12 years agonet: fix race write() before and after connect()
koichik [Sun, 26 Feb 2012 19:13:08 +0000 (04:13 +0900)]
net: fix race write() before and after connect()

Fixes #2827.

12 years agoRevert "docs: split TOC into two parts: overview and API"
isaacs [Mon, 27 Feb 2012 23:53:20 +0000 (15:53 -0800)]
Revert "docs: split TOC into two parts: overview and API"

This reverts commit cd4cb8e79509c3940a94bd70ff16cdb264884114.

12 years ago[ISSUE #2554 #2567] throw if fs args for 'start' or 'end' are strings
AJ ONeal [Sat, 18 Feb 2012 01:53:57 +0000 (18:53 -0700)]
[ISSUE #2554 #2567] throw if fs args for 'start' or 'end' are strings

12 years agopunycode: Update to v1.0.0
Mathias Bynens [Fri, 24 Feb 2012 15:05:10 +0000 (16:05 +0100)]
punycode: Update to v1.0.0

12 years agoupdate libuv to 9a5c1bad90
Igor Zinkovsky [Mon, 27 Feb 2012 21:16:06 +0000 (13:16 -0800)]
update libuv to 9a5c1bad90

12 years agoFix #2822 Only remove logo images, not logo html
isaacs [Mon, 27 Feb 2012 21:08:54 +0000 (13:08 -0800)]
Fix #2822 Only remove logo images, not logo html

12 years agodocs: split TOC into two parts: overview and API
tedsuo [Thu, 15 Dec 2011 00:44:59 +0000 (16:44 -0800)]
docs: split TOC into two parts: overview and API

Fixes #2090.
Fixes #2336.

12 years agoUpdate npm to 1.1.2
isaacs [Sat, 25 Feb 2012 02:52:17 +0000 (18:52 -0800)]
Update npm to 1.1.2

12 years agoMake a fat binary for the OS X pkg
isaacs [Wed, 22 Feb 2012 19:48:43 +0000 (11:48 -0800)]
Make a fat binary for the OS X pkg

12 years agoupdate libuv to c0e7044862
Igor Zinkovsky [Wed, 22 Feb 2012 20:04:39 +0000 (12:04 -0800)]
update libuv to c0e7044862

12 years agoPause process.stdin in stdin getter
isaacs [Tue, 21 Feb 2012 23:26:35 +0000 (15:26 -0800)]
Pause process.stdin in stdin getter

Otherwise, it'll be ref'ed, and keep the process hanging.

12 years agoAdd Håvard Stranden to AUTHORS file
isaacs [Tue, 21 Feb 2012 20:03:15 +0000 (12:03 -0800)]
Add Håvard Stranden to AUTHORS file

12 years agodocs: remove server.pause
Fedor Indutny [Tue, 21 Feb 2012 14:42:15 +0000 (20:42 +0600)]
docs: remove server.pause

This functionality was removed when libuv landed in node. It is useless
and can be easily implemented in user-land.

12 years agodocs: update man page
Ben Noordhuis [Sat, 18 Feb 2012 21:36:34 +0000 (22:36 +0100)]
docs: update man page

12 years agodocs: fix quotation style in the webserver example
Paul Vorbach [Sat, 18 Feb 2012 00:40:26 +0000 (01:40 +0100)]
docs: fix quotation style in the webserver example

Replace " by '

12 years agodocs: fix tls markdown
Ben Noordhuis [Fri, 17 Feb 2012 22:58:42 +0000 (23:58 +0100)]
docs: fix tls markdown

12 years agoMerge branch 'v0.6.11-release' into v0.6
isaacs [Fri, 17 Feb 2012 21:35:52 +0000 (13:35 -0800)]
Merge branch 'v0.6.11-release' into v0.6

12 years agoNow working on 0.6.12
isaacs [Fri, 17 Feb 2012 21:33:58 +0000 (13:33 -0800)]
Now working on 0.6.12

12 years ago2012.02.17 Version 0.6.11 (stable) v0.6.11
isaacs [Fri, 17 Feb 2012 00:04:34 +0000 (16:04 -0800)]
2012.02.17 Version 0.6.11 (stable)

* http: allow multiple WebSocket RFC6455 headers (Einar Otto Stangvik)

* http: allow multiple WWW-Authenticate headers (Ben Noordhuis)

* windows: support unicode argv and environment variables (Bert Belder)

* tls: mitigate session renegotiation attacks (Ben Noordhuis)

* tcp, pipe: don't assert on uv_accept() errors (Ben Noordhuis)

* tls: Allow establishing secure connection on the existing socket (koichik)

* dgram: handle close of dgram socket before DNS lookup completes (Seth Fitzsimmons)

* windows: Support half-duplex pipes (Igor Zinkovsky)

* build: disable omit-frame-pointer on solaris systems (Dave Pacheco)

* debugger: fix --debug-brk (Ben Noordhuis)

* net: fix large file downloads failing (koichik)

* fs: fix ReadStream failure to read from existing fd (Christopher Jeffrey)

* net: destroy socket on DNS error (Stefan Rusu)

* dtrace: add missing translator (Dave Pacheco)

* unix: don't flush tty on switch to raw mode (Ben Noordhuis)

* windows: reset brightness when reverting to default text color (Bert Belder)

* npm: update to 1.1.1
  - Update which, fstream, mkdirp, request, and rimraf
  - Fix #2123 Set path properly for lifecycle scripts on windows
  - Mark the root as seen, so we don't recurse into it. Fixes #1838. (Martin Cooper)

12 years agoRevert "cluster: propagate bind errors"
isaacs [Fri, 17 Feb 2012 18:10:02 +0000 (10:10 -0800)]
Revert "cluster: propagate bind errors"

This reverts commit 30e462e91937ced3847af3fe9c393ebd32294b68.

12 years agoFix #2770 Compile the OS X pkg as ia32
isaacs [Fri, 17 Feb 2012 18:08:40 +0000 (10:08 -0800)]
Fix #2770 Compile the OS X pkg as ia32

12 years agodocs: remove unused javascript includes
Shannen Saez [Thu, 16 Feb 2012 06:47:23 +0000 (17:47 +1100)]
docs: remove unused javascript includes

12 years agodocs: add lang="en" and remove redundant types
Shannen Saez [Thu, 16 Feb 2012 06:38:05 +0000 (17:38 +1100)]
docs: add lang="en" and remove redundant types

12 years agorepl: make tab completion work on non-objects
Nathan Rajlich [Fri, 17 Feb 2012 00:33:40 +0000 (16:33 -0800)]
repl: make tab completion work on non-objects

12 years agoUpgrade uv to 86ebe48660e
isaacs [Thu, 16 Feb 2012 22:52:03 +0000 (14:52 -0800)]
Upgrade uv to 86ebe48660e

12 years agocluster: propagate bind errors
Ben Noordhuis [Fri, 10 Feb 2012 19:26:56 +0000 (20:26 +0100)]
cluster: propagate bind errors

This commit fixes a bug where the cluster module failed to propagate EADDRINUSE
errors.

When a worker starts a (net, http) server, it requests the listen socket from
its master who then creates and binds the socket.

Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead
defer the error until a later syscall. libuv mimics this behaviour to provide
consistent behaviour across platforms but that means the worker could end up
with a socket that is not actually bound to the requested addresss.

That's why the worker now checks if the socket is bound, raising EADDRINUSE if
that's not the case.

Fixes #2721.

12 years agoAdd WebSocket RFC6455 multiheader fields to the http parser.
einaros [Thu, 16 Feb 2012 09:42:13 +0000 (10:42 +0100)]
Add WebSocket RFC6455 multiheader fields to the http parser.

12 years agohttp: allow multiple WWW-Authenticate headers
Ben Noordhuis [Tue, 14 Feb 2012 23:20:54 +0000 (00:20 +0100)]
http: allow multiple WWW-Authenticate headers

12 years agoMake win32 ansi api usage explicit
Bert Belder [Thu, 16 Feb 2012 21:19:48 +0000 (22:19 +0100)]
Make win32 ansi api usage explicit

Use widechar versions in a couple of places.
Don't use C-style cast in C++ code.

12 years agoWindows: another attempt to support unicode argv
Bert Belder [Thu, 16 Feb 2012 19:20:07 +0000 (20:20 +0100)]
Windows: another attempt to support unicode argv

12 years agoRevert "Windows: support non-ansi command line arguments"
Bert Belder [Thu, 16 Feb 2012 19:05:18 +0000 (20:05 +0100)]
Revert "Windows: support non-ansi command line arguments"

CommandLineToArgvW doesn't behave exactly the same as the crt, which makes it useless.
This reverts commit ef032cbe85b46584304c665b539b4f7561c4c26c.

12 years agotls: mitigate session renegotiation attacks
Ben Noordhuis [Wed, 15 Feb 2012 18:26:43 +0000 (19:26 +0100)]
tls: mitigate session renegotiation attacks

The TLS protocol allows (and sometimes requires) clients to renegotiate the
session. However, renegotiation requires a disproportional amount of server-side
resources, particularly CPU time, which makes it a potential vector for
denial-of-service attacks.

To mitigate this issue, we keep track of and limit the number of renegotiation
requests over time, emitting an error if the threshold is exceeded.

12 years agodocs: removed unnecessary STARTTLS section
koichik [Thu, 16 Feb 2012 17:02:02 +0000 (02:02 +0900)]
docs: removed unnecessary STARTTLS section

12 years agoWindows: get rid of process._cwdForDrive()
Bert Belder [Wed, 15 Feb 2012 22:50:04 +0000 (23:50 +0100)]
Windows: get rid of process._cwdForDrive()

12 years agoWindows: use unicode environment
Bert Belder [Wed, 15 Feb 2012 22:34:18 +0000 (23:34 +0100)]
Windows: use unicode environment

12 years agotcp, pipe: don't assert on uv_accept() errors
Ben Noordhuis [Wed, 15 Feb 2012 15:45:02 +0000 (16:45 +0100)]
tcp, pipe: don't assert on uv_accept() errors

It's possible for a new connection to be closed in the window between the
accept() syscall and the call to uv_accept(). Deal with it and move on, don't
assert.

12 years agoadd tls-over-http-tunnel test
Igor Zinkovsky [Tue, 14 Feb 2012 08:03:13 +0000 (00:03 -0800)]
add tls-over-http-tunnel test

12 years agotls: Allow establishing secure connection on the existing socket
koichik [Mon, 9 Jan 2012 01:28:49 +0000 (02:28 +0100)]
tls: Allow establishing secure connection on the existing socket

12 years agodgram: handle close of dgram socket before DNS lookup completes
Seth Fitzsimmons [Tue, 14 Feb 2012 03:30:09 +0000 (19:30 -0800)]
dgram: handle close of dgram socket before DNS lookup completes

12 years agoWindows: support non-ansi command line arguments
Bert Belder [Mon, 13 Feb 2012 19:55:29 +0000 (20:55 +0100)]
Windows: support non-ansi command line arguments

12 years agoAdd libuv test that was omitted in last libuv upgrade
Bert Belder [Sun, 12 Feb 2012 20:07:31 +0000 (21:07 +0100)]
Add libuv test that was omitted in last libuv upgrade

12 years agoFix vcbuild.bat, print error when an unrecognized option is encountered
Bert Belder [Sun, 12 Feb 2012 20:04:03 +0000 (21:04 +0100)]
Fix vcbuild.bat, print error when an unrecognized option is encountered

12 years agotest: fix timing sensitivity in test-net-write-slow
koichik [Sat, 11 Feb 2012 17:05:30 +0000 (02:05 +0900)]
test: fix timing sensitivity in test-net-write-slow

12 years agodocs: update net.Server.address() documentation
Ben Noordhuis [Sat, 11 Feb 2012 13:24:15 +0000 (14:24 +0100)]
docs: update net.Server.address() documentation

12 years agoset readable/writable for pipes
Igor Zinkovsky [Fri, 10 Feb 2012 09:35:35 +0000 (01:35 -0800)]
set readable/writable for pipes

12 years agoupgrade uv to f9be43a564
Igor Zinkovsky [Fri, 10 Feb 2012 19:27:12 +0000 (11:27 -0800)]
upgrade uv to f9be43a564

12 years agodocs: clarify http 'data' callback
Ben Noordhuis [Fri, 10 Feb 2012 17:51:31 +0000 (18:51 +0100)]
docs: clarify http 'data' callback

Fixes #2733.

12 years agodocs: document tls/crypto `ciphers` option
Ben Noordhuis [Thu, 9 Feb 2012 16:14:39 +0000 (17:14 +0100)]
docs: document tls/crypto `ciphers` option

Hitherto undocumented option that lets the user select the list of ciphers to
use or exclude in a SSL/TLS session.

12 years agotest: add cluster 'bind twice' test
Ben Noordhuis [Thu, 9 Feb 2012 05:22:50 +0000 (06:22 +0100)]
test: add cluster 'bind twice' test

This test starts two clustered HTTP servers on the same port. It expects the
first cluster to succeed and the second cluster to fail with EADDRINUSE.