Ryan Dahl [Thu, 16 Dec 2010 22:22:41 +0000 (14:22 -0800)]
Add solaris patch file
Ryan Dahl [Thu, 16 Dec 2010 22:03:04 +0000 (22:03 +0000)]
Patch V8 to compile on solaris
Ryan Dahl [Thu, 16 Dec 2010 20:22:30 +0000 (12:22 -0800)]
Add 5 sec timeout to test-tls-securepair-client
This test is broken for people who don't have OpenSSL 1.0.0 - but it's just
a bug in OpenSSL. Add this timeout so that it doesn't take super long to run
the tests.
Ryan Dahl [Fri, 10 Dec 2010 19:21:47 +0000 (11:21 -0800)]
Apply V8 r5951 to fix Mac build
From
f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com@
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
and then trimming it when the length is known. This way we only have to
traverse the input once.
Review URL: http://codereview.chromium.org/5556012
Ryan Dahl [Thu, 16 Dec 2010 19:52:08 +0000 (11:52 -0800)]
Upgrade V8 to 3.0.2
Ryan Dahl [Wed, 15 Dec 2010 23:57:13 +0000 (15:57 -0800)]
Add callback paramenter to socket.connect()
Ryan Dahl [Wed, 15 Dec 2010 23:47:02 +0000 (15:47 -0800)]
Add callback to socket.write()
Ryan Dahl [Wed, 15 Dec 2010 23:15:27 +0000 (15:15 -0800)]
better option parsing for socket.write()
Ryan Dahl [Tue, 14 Dec 2010 06:13:51 +0000 (22:13 -0800)]
Print 'make clean' commands
Ryan Dahl [Tue, 14 Dec 2010 06:04:54 +0000 (22:04 -0800)]
Make oprofile work
Ryan Dahl [Tue, 14 Dec 2010 06:03:33 +0000 (22:03 -0800)]
Upgrade V8 to 3.0.1
isaacs [Sun, 12 Dec 2010 19:13:38 +0000 (11:13 -0800)]
link windows/cygwin build to the wiki docs
Suggested by temp01 in IRC.
http://irc.npmjs.org/node.js/2010-12-12#NODE-JS-2010-12-12T18-59-36-270Z
18:59:36 temp01: I feel like the build section on nodejs.org should link
there
19:11:18 isaacs: temp01: yeah, that'd be helpful
Felix Geisendörfer [Mon, 13 Dec 2010 22:56:16 +0000 (23:56 +0100)]
Prefer require.cache over native module cache
This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.
The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
Ryan Dahl [Sat, 11 Dec 2010 10:45:38 +0000 (02:45 -0800)]
TLS: server should die on junk
Ryan Dahl [Sat, 11 Dec 2010 10:32:48 +0000 (02:32 -0800)]
Random doc fixes
Ryan Dahl [Sat, 11 Dec 2010 10:26:48 +0000 (02:26 -0800)]
Add docs for tls.connect()
Ryan Dahl [Sat, 11 Dec 2010 10:13:24 +0000 (02:13 -0800)]
Rename node::SecureStream to node::crypto::Connection
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
Ryan Dahl [Sat, 11 Dec 2010 09:42:34 +0000 (01:42 -0800)]
TLS: Simplify code from suck and blow
Ryan Dahl [Sat, 11 Dec 2010 09:21:25 +0000 (01:21 -0800)]
Add CryptoStream.destroy()
Ryan Dahl [Sat, 11 Dec 2010 09:18:32 +0000 (01:18 -0800)]
Factor out CryptoStream.end; support data on end()
Ryan Dahl [Sat, 11 Dec 2010 08:56:58 +0000 (00:56 -0800)]
Fix typo
Brian White [Sat, 11 Dec 2010 08:49:38 +0000 (03:49 -0500)]
Add os module and getHostname
Ryan Dahl [Sat, 11 Dec 2010 06:29:46 +0000 (22:29 -0800)]
Factor out some _cycle functionality into Cleartext and EncrypteStreams
Ryan Dahl [Sat, 11 Dec 2010 06:09:46 +0000 (22:09 -0800)]
Add receivedShutdown() binding
Ryan Dahl [Sat, 11 Dec 2010 02:25:12 +0000 (18:25 -0800)]
Add EncryptedStream and CleartextStream classes
Towards half-closed secure sockets.
Ryan Dahl [Sat, 11 Dec 2010 02:03:39 +0000 (18:03 -0800)]
Rename the securepair test to be prefixed with tls
Ryan Dahl [Sat, 11 Dec 2010 02:02:51 +0000 (18:02 -0800)]
Start a simple TLS client verification test
Ryan Dahl [Fri, 10 Dec 2010 19:21:47 +0000 (11:21 -0800)]
Apply V8 r5951 to fix Mac build
From
f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com@
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
and then trimming it when the length is known. This way we only have to
traverse the input once.
Review URL: http://codereview.chromium.org/5556012
Ryan Dahl [Thu, 9 Dec 2010 10:35:16 +0000 (02:35 -0800)]
Add some verification code to tls.connect()
Ryan Dahl [Thu, 9 Dec 2010 10:31:22 +0000 (02:31 -0800)]
Move getPeerCertificate and getCipher to CryptoStream
Ryan Dahl [Thu, 9 Dec 2010 08:35:16 +0000 (00:35 -0800)]
Initial implementation of tls.connect()
Seems to work checkout test/disabled/tls-client.js
Type "GET /" after connected.
Ryan Dahl [Thu, 9 Dec 2010 08:10:16 +0000 (00:10 -0800)]
pair.cleartext, pair.encrypted now instances of tls.CryptoStream
Ryan Dahl [Thu, 9 Dec 2010 00:04:21 +0000 (16:04 -0800)]
Remove doc references to readyState
Ryan Dahl [Wed, 8 Dec 2010 21:43:42 +0000 (13:43 -0800)]
Simplify the net.Server example in docs
Ryan Dahl [Wed, 8 Dec 2010 21:22:12 +0000 (13:22 -0800)]
Add tls.Server docs
Ryan Dahl [Wed, 8 Dec 2010 20:49:53 +0000 (12:49 -0800)]
Accept Buffers as well as strings for addCert, addKey
Ryan Dahl [Wed, 8 Dec 2010 20:05:19 +0000 (12:05 -0800)]
TLS: emit 'secureConnection' instead of two events
Ryan Dahl [Wed, 8 Dec 2010 19:55:13 +0000 (11:55 -0800)]
remove old todo
Ryan Dahl [Wed, 8 Dec 2010 19:55:04 +0000 (11:55 -0800)]
test-tls-server-verify: add ca2 test case
Ryan Dahl [Wed, 8 Dec 2010 19:51:41 +0000 (11:51 -0800)]
TLS: emit 'end' on both streams
Ryan Dahl [Wed, 8 Dec 2010 19:39:57 +0000 (11:39 -0800)]
TLS: don't use events when control hasn't been inverted
Ryan Dahl [Wed, 8 Dec 2010 19:22:08 +0000 (11:22 -0800)]
Some TLS clean ups
Ryan Dahl [Wed, 8 Dec 2010 01:13:51 +0000 (17:13 -0800)]
Add 'make test' to test/fixtures/keys/Makefile
Ryan Dahl [Wed, 8 Dec 2010 00:50:30 +0000 (16:50 -0800)]
clients without certs are unauthed.
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.
Ryan Dahl [Tue, 7 Dec 2010 21:56:11 +0000 (13:56 -0800)]
Upgrade V8 to 3.0.0
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.
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.
Ryan Dahl [Mon, 6 Dec 2010 02:19:18 +0000 (18:19 -0800)]
Move securepair stuff into tls.js
Ryan Dahl [Sat, 4 Dec 2010 01:07:09 +0000 (17:07 -0800)]
Server must not request cert.
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).
Oleg Efimov [Sun, 5 Dec 2010 19:15:30 +0000 (22:15 +0300)]
GJSLint all simple tests exclude http-*, url, path
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.
isaacs [Sun, 5 Dec 2010 19:05:30 +0000 (11:05 -0800)]
test-fs-realpath: move absDir fetching to separate function
isaacs [Sun, 5 Dec 2010 18:44:39 +0000 (10:44 -0800)]
test-fs-realpath: lint
Oleg Efimov [Sat, 4 Dec 2010 22:45:52 +0000 (01:45 +0300)]
GJSLint continue
Oleg Efimov [Sat, 4 Dec 2010 23:06:34 +0000 (02:06 +0300)]
Small site fix for image borders and nodejs-dev maillist URL
Ryan Dahl [Sat, 4 Dec 2010 21:40:39 +0000 (13:40 -0800)]
Check for global leaks in all tests
Ryan Dahl [Sun, 5 Dec 2010 00:11:57 +0000 (16:11 -0800)]
Fix global leaks
Ryan Dahl [Sat, 4 Dec 2010 23:20:34 +0000 (15:20 -0800)]
Fix global leaks
Ryan Dahl [Sat, 4 Dec 2010 21:40:21 +0000 (13:40 -0800)]
Fix global leaks in test-buffer.js
Ryan Dahl [Sat, 4 Dec 2010 21:39:28 +0000 (13:39 -0800)]
fix global leak
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.
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
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)
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
Ryan Dahl [Fri, 3 Dec 2010 20:28:24 +0000 (20:28 +0000)]
implement openpty for sun
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
Brian White [Fri, 3 Dec 2010 12:40:26 +0000 (07:40 -0500)]
Fix tty changes for OSX
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.
Oleg Efimov [Fri, 3 Dec 2010 01:03:18 +0000 (04:03 +0300)]
GJSLint part of tests
Ryan Dahl [Fri, 3 Dec 2010 01:01:08 +0000 (17:01 -0800)]
Fix indention in 'make test-message'
Ryan Dahl [Fri, 3 Dec 2010 00:57:16 +0000 (16:57 -0800)]
Add configure flag for oprofile
Ryan Dahl [Fri, 3 Dec 2010 00:45:34 +0000 (16:45 -0800)]
fix global leak
Ryan Dahl [Fri, 3 Dec 2010 00:38:23 +0000 (16:38 -0800)]
test-securepair-client: handle broken stdout packets
Ryan Dahl [Thu, 2 Dec 2010 23:59:35 +0000 (15:59 -0800)]
print warning on process.ENV
Ryan Dahl [Thu, 2 Dec 2010 20:11:23 +0000 (12:11 -0800)]
lint util.js and src/node.js
isaacs [Thu, 2 Dec 2010 19:34:53 +0000 (11:34 -0800)]
lint url.js
Oleg Slobodskoi [Thu, 2 Dec 2010 19:07:47 +0000 (11:07 -0800)]
docs for assert.throws
Tom Hughes [Mon, 29 Nov 2010 18:02:06 +0000 (12:02 -0600)]
cmake: solaris fixes.
Tom Hughes [Wed, 24 Nov 2010 07:25:41 +0000 (01:25 -0600)]
cmake: Add valgrind support.
Tom Hughes [Wed, 24 Nov 2010 06:34:50 +0000 (00:34 -0600)]
cmake: Add coverage support.
Micheil Smith [Thu, 2 Dec 2010 06:48:00 +0000 (17:48 +1100)]
Cleanup Makefile for JSLint, CPPLint
Ryan Dahl [Thu, 2 Dec 2010 04:59:06 +0000 (20:59 -0800)]
lint
Ryan Dahl [Thu, 2 Dec 2010 02:07:20 +0000 (18:07 -0800)]
more lint
Brian White [Thu, 2 Dec 2010 02:24:32 +0000 (21:24 -0500)]
Fix executable path on FreeBSD.
Ryan Dahl [Thu, 2 Dec 2010 01:43:30 +0000 (17:43 -0800)]
more lint
Ryan Dahl [Thu, 2 Dec 2010 01:29:11 +0000 (17:29 -0800)]
more lint
Ryan Dahl [Thu, 2 Dec 2010 01:01:19 +0000 (17:01 -0800)]
Import cpplint.py
make cpplint
make jslint
make lint
Ryan Dahl [Thu, 2 Dec 2010 00:56:03 +0000 (16:56 -0800)]
lint child_process.js
Ryan Dahl [Thu, 2 Dec 2010 00:36:23 +0000 (16:36 -0800)]
lint
Ryan Dahl [Thu, 2 Dec 2010 00:35:46 +0000 (16:35 -0800)]
Import Google's closure_linter
Run with 'make lint'
Ryan Dahl [Wed, 1 Dec 2010 21:43:05 +0000 (13:43 -0800)]
style
Ryan Dahl [Wed, 1 Dec 2010 21:40:28 +0000 (13:40 -0800)]
Require without .js in test-repl
Ryan Dahl [Wed, 1 Dec 2010 21:00:04 +0000 (13:00 -0800)]
New TLS server API
Ryan Dahl [Wed, 1 Dec 2010 20:52:31 +0000 (12:52 -0800)]
Stop watcher before calling .set() in Stream.prototype.resume
Ryan Dahl [Wed, 1 Dec 2010 20:47:49 +0000 (12:47 -0800)]
Remove should_verify from C++ - to handle in JS land
Ryan Dahl [Wed, 1 Dec 2010 20:32:37 +0000 (12:32 -0800)]
add todo
Ryan Dahl [Wed, 1 Dec 2010 19:31:22 +0000 (11:31 -0800)]
Remove useless shouldVerify assignments
Ryan Dahl [Wed, 1 Dec 2010 19:23:25 +0000 (11:23 -0800)]
Better array check in Cert Authority list