platform/upstream/nodejs.git
13 years agoclients without certs are unauthed.
Ryan Dahl [Wed, 8 Dec 2010 00:50:30 +0000 (16:50 -0800)]
clients without certs are unauthed.

13 years agoFix CNs for agent keys; can't be the same as CA's CN
Ryan Dahl [Wed, 8 Dec 2010 00:34:26 +0000 (16:34 -0800)]
Fix CNs for agent keys; can't be the same as CA's CN

Also add makefile for easy tweaking.

13 years agoUpgrade V8 to 3.0.0
Ryan Dahl [Tue, 7 Dec 2010 21:56:11 +0000 (13:56 -0800)]
Upgrade V8 to 3.0.0

13 years agoAdd broken, but detailed TLS verify test
Ryan Dahl [Tue, 7 Dec 2010 19:53:36 +0000 (11:53 -0800)]
Add broken, but detailed TLS verify test

Plus a bunch of keys.

13 years agoPretty error message messes up if readFileSync in main module fails.
Ryan Dahl [Tue, 7 Dec 2010 19:29:10 +0000 (11:29 -0800)]
Pretty error message messes up if readFileSync in main module fails.

TODO test/message test for this.

13 years agoMove securepair stuff into tls.js
Ryan Dahl [Mon, 6 Dec 2010 02:19:18 +0000 (18:19 -0800)]
Move securepair stuff into tls.js

13 years agoServer must not request cert.
Ryan Dahl [Sat, 4 Dec 2010 01:07:09 +0000 (17:07 -0800)]
Server must not request cert.

13 years agoGJSLint all tests, only 3 long lines left in test-url.js
Oleg Efimov [Sun, 5 Dec 2010 22:33:52 +0000 (01:33 +0300)]
GJSLint all tests, only 3 long lines left in test-url.js

test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).

13 years agoGJSLint all simple tests exclude http-*, url, path
Oleg Efimov [Sun, 5 Dec 2010 19:15:30 +0000 (22:15 +0300)]
GJSLint all simple tests exclude http-*, url, path

13 years agotest-fs-realpath: Put junk in tmp, not fixtures.
isaacs [Sun, 5 Dec 2010 19:35:41 +0000 (11:35 -0800)]
test-fs-realpath: Put junk in tmp, not fixtures.

Prevents test/fixtures/cycles/folder/cycles from being created every time
the tests are run.

13 years agotest-fs-realpath: move absDir fetching to separate function
isaacs [Sun, 5 Dec 2010 19:05:30 +0000 (11:05 -0800)]
test-fs-realpath: move absDir fetching to separate function

13 years agotest-fs-realpath: lint
isaacs [Sun, 5 Dec 2010 18:44:39 +0000 (10:44 -0800)]
test-fs-realpath: lint

13 years agoGJSLint continue
Oleg Efimov [Sat, 4 Dec 2010 22:45:52 +0000 (01:45 +0300)]
GJSLint continue

13 years agoSmall site fix for image borders and nodejs-dev maillist URL
Oleg Efimov [Sat, 4 Dec 2010 23:06:34 +0000 (02:06 +0300)]
Small site fix for image borders and nodejs-dev maillist URL

13 years agoCheck for global leaks in all tests
Ryan Dahl [Sat, 4 Dec 2010 21:40:39 +0000 (13:40 -0800)]
Check for global leaks in all tests

13 years agoFix global leaks
Ryan Dahl [Sun, 5 Dec 2010 00:11:57 +0000 (16:11 -0800)]
Fix global leaks

13 years agoFix global leaks
Ryan Dahl [Sat, 4 Dec 2010 23:20:34 +0000 (15:20 -0800)]
Fix global leaks

13 years agoFix global leaks in test-buffer.js
Ryan Dahl [Sat, 4 Dec 2010 21:40:21 +0000 (13:40 -0800)]
Fix global leaks in test-buffer.js

13 years agofix global leak
Ryan Dahl [Sat, 4 Dec 2010 21:39:28 +0000 (13:39 -0800)]
fix global leak

13 years agoReworks the two functions traverser and findModulePath into a more readable form.
Anders Conbere [Sat, 4 Dec 2010 19:37:35 +0000 (11:37 -0800)]
Reworks the two functions traverser and findModulePath into a more readable form.

This is not the supposed end of these changes, but a first change that
should make future changes easier to reason about.

13 years agoUse more color in the repl, loosely inspired by TextMate's SunBurst theme
Devin Torres [Fri, 3 Dec 2010 23:49:26 +0000 (17:49 -0600)]
Use more color in the repl, loosely inspired by TextMate's SunBurst theme

13 years agoadding module tests for .js and bare files
Anders Conbere [Wed, 1 Dec 2010 22:31:20 +0000 (14:31 -0800)]
adding module tests for .js and bare files

Currently the module tests don't cover the cases for when a user
requires a file with a request that includes the extension, and for a
request to a file with no extensions.

ex.

require("./a.js") // not tested
require("./foo") // (not tested with trying to load a file named ./foo)

13 years agoCheck buffer length using string length
Sean Braithwaite [Thu, 2 Dec 2010 21:53:16 +0000 (16:53 -0500)]
Check buffer length using string length

   + Utf8Length is really slow but has the same semantics in this case

13 years agoimplement openpty for sun
Ryan Dahl [Fri, 3 Dec 2010 20:28:24 +0000 (20:28 +0000)]
implement openpty for sun

13 years agoMake sure REPL doesn't get borked when invalid REPL keywords are entered
Brian White [Fri, 3 Dec 2010 12:45:00 +0000 (07:45 -0500)]
Make sure REPL doesn't get borked when invalid REPL keywords are entered

13 years agoFix tty changes for OSX
Brian White [Fri, 3 Dec 2010 12:40:26 +0000 (07:40 -0500)]
Fix tty changes for OSX

13 years agoIntroduce require('tty')
Ryan Dahl [Fri, 26 Nov 2010 03:09:28 +0000 (19:09 -0800)]
Introduce require('tty')

You may need to reconfigure after this commit due to the new library.

13 years agoGJSLint part of tests
Oleg Efimov [Fri, 3 Dec 2010 01:03:18 +0000 (04:03 +0300)]
GJSLint part of tests

13 years agoFix indention in 'make test-message'
Ryan Dahl [Fri, 3 Dec 2010 01:01:08 +0000 (17:01 -0800)]
Fix indention in 'make test-message'

13 years agoAdd configure flag for oprofile
Ryan Dahl [Fri, 3 Dec 2010 00:57:16 +0000 (16:57 -0800)]
Add configure flag for oprofile

13 years agofix global leak
Ryan Dahl [Fri, 3 Dec 2010 00:45:34 +0000 (16:45 -0800)]
fix global leak

13 years agotest-securepair-client: handle broken stdout packets
Ryan Dahl [Fri, 3 Dec 2010 00:38:23 +0000 (16:38 -0800)]
test-securepair-client: handle broken stdout packets

13 years agoprint warning on process.ENV
Ryan Dahl [Thu, 2 Dec 2010 23:59:35 +0000 (15:59 -0800)]
print warning on process.ENV

13 years agolint util.js and src/node.js
Ryan Dahl [Thu, 2 Dec 2010 20:11:23 +0000 (12:11 -0800)]
lint util.js and src/node.js

13 years agolint url.js
isaacs [Thu, 2 Dec 2010 19:34:53 +0000 (11:34 -0800)]
lint url.js

13 years agodocs for assert.throws
Oleg Slobodskoi [Thu, 2 Dec 2010 19:07:47 +0000 (11:07 -0800)]
docs for assert.throws

13 years agocmake: solaris fixes.
Tom Hughes [Mon, 29 Nov 2010 18:02:06 +0000 (12:02 -0600)]
cmake: solaris fixes.

13 years agocmake: Add valgrind support.
Tom Hughes [Wed, 24 Nov 2010 07:25:41 +0000 (01:25 -0600)]
cmake: Add valgrind support.

13 years agocmake: Add coverage support.
Tom Hughes [Wed, 24 Nov 2010 06:34:50 +0000 (00:34 -0600)]
cmake: Add coverage support.

13 years agoCleanup Makefile for JSLint, CPPLint
Micheil Smith [Thu, 2 Dec 2010 06:48:00 +0000 (17:48 +1100)]
Cleanup Makefile for JSLint, CPPLint

13 years agolint
Ryan Dahl [Thu, 2 Dec 2010 04:59:06 +0000 (20:59 -0800)]
lint

13 years agomore lint
Ryan Dahl [Thu, 2 Dec 2010 02:07:20 +0000 (18:07 -0800)]
more lint

13 years agoFix executable path on FreeBSD.
Brian White [Thu, 2 Dec 2010 02:24:32 +0000 (21:24 -0500)]
Fix executable path on FreeBSD.

13 years agomore lint
Ryan Dahl [Thu, 2 Dec 2010 01:43:30 +0000 (17:43 -0800)]
more lint

13 years agomore lint
Ryan Dahl [Thu, 2 Dec 2010 01:29:11 +0000 (17:29 -0800)]
more lint

13 years agoImport cpplint.py
Ryan Dahl [Thu, 2 Dec 2010 01:01:19 +0000 (17:01 -0800)]
Import  cpplint.py

make cpplint
make jslint
make lint

13 years agolint child_process.js
Ryan Dahl [Thu, 2 Dec 2010 00:56:03 +0000 (16:56 -0800)]
lint child_process.js

13 years agolint
Ryan Dahl [Thu, 2 Dec 2010 00:36:23 +0000 (16:36 -0800)]
lint

13 years agoImport Google's closure_linter
Ryan Dahl [Thu, 2 Dec 2010 00:35:46 +0000 (16:35 -0800)]
Import Google's closure_linter

Run with 'make lint'

13 years agostyle
Ryan Dahl [Wed, 1 Dec 2010 21:43:05 +0000 (13:43 -0800)]
style

13 years agoRequire without .js in test-repl
Ryan Dahl [Wed, 1 Dec 2010 21:40:28 +0000 (13:40 -0800)]
Require without .js in test-repl

13 years agoNew TLS server API
Ryan Dahl [Wed, 1 Dec 2010 21:00:04 +0000 (13:00 -0800)]
New TLS server API

13 years agoStop watcher before calling .set() in Stream.prototype.resume
Ryan Dahl [Wed, 1 Dec 2010 20:52:31 +0000 (12:52 -0800)]
Stop watcher before calling .set() in Stream.prototype.resume

13 years agoRemove should_verify from C++ - to handle in JS land
Ryan Dahl [Wed, 1 Dec 2010 20:47:49 +0000 (12:47 -0800)]
Remove should_verify from C++ - to handle in JS land

13 years agoadd todo
Ryan Dahl [Wed, 1 Dec 2010 20:32:37 +0000 (12:32 -0800)]
add todo

13 years agoRemove useless shouldVerify assignments
Ryan Dahl [Wed, 1 Dec 2010 19:31:22 +0000 (11:31 -0800)]
Remove useless shouldVerify assignments

13 years agoBetter array check in Cert Authority list
Ryan Dahl [Wed, 1 Dec 2010 19:23:25 +0000 (11:23 -0800)]
Better array check in Cert Authority list

13 years agoadd shouldVerifyPeer param to SecurePairs
Ryan Dahl [Wed, 1 Dec 2010 09:42:41 +0000 (01:42 -0800)]
add shouldVerifyPeer param to SecurePairs

13 years agoRemove unnecessary call to X509_STORE_free
Ryan Dahl [Wed, 1 Dec 2010 09:40:39 +0000 (01:40 -0800)]
Remove unnecessary call to X509_STORE_free

13 years agoRename VerifyPeerError to VerifyError
Ryan Dahl [Wed, 1 Dec 2010 08:46:04 +0000 (00:46 -0800)]
Rename VerifyPeerError to VerifyError

13 years agofix typo
Ryan Dahl [Wed, 1 Dec 2010 07:06:57 +0000 (23:06 -0800)]
fix typo

13 years agoAdd promotejs
Ryan Dahl [Wed, 1 Dec 2010 07:00:32 +0000 (23:00 -0800)]
Add promotejs

Over 2 months late -- this is how much I procrastinate. -_-

13 years agofixed timers, whoops.
Michael W [Wed, 1 Dec 2010 05:20:25 +0000 (22:20 -0700)]
fixed timers, whoops.

Fixes issue https://github.com/ry/node/issues/issue/481

13 years agoImplement SecureContext destructor
Ryan Dahl [Wed, 1 Dec 2010 00:28:50 +0000 (16:28 -0800)]
Implement SecureContext destructor

13 years agoBetter verify info
Ryan Dahl [Wed, 1 Dec 2010 00:16:00 +0000 (16:16 -0800)]
Better verify info

13 years agoMove root certs out of JavaScript
Ryan Dahl [Wed, 1 Dec 2010 00:13:05 +0000 (16:13 -0800)]
Move root certs out of JavaScript

13 years agostyle
Ryan Dahl [Tue, 30 Nov 2010 23:59:59 +0000 (15:59 -0800)]
style

13 years agoFix test-child-process-cwd.js on Joyent servers
Ryan Dahl [Tue, 30 Nov 2010 19:53:44 +0000 (19:53 +0000)]
Fix test-child-process-cwd.js on Joyent servers

It's symlinked to /usr/bin so this test fails.

13 years agoUpgrade V8 to 2.5.9.1
Ryan Dahl [Tue, 30 Nov 2010 19:34:27 +0000 (11:34 -0800)]
Upgrade V8 to 2.5.9.1

13 years agoRevert "Default to TLSv1"
Ryan Dahl [Tue, 30 Nov 2010 19:33:05 +0000 (11:33 -0800)]
Revert "Default to TLSv1"

This reverts commit 97970b05fe37c0a0313c5e0cb2f13be9e15199a3.

13 years agoLazy load console object
Ryan Dahl [Tue, 30 Nov 2010 19:18:02 +0000 (11:18 -0800)]
Lazy load console object

13 years agoFix comment
Ryan Dahl [Tue, 30 Nov 2010 19:04:31 +0000 (11:04 -0800)]
Fix comment

13 years agoRemove assert in verify_peer; add comments
Ryan Dahl [Tue, 30 Nov 2010 18:54:56 +0000 (10:54 -0800)]
Remove assert in verify_peer; add comments

13 years agowin: Duplicate platform_cygwin.cc into platform_win32.cc
Bert Belder [Wed, 24 Nov 2010 23:34:13 +0000 (00:34 +0100)]
win: Duplicate platform_cygwin.cc into platform_win32.cc

13 years agowin: C-ares build config for win32
Bert Belder [Wed, 24 Nov 2010 23:17:59 +0000 (00:17 +0100)]
win: C-ares build config for win32

13 years agowin: Waf doesn't detect sys/select.h on mingw, but its there for sure
Bert Belder [Wed, 24 Nov 2010 22:44:33 +0000 (23:44 +0100)]
win: Waf doesn't detect sys/select.h on mingw, but its there for sure

13 years agowin: Make libev use send instead of write for sockets
Bert Belder [Wed, 24 Nov 2010 22:43:20 +0000 (23:43 +0100)]
win: Make libev use send instead of write for sockets

It looks like MINGW doesn't like to write() to sockets.
If wrong, revert this patch

13 years agowin: Export eio__pread and eio__pwrite so node_file can use it
Bert Belder [Wed, 24 Nov 2010 22:22:19 +0000 (23:22 +0100)]
win: Export eio__pread and eio__pwrite so node_file can use it

13 years agowin: Fix wscript for libeio on windows
Bert Belder [Wed, 24 Nov 2010 22:21:38 +0000 (23:21 +0100)]
win: Fix wscript for libeio on windows

13 years agowin: Make libeio build on windows
Bert Belder [Wed, 24 Nov 2010 01:39:54 +0000 (02:39 +0100)]
win: Make libeio build on windows

13 years agowin: Define __POSIX__ constant when the platform is POSIX-y
Bert Belder [Thu, 25 Nov 2010 00:49:21 +0000 (01:49 +0100)]
win: Define __POSIX__ constant when the platform is POSIX-y

13 years agowin: Symlink to jsmin.py doesn't work on windows
Bert Belder [Thu, 18 Nov 2010 09:37:13 +0000 (10:37 +0100)]
win: Symlink to jsmin.py doesn't work on windows

13 years agobuffer.copy targetStart defaults to 0
Ryan Dahl [Tue, 30 Nov 2010 03:59:01 +0000 (19:59 -0800)]
buffer.copy targetStart defaults to 0

13 years agoDocument defaults for buffer.copy()
Ryan Dahl [Tue, 30 Nov 2010 03:52:47 +0000 (19:52 -0800)]
Document defaults for buffer.copy()

13 years agoPut tools/ into PYTHON_PATH
Ryan Dahl [Tue, 30 Nov 2010 03:46:00 +0000 (19:46 -0800)]
Put tools/ into PYTHON_PATH

13 years agoFixed: clearTimeouts calling multiple times
Michael W [Mon, 29 Nov 2010 18:48:25 +0000 (11:48 -0700)]
Fixed: clearTimeouts calling multiple times

When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.

13 years agoSimplify execution from "big if statement"
Travis Swicegood [Mon, 29 Nov 2010 18:06:15 +0000 (12:06 -0600)]
Simplify execution from "big if statement"

This code is functionally equivalent, but in a simpler form.  Now new
parameters to `execFile` do not require `exec` to be refactored.

13 years agoRemove cruft that dealt with env parameter
Travis Swicegood [Mon, 29 Nov 2010 17:39:13 +0000 (11:39 -0600)]
Remove cruft that dealt with env parameter

Originally added in commit 078a48a9, this code dealt with an optional
env parameter that was passed to `exec`.  The parameter was removed, but
this code was left.  As it serves no purpose, removing it.

13 years agoAdd test to show ECONNREFUSED works
Ryan Dahl [Tue, 30 Nov 2010 01:36:59 +0000 (17:36 -0800)]
Add test to show ECONNREFUSED works

13 years agoFix number of args emitted by EventEmitter during "fast case" (lte 3 args)
Jeremy Martin [Sun, 28 Nov 2010 06:03:14 +0000 (01:03 -0500)]
Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)

13 years agoassert.throws can now accept as RegExp
Oleg Slobodskoi [Fri, 26 Nov 2010 23:03:31 +0000 (00:03 +0100)]
assert.throws can now accept as RegExp

makes validation of errors more flexible

13 years agofix a typo in comment
Travis Swicegood [Sun, 28 Nov 2010 17:17:36 +0000 (11:17 -0600)]
fix a typo in comment

fixes issue 464

13 years agoFix variable leak.
Evan Larkin [Sat, 27 Nov 2010 09:59:47 +0000 (03:59 -0600)]
Fix variable leak.

Fixes issue 461

13 years agoDon't call exit() from the signal handler
Ryan Dahl [Tue, 30 Nov 2010 00:18:08 +0000 (16:18 -0800)]
Don't call exit() from the signal handler

Fixes issue #457

13 years agoStyle
Ryan Dahl [Mon, 29 Nov 2010 23:22:48 +0000 (15:22 -0800)]
Style

13 years agoRemove unnecessary variable def
Ryan Dahl [Mon, 29 Nov 2010 23:04:36 +0000 (15:04 -0800)]
Remove unnecessary variable def

13 years agoSimplify state transitions in http.Client
Ryan Dahl [Mon, 29 Nov 2010 22:07:55 +0000 (14:07 -0800)]
Simplify state transitions in http.Client

Fixes new bug shown in test-http-allow-req-after-204-res.js pointed out by
Tom Carden <tom.carden@gmail.com>.

13 years agoAvoid cascading EADDRINUSE test failure
Ryan Dahl [Mon, 29 Nov 2010 22:21:30 +0000 (14:21 -0800)]
Avoid cascading EADDRINUSE test failure

See note in test-securepair-client.js

13 years agoImprove HTTP debug messages
Ryan Dahl [Mon, 29 Nov 2010 21:53:35 +0000 (13:53 -0800)]
Improve HTTP debug messages

13 years agostyle
Ryan Dahl [Mon, 29 Nov 2010 15:41:08 +0000 (07:41 -0800)]
style