isaacs [Tue, 10 Jan 2012 20:07:30 +0000 (12:07 -0800)]
zlib binding cleanup
* Add assert to prevent parallel writes
* Embed request object instead of using new/delete
* Remove unnecessary WorkReqWrap in favor of uv_work_t
* Use container_of instead of req->data
Along with
2d8af39accc6e1a863aa60ed80289508f3df50e8 and
0ad2717fd88e5ddd28a1c245c78b37bfe9aa4197, this should Fix #2504.
Ryan Dahl [Tue, 10 Jan 2012 20:13:48 +0000 (12:13 -0800)]
Use .jpg instead of .bmp for .msi
smaller.
Ben Noordhuis [Tue, 10 Jan 2012 19:54:40 +0000 (20:54 +0100)]
Make sure that zlib contexts are not garbage collected when busy
Bert Belder [Tue, 10 Jan 2012 19:51:45 +0000 (20:51 +0100)]
Fix memory leak in node_zlib
Ryan Dahl [Mon, 9 Jan 2012 23:29:15 +0000 (15:29 -0800)]
Fix #2473
Tested in production.
See also http://code.google.com/p/v8/issues/detail?id=1889
Ben Noordhuis [Mon, 9 Jan 2012 19:42:11 +0000 (20:42 +0100)]
child_process: fix segfault after failed spawn
The process handle is uninitialized when uv_spawn() fails so don't export the
handle to JS land when that happens. Attempts to close the uninitialized handle
resulted in segmentation faults and memory corruption.
Fixes #2481.
Ben Noordhuis [Mon, 9 Jan 2012 19:39:06 +0000 (20:39 +0100)]
handle_wrap: guard against uninitialized handle or double close
Ben Noordhuis [Mon, 9 Jan 2012 14:45:51 +0000 (15:45 +0100)]
uv: upgrade to 803f5a0
Ryunosuke SATO [Sun, 8 Jan 2012 15:53:17 +0000 (00:53 +0900)]
events: fix checking max listeners with `1`
Fixes #2490.
Ben Noordhuis [Sun, 8 Jan 2012 23:45:19 +0000 (00:45 +0100)]
Avoid unnecessary buffer to string conversion.
Speeds up the benchmark below by about 680% (0.5s versus 3.4s on my Core 2 Duo).
var crypto = require('crypto');
var hash = crypto.createHash('sha1');
var data = new Buffer(1024);
for (var i = 0; i < 128 * 1024; ++i) hash.update(data);
Fixes #2494.
Ben Noordhuis [Sun, 8 Jan 2012 20:17:28 +0000 (21:17 +0100)]
build: honour the PYTHON environment variable
Overrides the path to the python binary. Defaults to `python`.
koichik [Sat, 7 Jan 2012 06:51:51 +0000 (07:51 +0100)]
docs: fix ChangeLog
koichik [Sat, 7 Jan 2012 05:44:35 +0000 (06:44 +0100)]
docs: small changes.
isaacs [Sat, 7 Jan 2012 01:36:39 +0000 (17:36 -0800)]
Now working on v0.6.8
isaacs [Thu, 5 Jan 2012 23:44:04 +0000 (15:44 -0800)]
2012.01.06, Version 0.6.7 (stable)
* V8 hash collision fix (Breaks MIPS) (Bert Belder, Erik Corry)
* Upgrade V8 to 3.6.6.15
* Upgrade npm to 1.1.0-beta-10 (isaacs)
* many doc updates (Ben Noordhuis, Jeremy Martin, koichik, Dave Irvine,
Seong-Rak Choi, Shannen, Adam Malcontenti-Wilson, koichik)
* Fix segfault in node_http_parser.cc
* dgram, timers: fix memory leaks (Ben Noordhuis, Yoshihiro Kukuchi)
* repl: fix repl.start not passing the `ignoreUndefined` arg (Damon Oehlman)
* #1980: Socket.pause null reference when called on a closed Stream (koichik)
* #2263: XMLHttpRequest piped in a writable file stream hang (koichik)
* #2069: http resource leak (koichik)
* buffer.readInt global pollution fix (Phil Sung)
* timers: fix performance regression (Ben Noordhuis)
* #2308, #2246: node swallows openssl error on request (koichik)
* #2114: timers: remove _idleTimeout from item in .unenroll() (James Hartig)
* #2379: debugger: Request backtrace w/o refs (Fedor Indutny)
* simple DTrace ustack helper (Dave Pacheco)
* crypto: rewrite HexDecode without snprintf (Roman Shtylman)
* crypto: don't ignore DH init errors (Ben Noordhuis)
isaacs [Sat, 7 Jan 2012 00:30:46 +0000 (16:30 -0800)]
Remove snapshot from Mac binary build
Ryan Dahl [Sat, 7 Jan 2012 00:20:45 +0000 (16:20 -0800)]
support nosnapshot in vcbuild.bat
Ryan Dahl [Fri, 6 Jan 2012 20:00:36 +0000 (12:00 -0800)]
Revert "crypto: add SecureContext.clearOptions() method"
API addition needs to go in master. Also openssl-0.9.8k doesn't have
SSL_CTX_clear_options().
This reverts commit
6f8839d2ac362ced42235a34a023af5e2c656501.
Ryan Dahl [Fri, 6 Jan 2012 18:22:18 +0000 (10:22 -0800)]
fix test-sys for hash randomization
broken in
4a899c92742583ca9e0bb7d16e09a66b08c9d033
Bert Belder [Fri, 6 Jan 2012 16:02:01 +0000 (17:02 +0100)]
Land hash collision fix for V8 3.6 by Erik Corry.
- If V8 snapshots are enabled then the hash is only randomized at build time.
- Breaks MIPS
---
Backport hash collision workaround to 3.6.
This is made up of 9956, 10351, 10338 and 10330.
This change bakes the string hash key into the snapshot, so
it is determined at build time for shapshot configs.
Review URL: http://codereview.chromium.org/9124004
koichik [Thu, 5 Jan 2012 11:50:03 +0000 (20:50 +0900)]
http: fix ServerResponse does not emit 'close'
Refs #2453.
isaacs [Wed, 4 Jan 2012 23:09:13 +0000 (15:09 -0800)]
npm@1.1.0-beta-10
Ben Noordhuis [Thu, 5 Jan 2012 15:44:11 +0000 (16:44 +0100)]
docs: mention that python 2.6 or 2.7 is required
koichik [Thu, 5 Jan 2012 08:43:00 +0000 (17:43 +0900)]
http: use `self` insted of `this`
Ryan Dahl [Wed, 4 Jan 2012 19:20:50 +0000 (11:20 -0800)]
Update address in CLA
Ryan Dahl [Fri, 30 Dec 2011 00:06:14 +0000 (16:06 -0800)]
Potential fix for #2438
- Save StringPtr if the header hasn't been completely received yet after one
packet.
- Add one to num_fields and num_values. They were actually one less than the
number of fields and values.
- Remove always_inline makes debugging difficult, and has negligible
performance benefits.
Ryan Dahl [Wed, 4 Jan 2012 01:14:58 +0000 (17:14 -0800)]
Add another test to test-http-parser-bad-ref.js demoing #2438
Ben Noordhuis [Mon, 2 Jan 2012 11:02:05 +0000 (12:02 +0100)]
crypto: add SecureContext.clearOptions() method
SecureContext.setOptions() is backed by SSL_CTX_set_options() which, contrary to
what the name suggests, is additive: it doesn't set options, it adds them to the
already active options.
Hence the need for SecureContext.clearOptions(), which lets you unset active
options.
Ben Noordhuis [Mon, 2 Jan 2012 09:48:33 +0000 (10:48 +0100)]
test: add #2293 regression test
Creating a file event watcher with fs.watch({persistent:false}) should not block
the event loop.
Ben Noordhuis [Mon, 2 Jan 2012 09:43:10 +0000 (10:43 +0100)]
uv: upgrade to 38fc6ad
Ben Noordhuis [Sun, 1 Jan 2012 22:36:03 +0000 (23:36 +0100)]
docs: fix typo on community page
isaacs [Tue, 8 Nov 2011 00:10:21 +0000 (16:10 -0800)]
Fix #2034 repl message for .clear when useGlobal=true
Ben Noordhuis [Sat, 31 Dec 2011 02:16:04 +0000 (03:16 +0100)]
test: don't create temp files in fixtures dir
Ben Noordhuis [Fri, 30 Dec 2011 01:03:08 +0000 (02:03 +0100)]
bench: add /echo endpoint to http_simple
Copies the POST request data verbatim into the response body.
Ryan Dahl [Thu, 29 Dec 2011 21:36:13 +0000 (13:36 -0800)]
Add test for #2438
Unfortunately valgrind must be used to see the bad read. It would be nice if
we could improve this test to cause a segfault.
Ben Noordhuis [Thu, 29 Dec 2011 13:57:53 +0000 (14:57 +0100)]
dgram: fix memory leak in error path
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
Jeremy Martin [Wed, 28 Dec 2011 20:14:30 +0000 (15:14 -0500)]
docs: tiny typo in http.markdown
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.
Andreas Madsen [Wed, 28 Dec 2011 16:13:28 +0000 (17:13 +0100)]
test: remove internet test from test/simple/
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.
koichik [Tue, 27 Dec 2011 08:43:58 +0000 (17:43 +0900)]
docs: fix docs to not suggest variable leaks
Fixes #2106.
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.
Ben Noordhuis [Mon, 26 Dec 2011 22:30:25 +0000 (23:30 +0100)]
docs: document http.Server.close() semantics
koichik [Tue, 29 Nov 2011 11:55:05 +0000 (20:55 +0900)]
http: fix resource leak
Fixes #2069
Ben Noordhuis [Mon, 26 Dec 2011 02:27:28 +0000 (03:27 +0100)]
win: fix mismatched new[]/delete
Ben Noordhuis [Mon, 26 Dec 2011 02:23:34 +0000 (03:23 +0100)]
bench: fix use of fd after close
Ryan Dahl [Fri, 23 Dec 2011 23:10:06 +0000 (15:10 -0800)]
Change 'real example' in addon doc
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.
Phil Sung [Thu, 22 Dec 2011 01:38:12 +0000 (17:38 -0800)]
buffer: don't pollute global namespace in buffer.readInt*
Ben Noordhuis [Thu, 22 Dec 2011 16:28:23 +0000 (17:28 +0100)]
test: ensure callback is executed
Ju-yeong Park [Thu, 22 Dec 2011 02:32:27 +0000 (11:32 +0900)]
net: raise exception when the socket is closed
Dave Irvine [Thu, 22 Dec 2011 14:39:53 +0000 (14:39 +0000)]
docs: document 'encoding' arg of hash.update()
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.
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.
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.
Ryan Dahl [Wed, 21 Dec 2011 20:38:07 +0000 (12:38 -0800)]
Upgrade V8 to 3.6.6.15
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.
koichik [Sat, 17 Dec 2011 17:09:16 +0000 (02:09 +0900)]
tls: Fix node swallows openssl error on request
Fixes #2308.
Fixes #2246.
Ben Noordhuis [Wed, 21 Dec 2011 14:01:07 +0000 (15:01 +0100)]
tls: remove duplicate assignment
Bert Belder [Tue, 20 Dec 2011 17:15:22 +0000 (17:15 +0000)]
Remove unnecessary statement
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.
Fedor Indutny [Fri, 9 Dec 2011 08:41:48 +0000 (14:41 +0600)]
debugger: Request backtrace w/o refs, see #1745
Fixes #2379
Ryan Dahl [Mon, 19 Dec 2011 06:54:15 +0000 (22:54 -0800)]
add links to package manager on download page
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).
Ben Noordhuis [Sun, 18 Dec 2011 21:28:30 +0000 (22:28 +0100)]
uv: upgrade to feb267e
Felix Geisendörfer [Sun, 18 Dec 2011 12:35:31 +0000 (13:35 +0100)]
Use common.PORT to avoid conflicts
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); )
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.
Adam Malcontenti-Wilson [Wed, 14 Dec 2011 13:53:31 +0000 (00:53 +1100)]
docs: Make logo a link back to homepage
Fixes #2332.
isaacs [Sat, 17 Dec 2011 02:04:39 +0000 (18:04 -0800)]
add 'make test-npm'
isaacs [Sat, 17 Dec 2011 01:24:25 +0000 (17:24 -0800)]
npm 1.1.0-beta-7
Andreas Madsen [Fri, 9 Dec 2011 12:00:40 +0000 (13:00 +0100)]
jslint
Fixes #2306
Dave Pacheco [Fri, 16 Dec 2011 00:51:33 +0000 (16:51 -0800)]
simple DTrace ustack helper
Igor Zinkovsky [Fri, 16 Dec 2011 19:01:06 +0000 (11:01 -0800)]
document mode argument for fs.symlink
Ben Noordhuis [Fri, 16 Dec 2011 14:56:41 +0000 (15:56 +0100)]
uv: upgrade to d808cf9
koichik [Fri, 16 Dec 2011 09:20:27 +0000 (18:20 +0900)]
doc: correct http.Server.listen()
Fixes #2325.
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.
Ben Noordhuis [Thu, 15 Dec 2011 16:39:11 +0000 (17:39 +0100)]
crypto: don't ignore DH init errors
Ryan Dahl [Thu, 15 Dec 2011 20:50:48 +0000 (12:50 -0800)]
use rsync instead of scp to upload website
isaacs [Thu, 15 Dec 2011 19:08:28 +0000 (11:08 -0800)]
now working on 0.6.7
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)
isaacs [Thu, 15 Dec 2011 16:32:07 +0000 (08:32 -0800)]
npm 1.1.0-beta-4
Ryan Dahl [Thu, 15 Dec 2011 02:18:47 +0000 (18:18 -0800)]
Fix doc generation for new website
Ryan Dahl [Thu, 15 Dec 2011 00:33:07 +0000 (16:33 -0800)]
Upgrade V8 to 3.6.6.14
isaacs [Thu, 15 Dec 2011 00:27:01 +0000 (16:27 -0800)]
npm 1.1.0-beta-3
Ryan Dahl [Wed, 14 Dec 2011 23:19:03 +0000 (15:19 -0800)]
Add docs.nodejitsu.com to community page
isaacs [Wed, 14 Dec 2011 02:53:02 +0000 (18:53 -0800)]
npm 1.1.0-beta-2
isaacs [Tue, 13 Dec 2011 19:11:14 +0000 (11:11 -0800)]
Properly support old IE DOM methods.
Ryan Dahl [Wed, 14 Dec 2011 19:11:32 +0000 (11:11 -0800)]
Add changelog link to website
Ben Noordhuis [Wed, 14 Dec 2011 12:28:51 +0000 (13:28 +0100)]
util: add internal function _deprecationWarning()
Ben Noordhuis [Wed, 14 Dec 2011 02:39:20 +0000 (03:39 +0100)]
test: binding twice to the same port should raise an error
Ben Noordhuis [Wed, 14 Dec 2011 02:38:41 +0000 (03:38 +0100)]
.gitignore core and vgcore files
Ben Noordhuis [Wed, 14 Dec 2011 01:56:23 +0000 (02:56 +0100)]
crypto: deduplicate encoding parsing logic
Ben Noordhuis [Wed, 14 Dec 2011 01:32:07 +0000 (02:32 +0100)]
crypto: deduplicate decipher logic
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.
Ben Noordhuis [Tue, 13 Dec 2011 17:08:18 +0000 (18:08 +0100)]
crypto: fix memory leaks in PBKDF2 error path
Ben Noordhuis [Tue, 13 Dec 2011 15:30:53 +0000 (16:30 +0100)]
fs: handle fractional or NaN ReadStream buffer size
Fixes #2320.
Ben Noordhuis [Tue, 13 Dec 2011 15:02:14 +0000 (16:02 +0100)]
fs: fix typo in error message
Ryan Dahl [Mon, 12 Dec 2011 22:40:00 +0000 (14:40 -0800)]
make jobs the last nav
fixes display bug