platform/upstream/nodejs.git
12 years agodgram: fix memory leak in error path
Ben Noordhuis [Thu, 29 Dec 2011 13:57:53 +0000 (14:57 +0100)]
dgram: fix memory leak in error path

12 years agorepl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor
Damon Oehlman [Thu, 29 Dec 2011 02:15:49 +0000 (12:15 +1000)]
repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor

12 years agodocs: tiny typo in http.markdown
Jeremy Martin [Wed, 28 Dec 2011 20:14:30 +0000 (15:14 -0500)]
docs: tiny typo in http.markdown

12 years agoRevert "Add HandleScope to http-parser binding"
Ryan Dahl [Wed, 28 Dec 2011 22:08:19 +0000 (14:08 -0800)]
Revert "Add HandleScope to http-parser binding"

This commit did not actually fix the production crashes.

This reverts commit 73cf8e82e768af870964d6f3375ab758e774165c.

12 years agotest: remove internet test from test/simple/
Andreas Madsen [Wed, 28 Dec 2011 16:13:28 +0000 (17:13 +0100)]
test: remove internet test from test/simple/

12 years agonet: fix Socket.pause null reference when called on a closed Stream
koichik [Wed, 28 Dec 2011 06:13:57 +0000 (15:13 +0900)]
net: fix Socket.pause null reference when called on a closed Stream

Fixes #1980.

12 years agodocs: fix docs to not suggest variable leaks
koichik [Tue, 27 Dec 2011 08:43:58 +0000 (17:43 +0900)]
docs: fix docs to not suggest variable leaks

Fixes #2106.

12 years agohttp: fix XMLHttpRequest piped in a writable file stream hangs next request
koichik [Tue, 27 Dec 2011 08:42:37 +0000 (17:42 +0900)]
http: fix XMLHttpRequest piped in a writable file stream hangs next request

Fixes #2263.

12 years agodocs: document http.Server.close() semantics
Ben Noordhuis [Mon, 26 Dec 2011 22:30:25 +0000 (23:30 +0100)]
docs: document http.Server.close() semantics

12 years agohttp: fix resource leak
koichik [Tue, 29 Nov 2011 11:55:05 +0000 (20:55 +0900)]
http: fix resource leak

Fixes #2069

12 years agowin: fix mismatched new[]/delete
Ben Noordhuis [Mon, 26 Dec 2011 02:27:28 +0000 (03:27 +0100)]
win: fix mismatched new[]/delete

12 years agobench: fix use of fd after close
Ben Noordhuis [Mon, 26 Dec 2011 02:23:34 +0000 (03:23 +0100)]
bench: fix use of fd after close

12 years agoChange 'real example' in addon doc
Ryan Dahl [Fri, 23 Dec 2011 23:10:06 +0000 (15:10 -0800)]
Change 'real example' in addon doc

12 years agoAdd another nextTick benchmark
Bert Belder [Fri, 23 Dec 2011 02:09:36 +0000 (03:09 +0100)]
Add another nextTick benchmark

It tests how many iterations the event loop can make per second.

12 years agobuffer: don't pollute global namespace in buffer.readInt*
Phil Sung [Thu, 22 Dec 2011 01:38:12 +0000 (17:38 -0800)]
buffer: don't pollute global namespace in buffer.readInt*

12 years agotest: ensure callback is executed
Ben Noordhuis [Thu, 22 Dec 2011 16:28:23 +0000 (17:28 +0100)]
test: ensure callback is executed

12 years agonet: raise exception when the socket is closed
Ju-yeong Park [Thu, 22 Dec 2011 02:32:27 +0000 (11:32 +0900)]
net: raise exception when the socket is closed

12 years agodocs: document 'encoding' arg of hash.update()
Dave Irvine [Thu, 22 Dec 2011 14:39:53 +0000 (14:39 +0000)]
docs: document 'encoding' arg of hash.update()

12 years agotimers: fix performance regression
Ben Noordhuis [Thu, 22 Dec 2011 13:42:20 +0000 (14:42 +0100)]
timers: fix performance regression

Fix a 5-7% performance regression in the http_simple benchmark that was
introduced by the following commits:

  348d8cd timers: remove _idleTimeout from item in .unenroll()
  f2f3028 timers: fix memory leak in setTimeout
  098fef6 timers: remember extra setTimeout() arguments when timeout==0

Fix suggested by Bert Belder.

12 years agodocs: fix javascript error on document page
Seong-Rak Choi [Wed, 21 Dec 2011 04:25:56 +0000 (13:25 +0900)]
docs: fix javascript error on document page

`highlight()` is called twice. It causes following javascript error.
> Uncaught Found <pre> element with class="sh_sourcecode",
> but no such language exists

Fixes #2393.

12 years agodocs: use "Level 1" HTML5 features
Shannen [Tue, 20 Dec 2011 04:57:45 +0000 (15:57 +1100)]
docs: use "Level 1" HTML5 features

Since we're using an HTML doctype we might as well use "Level 1" HTML5 features.
See more: http://mathiasbynens.be/notes/html5-levels#level-1

Fixes #2386.

12 years agoUpgrade V8 to 3.6.6.15
Ryan Dahl [Wed, 21 Dec 2011 20:38:07 +0000 (12:38 -0800)]
Upgrade V8 to 3.6.6.15

12 years agoAdd HandleScope to http-parser binding
Ryan Dahl [Wed, 21 Dec 2011 20:01:39 +0000 (12:01 -0800)]
Add HandleScope to http-parser binding

Fixes production crashes. We were not able to reproduce in the test suite.

12 years agotls: Fix node swallows openssl error on request
koichik [Sat, 17 Dec 2011 17:09:16 +0000 (02:09 +0900)]
tls: Fix node swallows openssl error on request

Fixes #2308.
Fixes #2246.

12 years agotls: remove duplicate assignment
Ben Noordhuis [Wed, 21 Dec 2011 14:01:07 +0000 (15:01 +0100)]
tls: remove duplicate assignment

12 years agoRemove unnecessary statement
Bert Belder [Tue, 20 Dec 2011 17:15:22 +0000 (17:15 +0000)]
Remove unnecessary statement

12 years agotimers: remove _idleTimeout from item in .unenroll()
James Hartig [Fri, 2 Dec 2011 08:27:35 +0000 (03:27 -0500)]
timers: remove _idleTimeout from item in .unenroll()

Stops .active() from reactivating the timer.

Fixes #2114.

12 years agodebugger: Request backtrace w/o refs, see #1745
Fedor Indutny [Fri, 9 Dec 2011 08:41:48 +0000 (14:41 +0600)]
debugger: Request backtrace w/o refs, see #1745

Fixes #2379

12 years agoadd links to package manager on download page
Ryan Dahl [Mon, 19 Dec 2011 06:54:15 +0000 (22:54 -0800)]
add links to package manager on download page

12 years agomodule: improve process.dlopen() error messages
Ben Noordhuis [Sun, 18 Dec 2011 21:27:21 +0000 (22:27 +0100)]
module: improve process.dlopen() error messages

On Windows, that is. On Unices, we don't have a good way to translate dlopen()
and dlsym() errors (yet).

12 years agouv: upgrade to feb267e
Ben Noordhuis [Sun, 18 Dec 2011 21:28:30 +0000 (22:28 +0100)]
uv: upgrade to feb267e

12 years agoUse common.PORT to avoid conflicts
Felix Geisendörfer [Sun, 18 Dec 2011 12:35:31 +0000 (13:35 +0100)]
Use common.PORT to avoid conflicts

12 years agotimers: fix memory leak in setTimeout
Yoshihiro Kikuchi [Sun, 18 Dec 2011 00:22:22 +0000 (09:22 +0900)]
timers: fix memory leak in setTimeout

Closing handle is leaked when setTimeout called with arguments which are
1. a callback
2. zero delay
(i.e. setTimeout(function(){}, 0); )

12 years agochild_process: make .send() throw if message is undefined
Ben Noordhuis [Sun, 18 Dec 2011 00:26:00 +0000 (01:26 +0100)]
child_process: make .send() throw if message is undefined

JSON.stringify(undefined) returns "undefined" but JSON.parse() doesn't know how
to parse that.

12 years agodocs: Make logo a link back to homepage
Adam Malcontenti-Wilson [Wed, 14 Dec 2011 13:53:31 +0000 (00:53 +1100)]
docs: Make logo a link back to homepage

Fixes #2332.

12 years agoadd 'make test-npm'
isaacs [Sat, 17 Dec 2011 02:04:39 +0000 (18:04 -0800)]
add 'make test-npm'

12 years agonpm 1.1.0-beta-7
isaacs [Sat, 17 Dec 2011 01:24:25 +0000 (17:24 -0800)]
npm 1.1.0-beta-7

12 years agojslint
Andreas Madsen [Fri, 9 Dec 2011 12:00:40 +0000 (13:00 +0100)]
jslint

Fixes #2306

12 years agosimple DTrace ustack helper
Dave Pacheco [Fri, 16 Dec 2011 00:51:33 +0000 (16:51 -0800)]
simple DTrace ustack helper

12 years agodocument mode argument for fs.symlink
Igor Zinkovsky [Fri, 16 Dec 2011 19:01:06 +0000 (11:01 -0800)]
document mode argument for fs.symlink

12 years agouv: upgrade to d808cf9
Ben Noordhuis [Fri, 16 Dec 2011 14:56:41 +0000 (15:56 +0100)]
uv: upgrade to d808cf9

12 years agodoc: correct http.Server.listen()
koichik [Fri, 16 Dec 2011 09:20:27 +0000 (18:20 +0900)]
doc: correct http.Server.listen()

Fixes #2325.

12 years agocrypto: rewrite HexDecode without snprintf
Roman Shtylman [Thu, 1 Dec 2011 05:41:06 +0000 (00:41 -0500)]
crypto: rewrite HexDecode without snprintf

No need to use snprintf to create a hex string. It creates
more overhead than is needed. This new version is much faster.

12 years agocrypto: don't ignore DH init errors
Ben Noordhuis [Thu, 15 Dec 2011 16:39:11 +0000 (17:39 +0100)]
crypto: don't ignore DH init errors

12 years agouse rsync instead of scp to upload website
Ryan Dahl [Thu, 15 Dec 2011 20:50:48 +0000 (12:50 -0800)]
use rsync instead of scp to upload website

12 years agonow working on 0.6.7
isaacs [Thu, 15 Dec 2011 19:08:28 +0000 (11:08 -0800)]
now working on 0.6.7

12 years ago2011.12.14, Version 0.6.6 (stable) v0.6.6
isaacs [Thu, 15 Dec 2011 00:59:37 +0000 (16:59 -0800)]
2011.12.14, Version 0.6.6 (stable)

* npm update to 1.1.0-beta-4 (Isaac Z. Schlueter)

* cli: fix output of --help (Ben Noordhuis)

* new website

* pause/resume semantics for stdin (Isaac Z. Schlueter)

* Travis CI integration (Maciej Małecki)

* child_process: Fix bug regarding closed stdin (Ben Noordhuis)

* Enable upgrades in MSI. (Igor Zinkovsky)

* net: Fixes memory leak (Ben Noordhuis)

* fs: handle fractional or NaN ReadStream buffer size (Ben Noordhuis)

* crypto: fix memory leaks in PBKDF2 error path (Ben Noordhuis)

12 years agonpm 1.1.0-beta-4
isaacs [Thu, 15 Dec 2011 16:32:07 +0000 (08:32 -0800)]
npm 1.1.0-beta-4

12 years agoFix doc generation for new website
Ryan Dahl [Thu, 15 Dec 2011 02:18:47 +0000 (18:18 -0800)]
Fix doc generation for new website

12 years agoUpgrade V8 to 3.6.6.14
Ryan Dahl [Thu, 15 Dec 2011 00:33:07 +0000 (16:33 -0800)]
Upgrade V8 to 3.6.6.14

12 years agonpm 1.1.0-beta-3
isaacs [Thu, 15 Dec 2011 00:27:01 +0000 (16:27 -0800)]
npm 1.1.0-beta-3

12 years agoAdd docs.nodejitsu.com to community page
Ryan Dahl [Wed, 14 Dec 2011 23:19:03 +0000 (15:19 -0800)]
Add docs.nodejitsu.com to community page

12 years agonpm 1.1.0-beta-2
isaacs [Wed, 14 Dec 2011 02:53:02 +0000 (18:53 -0800)]
npm 1.1.0-beta-2

12 years agoProperly support old IE DOM methods.
isaacs [Tue, 13 Dec 2011 19:11:14 +0000 (11:11 -0800)]
Properly support old IE DOM methods.

12 years agoAdd changelog link to website
Ryan Dahl [Wed, 14 Dec 2011 19:11:32 +0000 (11:11 -0800)]
Add changelog link to website

12 years agoutil: add internal function _deprecationWarning()
Ben Noordhuis [Wed, 14 Dec 2011 12:28:51 +0000 (13:28 +0100)]
util: add internal function _deprecationWarning()

12 years agotest: binding twice to the same port should raise an error
Ben Noordhuis [Wed, 14 Dec 2011 02:39:20 +0000 (03:39 +0100)]
test: binding twice to the same port should raise an error

12 years ago.gitignore core and vgcore files
Ben Noordhuis [Wed, 14 Dec 2011 02:38:41 +0000 (03:38 +0100)]
.gitignore core and vgcore files

12 years agocrypto: deduplicate encoding parsing logic
Ben Noordhuis [Wed, 14 Dec 2011 01:56:23 +0000 (02:56 +0100)]
crypto: deduplicate encoding parsing logic

12 years agocrypto: deduplicate decipher logic
Ben Noordhuis [Wed, 14 Dec 2011 01:32:07 +0000 (02:32 +0100)]
crypto: deduplicate decipher logic

12 years agocrypto: fix memory leak when decrypting empty strings
Ben Noordhuis [Tue, 13 Dec 2011 20:22:15 +0000 (21:22 +0100)]
crypto: fix memory leak when decrypting empty strings

Also fixes a dangling pointer delete[] in the error path.

12 years agocrypto: fix memory leaks in PBKDF2 error path
Ben Noordhuis [Tue, 13 Dec 2011 17:08:18 +0000 (18:08 +0100)]
crypto: fix memory leaks in PBKDF2 error path

12 years agofs: handle fractional or NaN ReadStream buffer size
Ben Noordhuis [Tue, 13 Dec 2011 15:30:53 +0000 (16:30 +0100)]
fs: handle fractional or NaN ReadStream buffer size

Fixes #2320.

12 years agofs: fix typo in error message
Ben Noordhuis [Tue, 13 Dec 2011 15:02:14 +0000 (16:02 +0100)]
fs: fix typo in error message

12 years agomake jobs the last nav
Ryan Dahl [Mon, 12 Dec 2011 22:40:00 +0000 (14:40 -0800)]
make jobs the last nav

fixes display bug

12 years agobetter <br>s
Ryan Dahl [Mon, 12 Dec 2011 22:34:37 +0000 (14:34 -0800)]
better <br>s

12 years agoReorder nav
Ryan Dahl [Mon, 12 Dec 2011 22:20:27 +0000 (14:20 -0800)]
Reorder nav

12 years agoWebsite js/css tweaks
isaacs [Mon, 12 Dec 2011 22:19:14 +0000 (14:19 -0800)]
Website js/css tweaks

Remove jquery
Use HTML5 doctype
Simpler clearfix implementation
Close download dialog with <Esc> key

12 years agonet: check status code in afterWrite
Ben Noordhuis [Mon, 12 Dec 2011 21:45:39 +0000 (13:45 -0800)]
net: check status code in afterWrite

Fixes memory leak and spin on writing to dead fds. This was tested in
production.

12 years agowebsite fixes
Ryan Dahl [Mon, 12 Dec 2011 17:19:30 +0000 (09:19 -0800)]
website fixes

12 years agonew website
Ryan Dahl [Mon, 12 Dec 2011 06:25:42 +0000 (22:25 -0800)]
new website

12 years agoFix MSI generation on VC Express
Igor Zinkovsky [Sat, 10 Dec 2011 00:42:15 +0000 (16:42 -0800)]
Fix MSI generation on VC Express

12 years agoChange artwork in msi
Ryan Dahl [Sat, 10 Dec 2011 01:14:07 +0000 (17:14 -0800)]
Change artwork in msi

12 years agoEnable upgrades in MSI.
Igor Zinkovsky [Thu, 8 Dec 2011 23:00:48 +0000 (15:00 -0800)]
Enable upgrades in MSI.
Fixes #2228.

12 years agodocs: document util.inspect's colors param
Tim Oxley [Thu, 8 Dec 2011 01:15:40 +0000 (11:15 +1000)]
docs: document util.inspect's colors param

12 years agofs: fix fs.watch() segmentation fault
Ben Noordhuis [Wed, 7 Dec 2011 22:19:57 +0000 (23:19 +0100)]
fs: fix fs.watch() segmentation fault

The binding layer failed to initialize the event string if both UV_RENAME and
UV_CHANGE were set.

Fixes #2287.

12 years agobuild: check for libkvm and libexecinfo on all the BSDs
Ben Noordhuis [Wed, 7 Dec 2011 13:33:17 +0000 (14:33 +0100)]
build: check for libkvm and libexecinfo on all the BSDs

12 years agoDeshadow, denamespace variables in node.cc
Ryan Dahl [Wed, 7 Dec 2011 01:00:33 +0000 (17:00 -0800)]
Deshadow, denamespace variables in node.cc

Prep for isolates.

12 years agotest: add missing copyright headers
Ben Noordhuis [Tue, 6 Dec 2011 20:59:25 +0000 (21:59 +0100)]
test: add missing copyright headers

12 years agotest: new test, verify that we don't close and reuse fd 0
Ben Noordhuis [Tue, 6 Dec 2011 20:53:52 +0000 (21:53 +0100)]
test: new test, verify that we don't close and reuse fd 0

12 years agoRemove unused variable.
Ben Noordhuis [Tue, 6 Dec 2011 20:47:30 +0000 (21:47 +0100)]
Remove unused variable.

The file descriptor arg to child_process._forkChild() is not used any more.
Remove it, avoids future confusion.

12 years agouv: upgrade to 0db3274
Ben Noordhuis [Tue, 6 Dec 2011 17:09:43 +0000 (18:09 +0100)]
uv: upgrade to 0db3274

12 years agoApply #2257 fix for Pipe streams as well as TTYs
isaacs [Tue, 6 Dec 2011 01:52:22 +0000 (17:52 -0800)]
Apply #2257 fix for Pipe streams as well as TTYs

12 years agodoc: add Travis CI build status image
Maciej Małecki [Sun, 4 Dec 2011 00:58:49 +0000 (01:58 +0100)]
doc: add Travis CI build status image

12 years agotest: add `.travis.yml` for testing on Travis CI
Maciej Małecki [Sun, 4 Dec 2011 00:23:59 +0000 (01:23 +0100)]
test: add `.travis.yml` for testing on Travis CI

As discussed with @isaacs, build reports will be sent to #libuv IRC
channel. E-mail notifications are turned off so that Travis doesn't
bother committers about failures in forks.

12 years agoFix #2257 pause/resume semantics for stdin
isaacs [Mon, 5 Dec 2011 23:36:45 +0000 (15:36 -0800)]
Fix #2257 pause/resume semantics for stdin

This makes it so that the stdin TTY-wrap stream gets ref'ed on
.resume() and unref'ed on .pause()

The semantics of the names "pause" and "resume" are a bit weird, but the
important thing is that this corrects an API change from 0.4 -> 0.6
which made it impossible to read from stdin multiple times, without
knowing when it might end up being closed.  If no one has it open, this
lets the process die naturally.

LGTM'd by @ry

12 years agoDisable test-setproctitle on darwin
Ryan Dahl [Tue, 6 Dec 2011 00:25:20 +0000 (16:25 -0800)]
Disable test-setproctitle on darwin

12 years agos/NPM/npm/
isaacs [Fri, 2 Dec 2011 02:19:17 +0000 (18:19 -0800)]
s/NPM/npm/

http://npmjs.org/doc/faq.html#If-npm-is-an-acronym-why-is-it-never-capitalized

12 years agoprocess: fix stack overflow when recursively calling process.exit()
Ben Noordhuis [Mon, 5 Dec 2011 21:42:05 +0000 (22:42 +0100)]
process: fix stack overflow when recursively calling process.exit()

12 years agoAdd analytics tracking to docs
Ryan Dahl [Mon, 5 Dec 2011 19:17:57 +0000 (11:17 -0800)]
Add analytics tracking to docs

12 years agocli: fix output of --help
Ben Noordhuis [Mon, 5 Dec 2011 07:42:11 +0000 (08:42 +0100)]
cli: fix output of --help

12 years agotest: create test file in temp dir
Ben Noordhuis [Mon, 5 Dec 2011 05:37:18 +0000 (06:37 +0100)]
test: create test file in temp dir

12 years agouv: upgrade to 34e95d1
Ben Noordhuis [Sun, 4 Dec 2011 12:22:21 +0000 (13:22 +0100)]
uv: upgrade to 34e95d1

12 years agoNow working on Node v0.6.6
Ryan Dahl [Sun, 4 Dec 2011 08:59:16 +0000 (00:59 -0800)]
Now working on Node v0.6.6

12 years agoBump version to v0.6.5 v0.6.5
Ryan Dahl [Sun, 4 Dec 2011 07:18:35 +0000 (23:18 -0800)]
Bump version to v0.6.5

12 years agoRemove superfluous 'new'
Ryan Dahl [Sun, 4 Dec 2011 08:09:02 +0000 (00:09 -0800)]
Remove superfluous 'new'

12 years agoUpgrade V8 to 3.6.6.11
Ryan Dahl [Sun, 4 Dec 2011 07:30:56 +0000 (23:30 -0800)]
Upgrade V8 to 3.6.6.11

12 years agoAdd link to license file on website
Ryan Dahl [Sat, 3 Dec 2011 01:06:05 +0000 (17:06 -0800)]
Add link to license file on website

12 years agoWorkaround: A/V software prevents folder rename
isaacs [Fri, 2 Dec 2011 19:11:25 +0000 (11:11 -0800)]
Workaround: A/V software prevents folder rename

12 years agoUpdate ChangeLog
koichik [Fri, 2 Dec 2011 15:21:55 +0000 (00:21 +0900)]
Update ChangeLog