platform/upstream/nodejs.git
13 years agoRemove -Werror from V8
Ryan Dahl [Mon, 28 Feb 2011 20:58:15 +0000 (12:58 -0800)]
Remove -Werror from V8

13 years agoCloses GH-734 Do the setuid() after chdir()
isaacs [Mon, 28 Feb 2011 20:27:51 +0000 (12:27 -0800)]
Closes GH-734 Do the setuid() after chdir()

13 years agoAutodetect no-strict-aliasing, propagate toolchain option to SCons
Bert Belder [Thu, 17 Feb 2011 02:15:24 +0000 (03:15 +0100)]
Autodetect no-strict-aliasing, propagate toolchain option to SCons

BUG=v8:884

13 years agoUpgrade V8 to 3.1.7
Ryan Dahl [Mon, 28 Feb 2011 19:29:33 +0000 (11:29 -0800)]
Upgrade V8 to 3.1.7

13 years agotty.setWindowSize should use the correct function
Ryan Dahl [Mon, 28 Feb 2011 19:18:56 +0000 (11:18 -0800)]
tty.setWindowSize should use the correct function

Thanks to Matthew Woolman

13 years agoExpose errno with a string for dns/cares
Felix Geisendörfer [Fri, 25 Feb 2011 09:27:52 +0000 (10:27 +0100)]
Expose errno with a string for dns/cares

This is to mirror the behavior introduced in
aa95e5708f240810cd434911cf029f5ee70047d8.

Closes GH-727.

13 years agoCloses GH-711 URL parse more safely
isaacs [Sun, 27 Feb 2011 18:21:23 +0000 (10:21 -0800)]
Closes GH-711 URL parse more safely

This does 3 things:

1. Delimiters and "unwise" characters are never included in the
   hostname or path.
2. url.format will sanitize string URLs that are passed to it.
3. The parsed url's 'href' member will be the sanitized url, which may
   not match the argument to url.parse.

13 years agoCloses GH-690 node_modules folders should be highest priority
isaacs [Fri, 18 Feb 2011 22:18:38 +0000 (14:18 -0800)]
Closes GH-690 node_modules folders should be highest priority

13 years agoCloses GH-232 Make the repl's global the right thing
isaacs [Wed, 16 Feb 2011 23:40:53 +0000 (15:40 -0800)]
Closes GH-232 Make the repl's global the right thing

13 years agoCloses GH-85 Emit error rather than throwing.
isaacs [Wed, 16 Feb 2011 05:34:30 +0000 (21:34 -0800)]
Closes GH-85 Emit error rather than throwing.

Since "error" events will throw when unhandled anyhow, it makes no sense
to throw from an EventEmitter's method, especially for such a minor
misdemeanor as attempting to write to a non-writable stream.

13 years agoCloses GH-184 Clear require cache on repl .clear
isaacs [Wed, 16 Feb 2011 05:24:50 +0000 (21:24 -0800)]
Closes GH-184 Clear require cache on repl .clear

13 years agoFix process.stdout.end() throws ENOTSOCK error.
koichik [Wed, 23 Feb 2011 03:03:49 +0000 (12:03 +0900)]
Fix process.stdout.end() throws ENOTSOCK error.

13 years agoSupport dtrace for debug build
Ryan Dahl [Sat, 26 Feb 2011 00:42:08 +0000 (00:42 +0000)]
Support dtrace for debug build

13 years agohttp: fix missing 'drain' events
Russell Haering [Sun, 20 Feb 2011 00:00:05 +0000 (16:00 -0800)]
http: fix missing 'drain' events

13 years agoAdd 'close' and 'aborted' events to Agent responses
Ryan Dahl [Fri, 25 Feb 2011 01:16:11 +0000 (17:16 -0800)]
Add 'close' and 'aborted' events to Agent responses

Closes GH-722.

13 years agotypos
Ryan Dahl [Fri, 25 Feb 2011 00:36:43 +0000 (16:36 -0800)]
typos

13 years agoRead up the prototype of the 'env' object.
Nathan Rajlich [Fri, 18 Feb 2011 21:44:20 +0000 (13:44 -0800)]
Read up the prototype of the 'env' object.

Closes GH-713.

13 years agoAdd support for specifying the libdir
Aria Stewart [Mon, 21 Feb 2011 18:39:04 +0000 (11:39 -0700)]
Add support for specifying the libdir

Some OSes use "lib64" rather than "lib", and this lets them override
in waf to accomplish this.

Closes GH-712.

13 years agolibeio and http_parser build with PIC code
Aria Stewart [Mon, 21 Feb 2011 07:04:55 +0000 (00:04 -0700)]
libeio and http_parser build with PIC code

Fix building as a shared library

Closes GH-708.

13 years agoDo not cache modules that throw exceptions
Felix Geisendörfer [Mon, 21 Feb 2011 14:46:34 +0000 (15:46 +0100)]
Do not cache modules that throw exceptions

If a module throws an exception on load, it should not be cached.
This patch shows the problem in a test case and also fixes it.

See: https://groups.google.com/forum/#!topic/nodejs-dev/1cIrvJcADbY

Closes GH-707
Closes GH-710

13 years agoRevert "Add extra debug print statement to tls.js"
Ryan Dahl [Thu, 24 Feb 2011 23:54:25 +0000 (15:54 -0800)]
Revert "Add extra debug print statement to tls.js"

This reverts commit 340291c085f629050bd66668dba7cb006f896d89.

sometimes circular. would break node_g tests.

13 years agoFix memleak in vm.runInNewContext
Ryan Dahl [Thu, 24 Feb 2011 23:19:12 +0000 (15:19 -0800)]
Fix memleak in vm.runInNewContext

Closes GH-704.

13 years agoAutodetect no-strict-aliasing, propagate toolchain option to SCons
Bert Belder [Thu, 17 Feb 2011 02:15:24 +0000 (03:15 +0100)]
Autodetect no-strict-aliasing, propagate toolchain option to SCons

BUG=v8:884

13 years agoUpgrade V8 to 3.1.6
Ryan Dahl [Thu, 24 Feb 2011 21:14:59 +0000 (13:14 -0800)]
Upgrade V8 to 3.1.6

13 years agoFix ReadStream bufferSize docs
Felix Geisendörfer [Sun, 20 Feb 2011 12:45:25 +0000 (13:45 +0100)]
Fix ReadStream bufferSize docs

The default is 64kb buffer, not 4kb.

Closes GH-702.

13 years agoDocument existence of `fd` property for ReadStream
Felix Geisendörfer [Sun, 20 Feb 2011 12:41:14 +0000 (13:41 +0100)]
Document existence of `fd` property for ReadStream

Closes GH-194.
Closes GH-701.

13 years agoIn addition to 'aborted' emit 'close' from incoming requests
Felix Geisendörfer [Sun, 20 Feb 2011 12:31:37 +0000 (13:31 +0100)]
In addition to 'aborted' emit 'close' from incoming requests

Closes GH-160.

13 years agoPragma HTTP header comma separation
Ryan Dahl [Thu, 24 Feb 2011 19:24:19 +0000 (11:24 -0800)]
Pragma HTTP header comma separation

Closes GH-715, GH-716.

13 years agory/node -> joyent/node
Ryan Dahl [Thu, 24 Feb 2011 00:19:13 +0000 (16:19 -0800)]
ry/node -> joyent/node

13 years agoAdd extra debug print statement to tls.js
Ryan Dahl [Thu, 24 Feb 2011 00:19:41 +0000 (16:19 -0800)]
Add extra debug print statement to tls.js

13 years agofix process.on edge case with signal event
cloudhead [Tue, 22 Feb 2011 00:31:01 +0000 (19:31 -0500)]
fix process.on edge case with signal event

When adding a listener for a signal event, removing it, and
adding it back again, it triggers a condition with an
undefined variable.

13 years agoimprove hello-world example on website
Ryan Dahl [Wed, 23 Feb 2011 20:56:50 +0000 (12:56 -0800)]
improve hello-world example on website

13 years agoAdd TODO item
Ryan Dahl [Wed, 23 Feb 2011 12:43:13 +0000 (04:43 -0800)]
Add TODO item

13 years agoAdd example to TTY documentation
Ryan Dahl [Sun, 20 Feb 2011 21:53:40 +0000 (13:53 -0800)]
Add example to TTY documentation

13 years agoDocument path.existsSync()
Ryan Dahl [Sun, 20 Feb 2011 21:11:53 +0000 (13:11 -0800)]
Document path.existsSync()

Closes GH-677.

13 years agoAdd V8 options to man page
Ryan Dahl [Sun, 20 Feb 2011 04:56:20 +0000 (20:56 -0800)]
Add V8 options to man page

13 years agoNow working on v0.4.2
Ryan Dahl [Sun, 20 Feb 2011 03:06:10 +0000 (19:06 -0800)]
Now working on v0.4.2

13 years agoBump version to v0.4.1 v0.4.1
Ryan Dahl [Sun, 20 Feb 2011 02:45:34 +0000 (18:45 -0800)]
Bump version to v0.4.1

13 years agoTLS sockets should not be writable after 'end'
Ryan Dahl [Sun, 20 Feb 2011 01:51:32 +0000 (17:51 -0800)]
TLS sockets should not be writable after 'end'

Closes GH-694.

13 years agotest-tls-securepair-server: don't shutdown stdout
Ryan Dahl [Sun, 20 Feb 2011 00:56:56 +0000 (16:56 -0800)]
test-tls-securepair-server: don't shutdown stdout

13 years agoCloses GH-687 Don't read fs read stream if not open
isaacs [Fri, 18 Feb 2011 01:38:36 +0000 (17:38 -0800)]
Closes GH-687 Don't read fs read stream if not open

13 years agoFix os.cpus() on cygwin
Brian White [Sat, 19 Feb 2011 00:02:16 +0000 (19:02 -0500)]
Fix os.cpus() on cygwin

13 years agoAdd startup memory script to benchmarks
Ryan Dahl [Fri, 18 Feb 2011 22:01:04 +0000 (14:01 -0800)]
Add startup memory script to benchmarks

13 years agoRemove test-http-eof-before-eom - wasn't testing anything important
Ryan Dahl [Fri, 18 Feb 2011 19:30:52 +0000 (11:30 -0800)]
Remove test-http-eof-before-eom - wasn't testing anything important

13 years agoUse console.error in test-timers
Ryan Dahl [Fri, 18 Feb 2011 19:20:42 +0000 (11:20 -0800)]
Use console.error in test-timers

In attempt to understand buildbot failures.

13 years agocmake: dtrace support.
Tom Hughes [Fri, 11 Feb 2011 23:02:55 +0000 (17:02 -0600)]
cmake: dtrace support.

13 years agocmake: Add gdbjit and oprofile options.
Tom Hughes [Sat, 12 Feb 2011 02:52:42 +0000 (20:52 -0600)]
cmake: Add gdbjit and oprofile options.

13 years agocmake: cleanup.
Tom Hughes [Fri, 11 Feb 2011 23:51:27 +0000 (17:51 -0600)]
cmake: cleanup.

13 years agocmake: Fix mac snow leopard build.
Tom Hughes [Fri, 11 Feb 2011 23:44:01 +0000 (17:44 -0600)]
cmake: Fix mac snow leopard build.

13 years agocmake: set pre and post memcheck commands.
Tom Hughes [Fri, 24 Dec 2010 01:14:08 +0000 (19:14 -0600)]
cmake: set pre and post memcheck commands.

We need to clear out and re-create the tmp directory when running
valgrind just like for the normal test run.

13 years agopackage.json main as indexed subdir
isaacs [Thu, 17 Feb 2011 20:00:39 +0000 (12:00 -0800)]
package.json main as indexed subdir

Closes GH-686.

13 years agoHTTP Agent sockets should not reconnect on error
Ryan Dahl [Fri, 18 Feb 2011 18:05:31 +0000 (10:05 -0800)]
HTTP Agent sockets should not reconnect on error

Closes GH-684.

13 years agoHTTP Agent should not die on evil server
Ryan Dahl [Fri, 18 Feb 2011 08:35:39 +0000 (00:35 -0800)]
HTTP Agent should not die on evil server

Closes GH-680.

13 years agoAdd failing test for broken HTTP responses with extra bytes.
Matt Ranney [Fri, 18 Feb 2011 06:41:13 +0000 (20:41 -1000)]
Add failing test for broken HTTP responses with extra bytes.

For GH-680.

13 years agoAdd more broken tests
Ryan Dahl [Fri, 18 Feb 2011 05:04:51 +0000 (21:04 -0800)]
Add more broken tests

13 years agoInstall node.d in the correct place
Ryan Dahl [Thu, 17 Feb 2011 19:07:19 +0000 (11:07 -0800)]
Install node.d in the correct place

13 years agoFix test runner bug on windows
Bert Belder [Thu, 17 Feb 2011 03:26:00 +0000 (04:26 +0100)]
Fix test runner bug on windows

13 years agoMake libev work on MinGW again
Bert Belder [Thu, 17 Feb 2011 03:06:41 +0000 (04:06 +0100)]
Make libev work on MinGW again

13 years agoAutodetect no-strict-aliasing, propagate toolchain option to SCons
Bert Belder [Thu, 17 Feb 2011 02:15:24 +0000 (03:15 +0100)]
Autodetect no-strict-aliasing, propagate toolchain option to SCons

BUG=v8:884

13 years agoMove test-tls-throttle to pummel
Ryan Dahl [Thu, 17 Feb 2011 02:12:08 +0000 (18:12 -0800)]
Move test-tls-throttle to pummel

13 years agoTLS: Make _cycle reentrant.
Ryan Dahl [Thu, 17 Feb 2011 02:09:43 +0000 (21:09 -0500)]
TLS: Make _cycle reentrant.

13 years agoMake test-http-curl-chunk-problem more portable
Ryan Dahl [Wed, 16 Feb 2011 21:16:44 +0000 (13:16 -0800)]
Make test-http-curl-chunk-problem more portable

Use 'openssl sha1' instead of 'shasum'

13 years agoRemove artificial timeout from test-https-large-response
Ryan Dahl [Wed, 16 Feb 2011 20:22:45 +0000 (12:22 -0800)]
Remove artificial timeout from test-https-large-response

13 years agoUpgrade libev to 4.4
Ryan Dahl [Wed, 16 Feb 2011 20:07:58 +0000 (12:07 -0800)]
Upgrade libev to 4.4

13 years agoV8 Cygwin support
Bert Belder [Wed, 16 Feb 2011 18:55:40 +0000 (19:55 +0100)]
V8 Cygwin support

13 years agoUpgrade V8 to 3.1.5
Ryan Dahl [Wed, 16 Feb 2011 16:38:33 +0000 (08:38 -0800)]
Upgrade V8 to 3.1.5

13 years agoMinGW: OpenSSL support
Bert Belder [Wed, 16 Feb 2011 04:09:02 +0000 (05:09 +0100)]
MinGW: OpenSSL support

13 years agohttps was missing 'end' event sometimes
Ryan Dahl [Wed, 16 Feb 2011 00:45:54 +0000 (16:45 -0800)]
https was missing 'end' event sometimes

Closes GH-671.

13 years agoFixed null signal preservation
Tj Holowaychuk [Tue, 15 Feb 2011 17:40:41 +0000 (09:40 -0800)]
Fixed null signal preservation

Closes GH-674.

13 years agoDisable test-tls-large-push, taking too long
Ryan Dahl [Tue, 15 Feb 2011 22:06:23 +0000 (14:06 -0800)]
Disable test-tls-large-push, taking too long

13 years agoRefactor fs.open parameter handling
Felix Geisendörfer [Tue, 15 Feb 2011 13:47:30 +0000 (08:47 -0500)]
Refactor fs.open parameter handling

Improvements:
* Removes an unnecessary variable
* Avoids having two variables with the same name
* Avoids re-declaring an existing parameter
* Removes an unnecessary ternary operator
* Avoid an inline short-circuit expression for greater clarity.

13 years agoCorrect fs.open API documentation
Felix Geisendörfer [Tue, 15 Feb 2011 13:41:17 +0000 (08:41 -0500)]
Correct fs.open API documentation

The fact that the mode parameter is optional for fs.open and
fs.openSync was not documented.

13 years agoFix: fs.open callback did not fire
Felix Geisendörfer [Tue, 15 Feb 2011 13:30:58 +0000 (08:30 -0500)]
Fix: fs.open callback did not fire

Problem: Omitting the mode parameter causes the provided callback
parameter to never fire. This was originally fixed in 6078c37b and
later broken in 5f2e9093.

Solution: Overwriting the value of a parameter also overwrites the
reference in the arguments object. This patch works arround this
fact by not touching the mode parameter until a reference to the
callback has been established.

13 years agoImprove V8 support for Cygwin
Bert Belder [Tue, 15 Feb 2011 19:48:05 +0000 (20:48 +0100)]
Improve V8 support for Cygwin

Should re-enable crankshaft; can build w/ snapshot again.

13 years agodefault to port 80 for http.request
Ryan Dahl [Tue, 15 Feb 2011 18:13:09 +0000 (10:13 -0800)]
default to port 80 for http.request

13 years agoescape chars on man page
Ryan Dahl [Tue, 15 Feb 2011 02:37:43 +0000 (18:37 -0800)]
escape chars on man page

13 years agofix doc
Ryan Dahl [Tue, 15 Feb 2011 02:35:34 +0000 (18:35 -0800)]
fix doc

thanks Toshihiro

13 years agoAdd script for running V8 benchmarks
Ryan Dahl [Tue, 15 Feb 2011 01:26:54 +0000 (17:26 -0800)]
Add script for running V8 benchmarks

13 years agoFix for DNS fail in HTTP request
Richard Rodger [Thu, 10 Feb 2011 10:57:15 +0000 (10:57 +0000)]
Fix for DNS fail in HTTP request

Closes GH-653.

13 years agoMake the repl respect node_modules folders.
isaacs [Fri, 11 Feb 2011 23:53:22 +0000 (15:53 -0800)]
Make the repl respect node_modules folders.

This is important so that in the future, this will work:

    $ cd ~/dev/js/some-project
    $ npm install redis
    $ node
    > require.resolve('redis')
    '/Users/isaacs/dev/js/some-project/node_modules/redis/index.js'

13 years agoFixed field merging with progressive fields on writeHead()
Tj Holowaychuk [Fri, 11 Feb 2011 00:29:34 +0000 (16:29 -0800)]
Fixed field merging with progressive fields on writeHead()

13 years agoAdd newline to platform-cygwin.cc
Ryan Dahl [Mon, 14 Feb 2011 17:36:28 +0000 (09:36 -0800)]
Add newline to platform-cygwin.cc

13 years agoAdd http client to v0.4 announcement
Ryan Dahl [Thu, 10 Feb 2011 12:58:33 +0000 (04:58 -0800)]
Add http client to v0.4 announcement

13 years agoNow working on v0.4.1
Ryan Dahl [Thu, 10 Feb 2011 12:58:54 +0000 (04:58 -0800)]
Now working on v0.4.1

13 years agoBump version to v0.4.0 v0.4.0
Ryan Dahl [Thu, 10 Feb 2011 09:45:15 +0000 (01:45 -0800)]
Bump version to v0.4.0

13 years agoAdd support for mutable/implicit headers for http.
Tim Caswell [Thu, 10 Feb 2011 10:18:13 +0000 (02:18 -0800)]
Add support for mutable/implicit headers for http.

This works for both ServerResponse and ClientRequest.
Adds three new methods as a couple properties to to OutgoingMessage objects.
Tests by Charlie Robbins.

Change-Id: Ib6f3829798e8f11dd2b6136e61df254f1564807e

13 years agoTLS: CRL support
Theo Schlossnagle [Tue, 23 Nov 2010 18:00:42 +0000 (13:00 -0500)]
TLS: CRL support

Needs more tests.

13 years agoAdd 'pipe' event
Mikeal Rogers [Thu, 10 Feb 2011 07:02:51 +0000 (23:02 -0800)]
Add 'pipe' event

13 years agoFollow-up fix for v8 cygwin build
Bert Belder [Thu, 10 Feb 2011 04:24:39 +0000 (05:24 +0100)]
Follow-up fix for v8 cygwin build

13 years agoV8 cygwin support
Bert Belder [Thu, 10 Feb 2011 03:02:59 +0000 (04:02 +0100)]
V8 cygwin support

13 years agofix verifier.verify() docs
Ryan Dahl [Thu, 10 Feb 2011 03:07:17 +0000 (19:07 -0800)]
fix verifier.verify() docs

Thanks Sitelier. Closes GH-651.

13 years agoNew DTrace probes from CA team
Ryan Dahl [Thu, 10 Feb 2011 02:50:26 +0000 (18:50 -0800)]
New DTrace probes from CA team

13 years agoNew keys, agent1-cert.pem was expired
Ryan Dahl [Thu, 10 Feb 2011 02:10:55 +0000 (18:10 -0800)]
New keys, agent1-cert.pem was expired

13 years agoTLS: handle cert chains
Ryan Dahl [Thu, 10 Feb 2011 01:51:05 +0000 (17:51 -0800)]
TLS: handle cert chains

13 years agoEdit module docs
Ryan Dahl [Thu, 10 Feb 2011 01:48:22 +0000 (17:48 -0800)]
Edit module docs

13 years agoDocument module loading
isaacs [Wed, 9 Feb 2011 21:56:59 +0000 (13:56 -0800)]
Document module loading

13 years agoWorkaround for V8 bug 884
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884

See http://code.google.com/p/v8/issues/detail?id=884

13 years agoBetter assert in the node_modules tests
isaacs [Wed, 9 Feb 2011 21:52:29 +0000 (13:52 -0800)]
Better assert in the node_modules tests

13 years agonode_modules module lookup, +docs and test.
isaacs [Wed, 9 Feb 2011 21:28:30 +0000 (13:28 -0800)]
node_modules module lookup, +docs and test.

13 years agoTLS: Don't give up if you can't write 0 bytes
Ryan Dahl [Wed, 9 Feb 2011 21:27:15 +0000 (13:27 -0800)]
TLS: Don't give up if you can't write 0 bytes