platform/upstream/nodejs.git
12 years agotls: expose more openssl SSL context options
Ben Noordhuis [Mon, 21 Nov 2011 12:58:30 +0000 (13:58 +0100)]
tls: expose more openssl SSL context options

12 years agotls: expose ssl bug workaround constants
Roman Shtylman [Sun, 20 Nov 2011 23:09:07 +0000 (18:09 -0500)]
tls: expose ssl bug workaround constants

The internet is filled with servers which have various bugs and other
ssl handshake issues. These constants can be used with the Agent
secureOptions option to get around such server limitations when performing
https requests

12 years agoFixes #2084. Makeify tools/osx-dist.sh
Ryan Dahl [Mon, 21 Nov 2011 03:22:30 +0000 (19:22 -0800)]
Fixes #2084. Makeify tools/osx-dist.sh

12 years agoNow working on v0.6.3
Ben Noordhuis [Fri, 18 Nov 2011 23:22:13 +0000 (00:22 +0100)]
Now working on v0.6.3

12 years agoBump version to v0.6.2 v0.6.2
Ben Noordhuis [Fri, 18 Nov 2011 21:09:59 +0000 (22:09 +0100)]
Bump version to v0.6.2

12 years agozlib: Fix invalidly failing test
isaacs [Fri, 18 Nov 2011 22:38:18 +0000 (14:38 -0800)]
zlib: Fix invalidly failing test

12 years agobuild: compile with -D__DARWIN_64_BIT_INO_T on OS X
Ben Noordhuis [Fri, 18 Nov 2011 12:47:54 +0000 (13:47 +0100)]
build: compile with -D__DARWIN_64_BIT_INO_T on OS X

Fixes a struct stat size mismatch on 64 bits machines that made Node crash with
a EXC_BAD_ACCESS on startup.

Fixes #2061. Solution proposed by Paddy Byers.

12 years agouv: upgrade to 01fbe7b
Ben Noordhuis [Fri, 18 Nov 2011 13:05:35 +0000 (14:05 +0100)]
uv: upgrade to 01fbe7b

12 years agodocs: document dgram error event
Ben Noordhuis [Fri, 18 Nov 2011 13:16:06 +0000 (14:16 +0100)]
docs: document dgram error event

12 years agobuffer: add .read*() and .write*() methods to SlowBuffer prototype
Ben Noordhuis [Thu, 17 Nov 2011 13:14:43 +0000 (14:14 +0100)]
buffer: add .read*() and .write*() methods to SlowBuffer prototype

Fixes #2138.

12 years agodocs: document the `persistent` option for `fs.watch` and `fs.watchFile`
Trevor Burnham [Wed, 16 Nov 2011 23:19:46 +0000 (18:19 -0500)]
docs: document the `persistent` option for `fs.watch` and `fs.watchFile`

12 years agocrypto: add support for RSA public key signing/verification
Ben Noordhuis [Thu, 17 Nov 2011 21:58:13 +0000 (22:58 +0100)]
crypto: add support for RSA public key signing/verification

12 years agocrypto: make verify() return true or false, not 1 or 0
Ben Noordhuis [Thu, 17 Nov 2011 19:46:40 +0000 (20:46 +0100)]
crypto: make verify() return true or false, not 1 or 0

It's what the documentation says it should return.

12 years agoutil: remove the line requiring events
E. Azer Koçulu [Thu, 17 Nov 2011 07:20:06 +0000 (23:20 -0800)]
util: remove the line requiring events

12 years agoFixes #2140. Fix illumos build.
Ryan Dahl [Thu, 17 Nov 2011 19:39:14 +0000 (11:39 -0800)]
Fixes #2140. Fix illumos build.

12 years agov8: add platform-solaris.cc to gyp build
Ben Noordhuis [Fri, 2 Sep 2011 14:39:44 +0000 (14:39 +0000)]
v8: add platform-solaris.cc to gyp build

Re-applies 77e4abbc3e66505af89c57cd7bff555890a33f3f, lost in a V8 upgrade.

12 years agov8: compile with __C99FEATURES__=1 on sunos
Ben Noordhuis [Fri, 2 Sep 2011 14:39:04 +0000 (14:39 +0000)]
v8: compile with __C99FEATURES__=1 on sunos

Exposes INFINITY, isinf(), isfinite(), etc.

Re-applies d104e5b91cfa3ef3ef846d5a0ab07c0336263a92, lost in a V8 upgrade.

12 years agodocs: clarify addon docs
Artur Adib [Wed, 9 Nov 2011 02:13:59 +0000 (21:13 -0500)]
docs: clarify addon docs

12 years agoWindows: make Buffer and ObjectWrap available to compiled extensions
Bert Belder [Wed, 16 Nov 2011 23:54:42 +0000 (00:54 +0100)]
Windows: make Buffer and ObjectWrap available to compiled extensions

Closes GH-2036

12 years agoFix strange vcbuild "label not found" error
Bert Belder [Wed, 16 Nov 2011 23:10:14 +0000 (00:10 +0100)]
Fix strange vcbuild "label not found" error

12 years agotls: make cipher list configurable
Ben Noordhuis [Wed, 16 Nov 2011 22:54:43 +0000 (23:54 +0100)]
tls: make cipher list configurable

options.ciphers existed but didn't work, the cipher list was effectively
hard-coded to RC4-SHA:AES128-SHA:AES256-SHA.

Fixes #2066.

12 years agoUpgrade libuv to 2007eb8
Ryan Dahl [Wed, 16 Nov 2011 21:05:35 +0000 (13:05 -0800)]
Upgrade libuv to 2007eb8

12 years agobuffer: fix minimum values for writeInt*() functions
Łukasz Walukiewicz [Wed, 16 Nov 2011 12:38:09 +0000 (13:38 +0100)]
buffer: fix minimum values for writeInt*() functions

12 years agoUpgrade V8 to 3.6.6.8
Ryan Dahl [Tue, 15 Nov 2011 01:17:23 +0000 (17:17 -0800)]
Upgrade V8 to 3.6.6.8

12 years agoRemove str.format to support python2.5.
Ryan Dahl [Mon, 14 Nov 2011 20:03:23 +0000 (12:03 -0800)]
Remove str.format to support python2.5.

Fixes #2077
Fixes #2108

Thanks to David Keegan for debugging and the patch.

12 years ago"Trailer" header should mention "Content-MD5" trailer name in this example.
Trent Mick [Mon, 14 Nov 2011 18:58:58 +0000 (10:58 -0800)]
"Trailer" header should mention "Content-MD5" trailer name in this example.

Fixes #2107

12 years agotest for REPL .save and .load and documentation updates
seebees [Sun, 13 Nov 2011 01:57:42 +0000 (17:57 -0800)]
test for REPL .save and .load and documentation updates

12 years agopunycode: Update to v0.1.1.
Mathias Bynens [Sun, 13 Nov 2011 09:39:24 +0000 (10:39 +0100)]
punycode: Update to v0.1.1.

12 years ago.load, .save and local scope tab completion
seebees [Sat, 12 Nov 2011 01:44:39 +0000 (17:44 -0800)]
.load, .save and local scope tab completion

Fixes #2063.

REPLServer.prototype.resetContext:
Reset the line cache

REPLServer.prototype.memory (don't know if I like that name, called from finish)
pushes what cmd's have been executed against it into this.lines
pushes the "tab depth" for bufferedCommands, in this.lines.level

REPLServer.prototype.displayPrompt:
Uses "tab depth" from this.lines.level to adjust the prompt to visually
denote this depth e.g.
> asdf = function () {
… var inner = {
….. one:1

REPLServer.prototype.complete:
Now notices if there is a bufferedCommand and attempts determine locally
scoped variables by removing any functions from this.lines and evaling these
lines in a nested REPL e.g.
> asdf = function () {
… var inner = { one: 1};
… inn\t
will complete to 'inner' and inner.o\t will complete to 'inner.one'
If the nested REPL still has a bufferedCommand it will falls back to the
default.

ArrayStream is a helper class for the nested REPL to get commands pushed to it.
new REPLServer('', new ArrayStream());

Finally added two new REPL commands .save and .load, each takes 1 parameter,
a file and attempts to save or load the file to or from the REPL
respectively.

12 years agoTab Compete test for node REPL
seebees [Sat, 12 Nov 2011 01:24:47 +0000 (17:24 -0800)]
Tab Compete test for node REPL

Currently the REPL only tab completes for globally scoped variables

12 years agotimers: remember extra setTimeout() arguments when timeout==0
Ben Noordhuis [Sat, 12 Nov 2011 12:31:26 +0000 (13:31 +0100)]
timers: remember extra setTimeout() arguments when timeout==0

Fixes #2079.

12 years agoNow working on v0.6.2
Ryan Dahl [Fri, 11 Nov 2011 23:35:10 +0000 (15:35 -0800)]
Now working on v0.6.2

12 years agoBump version to v0.6.1 v0.6.1
Ryan Dahl [Fri, 11 Nov 2011 21:39:40 +0000 (13:39 -0800)]
Bump version to v0.6.1

12 years agoAdd 'make dist-upload'
Ryan Dahl [Fri, 11 Nov 2011 22:31:15 +0000 (14:31 -0800)]
Add 'make dist-upload'

12 years agoBe consistent with v before version in packages
Ryan Dahl [Fri, 11 Nov 2011 22:02:42 +0000 (14:02 -0800)]
Be consistent with v before version in packages

12 years agomsi changes
Igor Zinkovsky [Fri, 11 Nov 2011 20:40:47 +0000 (12:40 -0800)]
msi changes

- remove license from MSI
- adjust path on install
- add message to the end

12 years agoAdd upload command to vcbuild.bat
Ryan Dahl [Fri, 11 Nov 2011 20:38:55 +0000 (12:38 -0800)]
Add upload command to vcbuild.bat

12 years agoSimplify and move getnodeversion.py
Ryan Dahl [Fri, 11 Nov 2011 20:08:24 +0000 (12:08 -0800)]
Simplify and move getnodeversion.py

12 years agodebugger: correctly handle source with multi-byte characters
Shigeki Ohtsu [Fri, 11 Nov 2011 06:37:34 +0000 (15:37 +0900)]
debugger: correctly handle source with multi-byte characters

12 years agoFixes #2073. Cluster should be silent.
Ryan Dahl [Fri, 11 Nov 2011 17:18:31 +0000 (09:18 -0800)]
Fixes #2073. Cluster should be silent.

12 years agotest: add more punycode tests
Ben Noordhuis [Fri, 11 Nov 2011 10:33:12 +0000 (11:33 +0100)]
test: add more punycode tests

12 years agopunycode: replace with Mathias Bynens's implementation
Ben Noordhuis [Fri, 11 Nov 2011 15:57:05 +0000 (16:57 +0100)]
punycode: replace with Mathias Bynens's implementation

The currently bundled library doesn't pass all the test cases from RFC 3492.
Mathias's library does.

Home: https://github.com/bestiejs/punycode.js

12 years agodocs: dgram client should be closed in the callback
Yoji SHIDARA [Thu, 10 Nov 2011 09:10:03 +0000 (18:10 +0900)]
docs: dgram client should be closed in the callback

12 years agodont use blue for numbers in util.inspect
Ryan Dahl [Fri, 11 Nov 2011 07:35:35 +0000 (23:35 -0800)]
dont use blue for numbers in util.inspect

12 years agoImprove OSX installer
Ryan Dahl [Fri, 11 Nov 2011 02:16:51 +0000 (18:16 -0800)]
Improve OSX installer

12 years agofix msi builder
Igor Zinkovsky [Fri, 11 Nov 2011 02:40:49 +0000 (18:40 -0800)]
fix msi builder

12 years agothrow from stdout.end and stderr.end
Igor Zinkovsky [Thu, 10 Nov 2011 22:51:16 +0000 (14:51 -0800)]
throw from stdout.end and stderr.end

12 years agoAdd node.rc with a version resource
Igor Zinkovsky [Thu, 10 Nov 2011 21:04:34 +0000 (13:04 -0800)]
Add node.rc with a version resource

Fixes #2059

12 years agobench: optimize io.c benchmark
Ben Noordhuis [Thu, 10 Nov 2011 20:11:19 +0000 (21:11 +0100)]
bench: optimize io.c benchmark

Use static buffers. Most clock ticks were spent in malloc() and free() instead
of read() and write().

Fix measurements. Really fast runs would result in bogus results like:

  Wrote 1048576000 bytes in -0.731630s using 8192 byte buffers: -1366.811093mB/s

12 years agouv: upgrade to 224584c
Ben Noordhuis [Thu, 10 Nov 2011 19:10:54 +0000 (20:10 +0100)]
uv: upgrade to 224584c

12 years agouv: upgrade to 26806e2
Ben Noordhuis [Thu, 10 Nov 2011 16:40:56 +0000 (16:40 +0000)]
uv: upgrade to 26806e2

12 years agofs: don't close uninitialized fs.watch handle
Ben Noordhuis [Thu, 10 Nov 2011 12:17:49 +0000 (13:17 +0100)]
fs: don't close uninitialized fs.watch handle

Makes uv_close() assert because the uv_fs_event_t struct contains garbage.

12 years agomake stdout stream non-destroyable
Igor Zinkovsky [Wed, 9 Nov 2011 23:04:44 +0000 (15:04 -0800)]
make stdout stream non-destroyable

12 years agomake stderr stream non-destroyable
Igor Zinkovsky [Wed, 9 Nov 2011 21:51:32 +0000 (13:51 -0800)]
make stderr stream non-destroyable

12 years agobench: start (NUM_CPUS-1) workers
Ben Noordhuis [Wed, 9 Nov 2011 16:32:39 +0000 (17:32 +0100)]
bench: start (NUM_CPUS-1) workers

The master is a worker too so fork off one less worker.

12 years agoRemove stray NODE_MODULE() semi-colons.
Ben Noordhuis [Wed, 9 Nov 2011 15:33:50 +0000 (16:33 +0100)]
Remove stray NODE_MODULE() semi-colons.

12 years agoRemove 'report this bug' message from cluster master
Ryan Dahl [Wed, 9 Nov 2011 01:07:49 +0000 (17:07 -0800)]
Remove 'report this bug' message from cluster master

12 years agoFixes #2047. Fill workers array immediately after fork
Ryan Dahl [Wed, 9 Nov 2011 01:03:29 +0000 (17:03 -0800)]
Fixes #2047. Fill workers array immediately after fork

12 years agoUpgrade libuv to 196e145
Ryan Dahl [Wed, 9 Nov 2011 00:59:40 +0000 (16:59 -0800)]
Upgrade libuv to 196e145

12 years agoprocess.kill doesn't create error obj correctly
Ryan Dahl [Wed, 9 Nov 2011 00:58:32 +0000 (16:58 -0800)]
process.kill doesn't create error obj correctly

12 years agoUpgrade libuv to 2b7774a
Ryan Dahl [Wed, 9 Nov 2011 00:52:45 +0000 (16:52 -0800)]
Upgrade libuv to 2b7774a

12 years agoFixes #2052. Readline get win cols correctly
Ryan Dahl [Tue, 8 Nov 2011 21:36:36 +0000 (13:36 -0800)]
Fixes #2052. Readline get win cols correctly

12 years agocrypto: use the right mutex
Ben Noordhuis [Tue, 8 Nov 2011 16:57:21 +0000 (17:57 +0100)]
crypto: use the right mutex

12 years agoUpgrade libuv to f1859eb
Ryan Dahl [Tue, 8 Nov 2011 19:19:50 +0000 (11:19 -0800)]
Upgrade libuv to f1859eb

Fixes #2040
Fixes https://github.com/joyent/node/commit/0e8a55d2a22b88dc3b9b0165f344602b0fa8c977#commitcomment-69710

12 years agocrypto: make module thread-safe
Ben Noordhuis [Tue, 8 Nov 2011 16:57:21 +0000 (17:57 +0100)]
crypto: make module thread-safe

12 years agoUpgrade V8 to 3.6.6.7
Ryan Dahl [Tue, 8 Nov 2011 18:00:12 +0000 (10:00 -0800)]
Upgrade V8 to 3.6.6.7

12 years agoCluster documentation added.
Scott Anderson [Mon, 7 Nov 2011 21:54:34 +0000 (15:54 -0600)]
Cluster documentation added.

12 years agotest: fs.realpath() should not call its callback twice
Ben Noordhuis [Tue, 8 Nov 2011 12:03:25 +0000 (13:03 +0100)]
test: fs.realpath() should not call its callback twice

Test case for #2045.

12 years agofs: fix fs.realpath on windows to return on error
Benjamin Pasero [Tue, 8 Nov 2011 10:17:33 +0000 (11:17 +0100)]
fs: fix fs.realpath on windows to return on error

12 years agofs: make mkdir() call callback if mode is omitted
Ben Noordhuis [Tue, 8 Nov 2011 11:44:36 +0000 (12:44 +0100)]
fs: make mkdir() call callback if mode is omitted

Fixes #2043.

12 years agocluster: fix call to undefined function
Ben Noordhuis [Tue, 8 Nov 2011 07:29:25 +0000 (08:29 +0100)]
cluster: fix call to undefined function

12 years agodocs: minor grammar fix in cluster page
Eric Lovett [Mon, 7 Nov 2011 19:37:05 +0000 (11:37 -0800)]
docs: minor grammar fix in cluster page

12 years agobuild: fix race in parallel build
Ben Noordhuis [Mon, 7 Nov 2011 23:25:51 +0000 (00:25 +0100)]
build: fix race in parallel build

Run `make clean` first, *then* `make all`

12 years agoUpdate multi-core text on index.html
Ryan Dahl [Mon, 7 Nov 2011 18:43:48 +0000 (10:43 -0800)]
Update multi-core text on index.html

12 years agoRemove v0.4 links from index.html
Ryan Dahl [Mon, 7 Nov 2011 18:41:01 +0000 (10:41 -0800)]
Remove v0.4 links from index.html

12 years agobuild: fix man page install path on the BSDs
Ben Noordhuis [Mon, 7 Nov 2011 05:46:05 +0000 (06:46 +0100)]
build: fix man page install path on the BSDs

Fixes #2026.

13 years agobench: update static_http_server benchmark to new API
koichik [Sat, 5 Nov 2011 16:23:33 +0000 (01:23 +0900)]
bench: update static_http_server benchmark to new API

Fixes #2016.

13 years agotest: debugger-repl should wait for 'drain' event
Fedor Indutny [Sat, 5 Nov 2011 07:47:21 +0000 (13:47 +0600)]
test: debugger-repl should wait for 'drain' event

13 years agodocs: use markdown for link, not html
Eric Lovett [Sat, 5 Nov 2011 10:08:15 +0000 (03:08 -0700)]
docs: use markdown for link, not html

13 years agodocs: fix copy/paste error, 0.6.0 is a stable release
Ben Noordhuis [Sat, 5 Nov 2011 09:44:27 +0000 (10:44 +0100)]
docs: fix copy/paste error, 0.6.0 is a stable release

13 years agodocs: minor typo fix in child process docs
Eric Lovett [Sat, 5 Nov 2011 09:36:20 +0000 (02:36 -0700)]
docs: minor typo fix in child process docs

13 years agoNow working on v0.6.1
Ryan Dahl [Sat, 5 Nov 2011 08:55:34 +0000 (01:55 -0700)]
Now working on v0.6.1

13 years agoBump version to v0.6.0 v0.6.0
Ryan Dahl [Fri, 4 Nov 2011 23:40:14 +0000 (16:40 -0700)]
Bump version to v0.6.0

13 years agodocs: fix typo
koichik [Sat, 5 Nov 2011 03:35:38 +0000 (12:35 +0900)]
docs: fix typo

13 years agouv: upgrade to c468e2a
Ben Noordhuis [Sat, 5 Nov 2011 02:13:55 +0000 (03:13 +0100)]
uv: upgrade to c468e2a

13 years agofix test-module-loading on windows
Igor Zinkovsky [Sat, 5 Nov 2011 00:48:24 +0000 (17:48 -0700)]
fix test-module-loading on windows

13 years agoupdate fs_event_wrap.cc to work with new uv_fs_event_init api
Igor Zinkovsky [Sat, 5 Nov 2011 01:04:52 +0000 (18:04 -0700)]
update fs_event_wrap.cc to work with new uv_fs_event_init api

13 years agomake updates to work with latest libuv api changes
Igor Zinkovsky [Sat, 5 Nov 2011 00:55:12 +0000 (17:55 -0700)]
make updates to work with latest libuv api changes

13 years agoUpgrade libuv to 1997e10b50
Bert Belder [Sat, 5 Nov 2011 00:50:05 +0000 (01:50 +0100)]
Upgrade libuv to 1997e10b50

13 years agodocs: make std*Stream spawn opts explicitly internal
Ryan Dahl [Fri, 4 Nov 2011 22:55:06 +0000 (15:55 -0700)]
docs: make std*Stream spawn opts explicitly internal

Fixes #1884.

13 years agodocs: fix some minor typos in the fs documentation
Jacob H.C. Kragh [Fri, 4 Nov 2011 22:07:10 +0000 (23:07 +0100)]
docs: fix some minor typos in the fs documentation

* fchmodSync: replace 'path' with 'fd'
* lchmod: replace 'fd' with 'path'
* utimes, futimes, fsync: mark 'callback' as optional

13 years agobench: add http_simple cluster edition benchmark
Ben Noordhuis [Fri, 4 Nov 2011 22:31:39 +0000 (23:31 +0100)]
bench: add http_simple cluster edition benchmark

13 years agocluster: add example for message passing
Ryan Dahl [Fri, 4 Nov 2011 22:33:49 +0000 (15:33 -0700)]
cluster: add example for message passing

13 years agoupgrade libuv to 82cf0b38c0
Igor Zinkovsky [Fri, 4 Nov 2011 22:19:46 +0000 (15:19 -0700)]
upgrade libuv to 82cf0b38c0
fixes #2004

13 years agocluster: Remove eachWorker, workerCount
Ryan Dahl [Fri, 4 Nov 2011 22:14:26 +0000 (15:14 -0700)]
cluster: Remove eachWorker, workerCount

unnecessary

13 years agonew cluster api
Ryan Dahl [Fri, 4 Nov 2011 22:11:19 +0000 (15:11 -0700)]
new cluster api

13 years agodocs: fix typo in the documented fchown signature
Jacob H.C. Kragh [Fri, 4 Nov 2011 18:11:50 +0000 (19:11 +0100)]
docs: fix typo in the documented fchown signature

13 years agoClose #1930 Convenience methods for zlib
Matt Robenolt [Mon, 24 Oct 2011 16:29:24 +0000 (12:29 -0400)]
Close #1930 Convenience methods for zlib

This is a combination of 20 commits. Their commit messages are preserved
below for the benefit of future generations.

* Adding a shortcut to easily compress/decompress a string of text.
* Making the API consistent. unzip should accept a Buffer for input as well.
* Adding docs.
* Oops, typo.
* Propagate error through the callback.
* Adding zlib from string tests.
* Typo in test.
* Remove 'end' listeners, and join buffers properly instead of joining them
  as a string.
* Oops, needs to be rendered to a string.
* Updated test to include multi-byte characters.
* unzip should return a raw Buffer. Updated docs to reflect.
* And finally updating test.
* EventEmitter.destroy() is a bit more customary
* Revert "EventEmitter.destroy() is a bit more customary"
* Renaming internal methods to "buffer" instead of string.
* Remove the 'error' listeners as well.
* @isaacs: spacing/style, and compress duplicate functions into one
* @isaacs: Update docs
* @isaacs: doc style fix

13 years agofix debugger-repl test
Fedor Indutny [Fri, 4 Nov 2011 16:56:21 +0000 (22:56 +0600)]
fix debugger-repl test

13 years agodebugger: do not request `continue` on connection
Fedor Indutny [Fri, 4 Nov 2011 16:20:53 +0000 (22:20 +0600)]
debugger: do not request `continue` on connection

* Updated test
* Use `node debug file`, not `node debug -e "..."` in test