isaacs [Fri, 27 Jan 2012 01:14:16 +0000 (17:14 -0800)]
Fix #2507 Raise errors less agressively when destroying stdio streams
Also, if an error is already provided, then raise the provided
error, rather than throwing it with a less helpful 'stdout cannot
be closed' message.
This is important for properly handling EPIPEs.
Dan VerWeire [Wed, 25 Jan 2012 17:46:45 +0000 (12:46 -0500)]
test: handle unhandled dgram scenarios
- watch for the death of child processes and fail the test if they all die
- use setTimeout to fail the test if responses are not received and processed in 5000ms
isaacs [Thu, 26 Jan 2012 20:25:51 +0000 (12:25 -0800)]
Update npm to 1.1.0-3
Ben Noordhuis [Thu, 26 Jan 2012 23:53:37 +0000 (00:53 +0100)]
uv: upgrade to 9c76d0d
Fedor Indutny [Tue, 24 Jan 2012 16:45:34 +0000 (22:45 +0600)]
module: fix --debug-brk on symlinked scripts
* fixes #1519
Ben Noordhuis [Mon, 23 Jan 2012 22:52:08 +0000 (23:52 +0100)]
dgram: bring back setTTL()
Ben Noordhuis [Mon, 23 Jan 2012 22:38:25 +0000 (23:38 +0100)]
dgram: bring back setMulticastLoopback()
Ben Noordhuis [Mon, 23 Jan 2012 21:39:49 +0000 (22:39 +0100)]
uv: upgrade to b88bc43
Ben Noordhuis [Mon, 23 Jan 2012 21:38:22 +0000 (22:38 +0100)]
test: fix typos in error messages
Ben Noordhuis [Mon, 23 Jan 2012 21:39:07 +0000 (22:39 +0100)]
test: join multicast group *after* binding
Ben Noordhuis [Mon, 23 Jan 2012 23:04:45 +0000 (00:04 +0100)]
test: remove erroneous dropMembership() call
The socket is not part of any multicast group. Bug wasn't visible until 6999fb3.
Ben Noordhuis [Mon, 23 Jan 2012 20:36:48 +0000 (21:36 +0100)]
dgram: make addMembership() and dropMembership() conform to v0.4 API
- throw on error, don't return an error code
Ben Noordhuis [Mon, 23 Jan 2012 20:28:30 +0000 (21:28 +0100)]
dgram: make setBroadcast() conform to v0.4 API
- don't return a value
Ben Noordhuis [Mon, 23 Jan 2012 20:09:56 +0000 (21:09 +0100)]
dgram: make setMulticastTTL() conform to v0.4 API
- throw if the ttl argument is not a number
- return the ttl argument (not particulary useful but it's what v0.4 did)
Note that the 0 < ttl < 256 check has *not* been reinstated. On Linux, -1 is a
valid argument to setsockopt(IPPROTO_IP, IP_TTL).
isaacs [Mon, 23 Jan 2012 21:53:11 +0000 (13:53 -0800)]
doc: trademark link must be absolute
isaacs [Mon, 23 Jan 2012 21:50:31 +0000 (13:50 -0800)]
doc: Remove default border around logo for MSIE
isaacs [Mon, 23 Jan 2012 10:12:20 +0000 (02:12 -0800)]
doc: Pixel-nudging
isaacs [Mon, 23 Jan 2012 10:07:59 +0000 (02:07 -0800)]
doc: Add images to makefile
isaacs [Mon, 23 Jan 2012 10:07:15 +0000 (02:07 -0800)]
doctool: correct improperly nested ul/li handling
isaacs [Sun, 22 Jan 2012 22:06:17 +0000 (14:06 -0800)]
Add images to doc_assets
Matthew Fitzsimmons [Sun, 22 Jan 2012 04:02:16 +0000 (21:02 -0700)]
Nodejs.org design refresh.
Igor Zinkovsky [Mon, 23 Jan 2012 09:30:56 +0000 (01:30 -0800)]
fix windows build
Igor Zinkovsky [Mon, 23 Jan 2012 09:34:05 +0000 (01:34 -0800)]
upgrade libuv to
edbabe6f83
Ben Noordhuis [Sun, 22 Jan 2012 17:19:10 +0000 (18:19 +0100)]
crypto: silence unused variable warning
`retry` is not used if SSL_PRINT_DEBUG is not defined.
koichik [Sun, 22 Jan 2012 14:23:04 +0000 (23:23 +0900)]
test: fix test/simple/test-net-server-max-connections.js is racey
Fixes #1333.
koichik [Sun, 22 Jan 2012 08:35:28 +0000 (17:35 +0900)]
test: for #2109
Brandon Benvie [Mon, 14 Nov 2011 20:42:14 +0000 (15:42 -0500)]
util: use getOwnPropertyDescripter
Change formatProperty in util.js to use Object.getOwnPropertyDescriptor
instead of __lookup[GS]etter__.
Use the cached value from the descriptor to reduce number of property
lookups from 3 to 1.
Fallback to standard lookup if the descriptor is empty. This doesn't
ever happen with normal JS objects (this function is called only when
the key exists) but apparently does with Node's custom ENV interface.
Fixes: #2109.
koichik [Sun, 22 Jan 2012 05:55:41 +0000 (14:55 +0900)]
http: keep-alive should default with HTTP/1.1 server
As RFC 2616 says we should, assume that servers will provide a persistent
connection by default.
> A significant difference between HTTP/1.1 and earlier versions of
> HTTP is that persistent connections are the default behavior of any
> HTTP connection. That is, unless otherwise indicated, the client
> SHOULD assume that the server will maintain a persistent connection,
> even after error responses from the server.
> HTTP/1.1 applications that do not support persistent connections MUST
> include the "close" connection option in every message.
Fixes #2436.
Dan VerWeire [Tue, 22 Nov 2011 21:04:40 +0000 (16:04 -0500)]
dgram: reintroduce setMulticastTTL()
Removed during the early stages of node 0.5 refactoring to libuv.
Dan VerWeire [Thu, 27 Oct 2011 14:48:38 +0000 (10:48 -0400)]
dgram: reintroduce setBroadcast()
Removed during the early stages of node 0.5 refactoring to libuv.
Roman Shtylman [Wed, 12 Oct 2011 17:55:15 +0000 (13:55 -0400)]
dgram: reintroduce addMembership() and dropMembership()
Removed during the early stages of node 0.5 refactoring to libuv.
Ben Noordhuis [Sat, 21 Jan 2012 02:13:58 +0000 (03:13 +0100)]
uv: upgrade to 497b1ec
koichik [Fri, 20 Jan 2012 12:54:34 +0000 (21:54 +0900)]
http: reduce creating http-parser instances
Fixes #2577.
Nicolas LaCasse [Fri, 20 Jan 2012 14:36:28 +0000 (15:36 +0100)]
Fix #2365 zlib crashing on invalid input
Fix zlib crashes on error due to improper use of removeListener
in the error handler
isaacs [Fri, 20 Jan 2012 05:15:12 +0000 (21:15 -0800)]
Add missing ChangeLog item re: fs.stat improvement
This was a very significant improvement that should have been called out
explicitly.
I added 'review all libuv changes' to my build checklist. It won't
happen again. Sorry, @igorzi.
isaacs [Fri, 20 Jan 2012 05:15:12 +0000 (21:15 -0800)]
Now working on 0.6.9
isaacs [Fri, 20 Jan 2012 01:23:56 +0000 (17:23 -0800)]
2012.01.19, Version 0.6.8 (stable)
* Update V8 to 3.6.6.19
* Numeric key hash collision fix for V8 (Erik Corry, Fedor Indutny)
* Add missing TTY key translations for F1-F5 on Windows (Brandon Benvie)
* path.extname bugfix with . and .. paths (Bert Belder)
* cluster: don't always kill the master on uncaughtException (Ben
* Noordhuis)
* Update npm to 1.1.0-2 (isaacs)
* typed arrays: set class name (Ben Noordhuis)
* zlib binding cleanup (isaacs, Bert Belder)
* dgram: use slab memory allocator (Michael Bernstein)
* fix segfault #2473
isaacs [Fri, 20 Jan 2012 02:07:12 +0000 (18:07 -0800)]
Upgrade V8 to 3.6.6.19
Fedor Indutny [Thu, 19 Jan 2012 15:44:59 +0000 (21:44 +0600)]
Land number collision fix for v8 3.6 by Erik Corry
Update with fixes from: http://codereview.chromium.org/9190001/
Artur Adib [Thu, 19 Jan 2012 15:18:15 +0000 (10:18 -0500)]
docs: document common add-on design patterns
Brandon Benvie [Thu, 29 Dec 2011 07:39:56 +0000 (02:39 -0500)]
Add missing TTY key translations for F1-F5 on Windows
Bert Belder [Wed, 18 Jan 2012 14:09:42 +0000 (15:09 +0100)]
Make path.extname do the right thing when the last path component is . or ..
Closes GH-2526
Ben Noordhuis [Tue, 17 Jan 2012 23:10:22 +0000 (00:10 +0100)]
cluster: don't always kill the master on uncaughtException
uncaughtException handlers installed by the user override the default one that
the cluster module installs, the one that kills off the master process.
Fixes #2556.
Dan Williams [Tue, 17 Jan 2012 04:36:01 +0000 (23:36 -0500)]
docs: replace expresso with mocha in appendix 1
Ryan Dahl [Tue, 17 Jan 2012 19:32:58 +0000 (11:32 -0800)]
Link to Marak's module rap in community page
Bert Belder [Tue, 17 Jan 2012 19:16:49 +0000 (20:16 +0100)]
tests: fix more lint issues
Andreas Madsen [Tue, 17 Jan 2012 18:43:34 +0000 (19:43 +0100)]
Tests: fix jslint issues
Andreas Madsen [Tue, 17 Jan 2012 07:04:50 +0000 (08:04 +0100)]
child_process: add errno property to exceptions
In case of a write failure when using fork() an error would be thrown. The
thrown exception was missing the `errno` property.
Fedor Indutny [Tue, 17 Jan 2012 16:20:28 +0000 (22:20 +0600)]
Land number collision fix for v8 3.6 by Erik Corry
- If V8 snapshots are enabled then the hash is only randomized at build time.
---
backport @10366, @10367 and @10402 to 3.6
Add seed to hash of numeric keyed properties.
Minor cleanups of numeric seeded hashing patch.
Split NumberDictionary into a randomly seeded and an unseeded version.
We don't want to randomize the stub cache.
Review URL: http://codereview.chromium.org/9190001/
koichik [Tue, 17 Jan 2012 08:34:53 +0000 (17:34 +0900)]
tls: fix double 'error' events on HTTPS Requests
Fixes #2549.
Ben Noordhuis [Tue, 17 Jan 2012 15:20:37 +0000 (16:20 +0100)]
typed arrays: set class name
Make obj.toString and Object.prototype.toString work correctly for typed arrays.
isaacs [Mon, 16 Jan 2012 23:06:16 +0000 (15:06 -0800)]
Update npm to 1.1.0-2
Ben Noordhuis [Sat, 14 Jan 2012 01:13:22 +0000 (02:13 +0100)]
net: make .write() throw on bad input
Passing a non-buffer or non-string argument to Socket.prototype.write triggered
an assert:
Assertion failed: (Buffer::HasInstance(args[0])), function Write,
file ../src/stream_wrap.cc, line 289.
Fixes #2532.
Guillermo Rauch [Thu, 12 Jan 2012 22:08:08 +0000 (14:08 -0800)]
website: Add "Api Docs" button next to "Download"
* Added Docs button and `button` class.
* Refactored download button style into `.button`
* Applied color overrides for download/docs buttons.
* Pointed docs link to latest available docs.
mrb [Thu, 12 Jan 2012 04:42:24 +0000 (23:42 -0500)]
dgram: use slab memory allocator
Change udp memory allocation scheme from uv_buf_init to slab allocation. Takes
slab allocation scheme from stream_wrap.
Ben Noordhuis [Thu, 12 Jan 2012 13:41:04 +0000 (14:41 +0100)]
docs: clarify filename argument of vm.* functions
Igor Zinkovsky [Thu, 12 Jan 2012 03:34:56 +0000 (19:34 -0800)]
update libuv to
855764406e
fixes #2521
Fedor Indutny [Wed, 11 Jan 2012 17:46:10 +0000 (23:46 +0600)]
zlib: C++ style fixes
Maciej Małecki [Tue, 10 Jan 2012 22:29:11 +0000 (23:29 +0100)]
makefile: ignore `lib/punycode.js` while linting
`punycode` is a third party code which generates a lot of lint errors.
Upstream was contacted in order to fix it in bestiejs/punycode.js#6, but
request was denied.
Therefore, it's reasonable to exclude this file from linting process.
Ref #2456.
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.