platform/upstream/nodejs.git
13 years agoFork out to debugger on debugger statements
Ryan Dahl [Thu, 23 Dec 2010 01:17:34 +0000 (17:17 -0800)]
Fork out to debugger on debugger statements

Also implement continue in Client.

13 years agoDebugger client emits ready after recving initial res
Ryan Dahl [Wed, 22 Dec 2010 22:40:28 +0000 (14:40 -0800)]
Debugger client emits ready after recving initial res

13 years agoAdd more debugger tests
Ryan Dahl [Wed, 22 Dec 2010 22:31:57 +0000 (14:31 -0800)]
Add more debugger tests

13 years agokeep track of current frame. eval works for global scope
Ryan Dahl [Wed, 22 Dec 2010 08:48:22 +0000 (00:48 -0800)]
keep track of current frame. eval works for global scope

13 years agoFix test-debugger-client
Ryan Dahl [Wed, 22 Dec 2010 06:31:30 +0000 (22:31 -0800)]
Fix test-debugger-client

13 years agoAdd beginning of build-in debugger
Ryan Dahl [Wed, 22 Dec 2010 03:14:29 +0000 (19:14 -0800)]
Add beginning of build-in debugger

+ test-debugger-client (which is currently broken)

13 years agostart debug agent on SIGUSR1
Ryan Dahl [Sat, 18 Dec 2010 19:17:29 +0000 (11:17 -0800)]
start debug agent on SIGUSR1

13 years agoAdd ability to ask question from readline
Ryan Dahl [Thu, 30 Dec 2010 09:34:31 +0000 (01:34 -0800)]
Add ability to ask question from readline

13 years agoFree (ref-counted) private key.
Tom Hughes [Thu, 23 Dec 2010 21:49:55 +0000 (15:49 -0600)]
Free (ref-counted) private key.

13 years agoFix Cygwin compatibility in the os module
Brian White [Thu, 23 Dec 2010 13:06:03 +0000 (08:06 -0500)]
Fix Cygwin compatibility in the os module

13 years agocorrect some inline links in api document
Kai Chen [Tue, 21 Dec 2010 04:35:40 +0000 (12:35 +0800)]
correct some inline links in api document

13 years agocmake: Add toolchain file for cross-compiling.
Tom Hughes [Wed, 8 Dec 2010 21:37:28 +0000 (15:37 -0600)]
cmake: Add toolchain file for cross-compiling.

13 years agocmake: Fix OpenSSL detection and node crypto compilation.
Tom Hughes [Wed, 8 Dec 2010 01:06:52 +0000 (19:06 -0600)]
cmake: Fix OpenSSL detection and node crypto compilation.

13 years agocmake: add -lutil
Daniel Gröber [Sun, 5 Dec 2010 14:10:05 +0000 (15:10 +0100)]
cmake: add -lutil

13 years agoAdd more functionality to the os module
Brian White [Wed, 22 Dec 2010 18:55:47 +0000 (13:55 -0500)]
Add more functionality to the os module

13 years agoDon't access buffer data before initializing it.
Tom Hughes [Mon, 20 Dec 2010 17:15:20 +0000 (11:15 -0600)]
Don't access buffer data before initializing it.

Prevents valgrind from complaining and still tests that buffer data is
treated as unsigned.

13 years agoFix memory leak in node_crypto.cc.
Tom Hughes [Tue, 21 Dec 2010 21:52:07 +0000 (15:52 -0600)]
Fix memory leak in node_crypto.cc.

Both HexDecode and unbase64 allocate buffers, which weren't being freed.

13 years agoFix memory corruption with unnamed AF_UNIX sockets.
Tom Hughes [Fri, 17 Dec 2010 23:26:58 +0000 (17:26 -0600)]
Fix memory corruption with unnamed AF_UNIX sockets.

AF_UNIX sockets can have a pathname, be unnamed, or abstract (Linux
only). If an unnamed socket is returned by getsockname, getpeername, or
accept, sun_path should not be inspected.

13 years agoAdd 'make test-valgrind'
Ryan Dahl [Wed, 22 Dec 2010 18:24:34 +0000 (10:24 -0800)]
Add 'make test-valgrind'

13 years agoprocess.kill coerces args to integers
Ryan Dahl [Tue, 21 Dec 2010 23:40:10 +0000 (15:40 -0800)]
process.kill coerces args to integers

13 years agofix assert.throws
Oleg Slobodskoi [Tue, 21 Dec 2010 17:42:52 +0000 (18:42 +0100)]
fix assert.throws

13 years agoAdd toolchain=gcc to V8 build for Sun
Ryan Dahl [Tue, 21 Dec 2010 20:02:51 +0000 (12:02 -0800)]
Add toolchain=gcc to V8 build for Sun

13 years agoThe following error can be thrown from accept on ECONNABORT. Instead, it should be...
Theo Schlossnagle [Tue, 21 Dec 2010 03:08:41 +0000 (22:08 -0500)]
The following error can be thrown from accept on ECONNABORT. Instead, it should be ignored.

net:1100
        if (e.errno != EMFILE) throw e;
                               ^
Error: ECONNABORTED, Software caused connection abort
    at IOWatcher.callback (net:1098:24)
    at node.js:773:9

13 years agoUpgrade V8 to 3.0.4
Ryan Dahl [Tue, 21 Dec 2010 18:24:08 +0000 (10:24 -0800)]
Upgrade V8 to 3.0.4

13 years agourl.parse(url, true) defaults query field to {}
Jeremy Martin [Mon, 20 Dec 2010 21:21:02 +0000 (16:21 -0500)]
url.parse(url, true) defaults query field to {}

13 years agoAdd callback to CryptoStream.write
Ryan Dahl [Mon, 20 Dec 2010 19:08:51 +0000 (11:08 -0800)]
Add callback to CryptoStream.write

13 years agoAdd doc for Buffer.isBuffer
Ryan Dahl [Sun, 19 Dec 2010 02:44:04 +0000 (18:44 -0800)]
Add doc for Buffer.isBuffer

13 years agocleartext.socket always exists
Ryan Dahl [Sun, 19 Dec 2010 00:38:32 +0000 (16:38 -0800)]
cleartext.socket always exists

13 years agoTLS: check we're not disconnected before Cleartext blow
Ryan Dahl [Sat, 18 Dec 2010 23:34:10 +0000 (15:34 -0800)]
TLS: check we're not disconnected before Cleartext blow

13 years agoParse issuer and subject from CryptoStream.getPeerCertificate
Ryan Dahl [Sat, 18 Dec 2010 19:18:33 +0000 (11:18 -0800)]
Parse issuer and subject from CryptoStream.getPeerCertificate

13 years agoAdd optional filters to stream.pipe()
Ryan Dahl [Fri, 17 Dec 2010 21:56:47 +0000 (13:56 -0800)]
Add optional filters to stream.pipe()

13 years agoNow working on v0.3.3-pre
Ryan Dahl [Fri, 17 Dec 2010 17:24:24 +0000 (09:24 -0800)]
Now working on v0.3.3-pre

13 years agoBump version to v0.3.2 v0.3.2
Ryan Dahl [Thu, 16 Dec 2010 20:19:45 +0000 (12:19 -0800)]
Bump version to v0.3.2

13 years agoRemove toJSON usage - it was removed from V8
Ryan Dahl [Fri, 17 Dec 2010 17:50:41 +0000 (09:50 -0800)]
Remove toJSON usage - it was removed from V8

13 years agoUpgrade V8 to 3.0.3
Ryan Dahl [Fri, 17 Dec 2010 17:29:19 +0000 (09:29 -0800)]
Upgrade V8 to 3.0.3

13 years agoFix compilation on OpenBSD and FreeBSD
Brian White [Fri, 17 Dec 2010 03:57:41 +0000 (22:57 -0500)]
Fix compilation on OpenBSD and FreeBSD

While it compiles fine on FreeBSD, at least on amd64 node dies with:
"CALL_AND_RETRY_0 allocation failed - process out of memory"

13 years agoRevert "Simplify next tick logic by looping around ev_loop"
Ryan Dahl [Fri, 17 Dec 2010 02:40:23 +0000 (18:40 -0800)]
Revert "Simplify next tick logic by looping around ev_loop"

This reverts commit 241ea7e5954e4a049af85cd8d51b84202cf0ea3a.

Fixes GH-511: https://github.com/ry/node/issues/issue/511

13 years agoAdd failing test for GH-511
Jorge Chamorro Bieling [Fri, 17 Dec 2010 02:40:06 +0000 (18:40 -0800)]
Add failing test for GH-511

13 years agoAdd os module to repl's built-in lib list
Brian White [Fri, 17 Dec 2010 00:41:38 +0000 (19:41 -0500)]
Add os module to repl's built-in lib list

13 years agoAdd oprofile patch to repo
Ryan Dahl [Thu, 16 Dec 2010 22:25:02 +0000 (14:25 -0800)]
Add oprofile patch to repo

13 years agoAdd solaris patch file
Ryan Dahl [Thu, 16 Dec 2010 22:22:41 +0000 (14:22 -0800)]
Add solaris patch file

13 years agoPatch V8 to compile on solaris
Ryan Dahl [Thu, 16 Dec 2010 22:03:04 +0000 (22:03 +0000)]
Patch V8 to compile on solaris

13 years agoAdd 5 sec timeout to test-tls-securepair-client
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.

13 years agoApply V8 r5951 to fix Mac build
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

13 years agoUpgrade V8 to 3.0.2
Ryan Dahl [Thu, 16 Dec 2010 19:52:08 +0000 (11:52 -0800)]
Upgrade V8 to 3.0.2

13 years agoAdd callback paramenter to socket.connect()
Ryan Dahl [Wed, 15 Dec 2010 23:57:13 +0000 (15:57 -0800)]
Add callback paramenter to socket.connect()

13 years agoAdd callback to socket.write()
Ryan Dahl [Wed, 15 Dec 2010 23:47:02 +0000 (15:47 -0800)]
Add callback to socket.write()

13 years agobetter option parsing for socket.write()
Ryan Dahl [Wed, 15 Dec 2010 23:15:27 +0000 (15:15 -0800)]
better option parsing for socket.write()

13 years agoPrint 'make clean' commands
Ryan Dahl [Tue, 14 Dec 2010 06:13:51 +0000 (22:13 -0800)]
Print 'make clean' commands

13 years agoMake oprofile work
Ryan Dahl [Tue, 14 Dec 2010 06:04:54 +0000 (22:04 -0800)]
Make oprofile work

13 years agoUpgrade V8 to 3.0.1
Ryan Dahl [Tue, 14 Dec 2010 06:03:33 +0000 (22:03 -0800)]
Upgrade V8 to 3.0.1

13 years agolink windows/cygwin build to the wiki docs
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

13 years agoPrefer require.cache over native module cache
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.

13 years agoTLS: server should die on junk
Ryan Dahl [Sat, 11 Dec 2010 10:45:38 +0000 (02:45 -0800)]
TLS: server should die on junk

13 years agoRandom doc fixes
Ryan Dahl [Sat, 11 Dec 2010 10:32:48 +0000 (02:32 -0800)]
Random doc fixes

13 years agoAdd docs for tls.connect()
Ryan Dahl [Sat, 11 Dec 2010 10:26:48 +0000 (02:26 -0800)]
Add docs for tls.connect()

13 years agoRename node::SecureStream to node::crypto::Connection
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.)

13 years agoTLS: Simplify code from suck and blow
Ryan Dahl [Sat, 11 Dec 2010 09:42:34 +0000 (01:42 -0800)]
TLS: Simplify code from suck and blow

13 years agoAdd CryptoStream.destroy()
Ryan Dahl [Sat, 11 Dec 2010 09:21:25 +0000 (01:21 -0800)]
Add CryptoStream.destroy()

13 years agoFactor out CryptoStream.end; support data on end()
Ryan Dahl [Sat, 11 Dec 2010 09:18:32 +0000 (01:18 -0800)]
Factor out CryptoStream.end; support data on end()

13 years agoFix typo
Ryan Dahl [Sat, 11 Dec 2010 08:56:58 +0000 (00:56 -0800)]
Fix typo

13 years agoAdd os module and getHostname
Brian White [Sat, 11 Dec 2010 08:49:38 +0000 (03:49 -0500)]
Add os module and getHostname

13 years agoFactor out some _cycle functionality into Cleartext and EncrypteStreams
Ryan Dahl [Sat, 11 Dec 2010 06:29:46 +0000 (22:29 -0800)]
Factor out some _cycle functionality into Cleartext and EncrypteStreams

13 years agoAdd receivedShutdown() binding
Ryan Dahl [Sat, 11 Dec 2010 06:09:46 +0000 (22:09 -0800)]
Add receivedShutdown() binding

13 years agoAdd EncryptedStream and CleartextStream classes
Ryan Dahl [Sat, 11 Dec 2010 02:25:12 +0000 (18:25 -0800)]
Add EncryptedStream and CleartextStream classes

Towards half-closed secure sockets.

13 years agoRename the securepair test to be prefixed with tls
Ryan Dahl [Sat, 11 Dec 2010 02:03:39 +0000 (18:03 -0800)]
Rename the securepair test to be prefixed with tls

13 years agoStart a simple TLS client verification test
Ryan Dahl [Sat, 11 Dec 2010 02:02:51 +0000 (18:02 -0800)]
Start a simple TLS client verification test

13 years agoApply V8 r5951 to fix Mac build
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

13 years agoAdd some verification code to tls.connect()
Ryan Dahl [Thu, 9 Dec 2010 10:35:16 +0000 (02:35 -0800)]
Add some verification code to tls.connect()

13 years agoMove getPeerCertificate and getCipher to CryptoStream
Ryan Dahl [Thu, 9 Dec 2010 10:31:22 +0000 (02:31 -0800)]
Move getPeerCertificate and getCipher to CryptoStream

13 years agoInitial implementation of tls.connect()
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.

13 years agopair.cleartext, pair.encrypted now instances of tls.CryptoStream
Ryan Dahl [Thu, 9 Dec 2010 08:10:16 +0000 (00:10 -0800)]
pair.cleartext, pair.encrypted now instances of tls.CryptoStream

13 years agoRemove doc references to readyState
Ryan Dahl [Thu, 9 Dec 2010 00:04:21 +0000 (16:04 -0800)]
Remove doc references to readyState

13 years agoSimplify the net.Server example in docs
Ryan Dahl [Wed, 8 Dec 2010 21:43:42 +0000 (13:43 -0800)]
Simplify the net.Server example in docs

13 years agoAdd tls.Server docs
Ryan Dahl [Wed, 8 Dec 2010 21:22:12 +0000 (13:22 -0800)]
Add tls.Server docs

13 years agoAccept Buffers as well as strings for addCert, addKey
Ryan Dahl [Wed, 8 Dec 2010 20:49:53 +0000 (12:49 -0800)]
Accept Buffers as well as strings for addCert, addKey

13 years agoTLS: emit 'secureConnection' instead of two events
Ryan Dahl [Wed, 8 Dec 2010 20:05:19 +0000 (12:05 -0800)]
TLS: emit 'secureConnection' instead of two events

13 years agoremove old todo
Ryan Dahl [Wed, 8 Dec 2010 19:55:13 +0000 (11:55 -0800)]
remove old todo

13 years agotest-tls-server-verify: add ca2 test case
Ryan Dahl [Wed, 8 Dec 2010 19:55:04 +0000 (11:55 -0800)]
test-tls-server-verify: add ca2 test case

13 years agoTLS: emit 'end' on both streams
Ryan Dahl [Wed, 8 Dec 2010 19:51:41 +0000 (11:51 -0800)]
TLS: emit 'end' on both streams

13 years agoTLS: don't use events when control hasn't been inverted
Ryan Dahl [Wed, 8 Dec 2010 19:39:57 +0000 (11:39 -0800)]
TLS: don't use events when control hasn't been inverted

13 years agoSome TLS clean ups
Ryan Dahl [Wed, 8 Dec 2010 19:22:08 +0000 (11:22 -0800)]
Some TLS clean ups

13 years agoAdd 'make test' to test/fixtures/keys/Makefile
Ryan Dahl [Wed, 8 Dec 2010 01:13:51 +0000 (17:13 -0800)]
Add 'make test' to test/fixtures/keys/Makefile

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