platform/upstream/nodejs.git
12 years agocrypto: silence unused variable warning
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.

12 years agotest: fix test/simple/test-net-server-max-connections.js is racey
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.

12 years agotest: for #2109
koichik [Sun, 22 Jan 2012 08:35:28 +0000 (17:35 +0900)]
test: for #2109

12 years agoutil: use getOwnPropertyDescripter
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.

12 years agohttp: keep-alive should default with HTTP/1.1 server
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.

12 years agodgram: reintroduce setMulticastTTL()
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.

12 years agodgram: reintroduce setBroadcast()
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.

12 years agodgram: reintroduce addMembership() and dropMembership()
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.

12 years agouv: upgrade to 497b1ec
Ben Noordhuis [Sat, 21 Jan 2012 02:13:58 +0000 (03:13 +0100)]
uv: upgrade to 497b1ec

12 years agohttp: reduce creating http-parser instances
koichik [Fri, 20 Jan 2012 12:54:34 +0000 (21:54 +0900)]
http: reduce creating http-parser instances

Fixes #2577.

12 years agoFix #2365 zlib crashing on invalid input
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

12 years agoAdd missing ChangeLog item re: fs.stat improvement
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.

12 years agoNow working on 0.6.9
isaacs [Fri, 20 Jan 2012 05:15:12 +0000 (21:15 -0800)]
Now working on 0.6.9

12 years ago2012.01.19, Version 0.6.8 (stable) v0.6.8
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

12 years agoUpgrade V8 to 3.6.6.19
isaacs [Fri, 20 Jan 2012 02:07:12 +0000 (18:07 -0800)]
Upgrade V8 to 3.6.6.19

12 years agoLand number collision fix for v8 3.6 by Erik Corry
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/

12 years agodocs: document common add-on design patterns
Artur Adib [Thu, 19 Jan 2012 15:18:15 +0000 (10:18 -0500)]
docs: document common add-on design patterns

12 years agoAdd missing TTY key translations for F1-F5 on Windows
Brandon Benvie [Thu, 29 Dec 2011 07:39:56 +0000 (02:39 -0500)]
Add missing TTY key translations for F1-F5 on Windows

12 years agoMake path.extname do the right thing when the last path component is . or ..
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

12 years agocluster: don't always kill the master on uncaughtException
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.

12 years agodocs: replace expresso with mocha in appendix 1
Dan Williams [Tue, 17 Jan 2012 04:36:01 +0000 (23:36 -0500)]
docs: replace expresso with mocha in appendix 1

12 years agoLink to Marak's module rap in community page
Ryan Dahl [Tue, 17 Jan 2012 19:32:58 +0000 (11:32 -0800)]
Link to Marak's module rap in community page

12 years agotests: fix more lint issues
Bert Belder [Tue, 17 Jan 2012 19:16:49 +0000 (20:16 +0100)]
tests: fix more lint issues

12 years agoTests: fix jslint issues
Andreas Madsen [Tue, 17 Jan 2012 18:43:34 +0000 (19:43 +0100)]
Tests: fix jslint issues

12 years agochild_process: add errno property to exceptions
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.

12 years agoLand number collision fix for v8 3.6 by Erik Corry
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/

12 years agotls: fix double 'error' events on HTTPS Requests
koichik [Tue, 17 Jan 2012 08:34:53 +0000 (17:34 +0900)]
tls: fix double 'error' events on HTTPS Requests

Fixes #2549.

12 years agotyped arrays: set class name
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.

12 years agoUpdate npm to 1.1.0-2
isaacs [Mon, 16 Jan 2012 23:06:16 +0000 (15:06 -0800)]
Update npm to 1.1.0-2

12 years agonet: make .write() throw on bad input
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.

12 years agowebsite: Add "Api Docs" button next to "Download"
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.

12 years agodgram: use slab memory allocator
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.

12 years agodocs: clarify filename argument of vm.* functions
Ben Noordhuis [Thu, 12 Jan 2012 13:41:04 +0000 (14:41 +0100)]
docs: clarify filename argument of vm.* functions

12 years agoupdate libuv to 855764406e
Igor Zinkovsky [Thu, 12 Jan 2012 03:34:56 +0000 (19:34 -0800)]
update libuv to 855764406e
fixes #2521

12 years agozlib: C++ style fixes
Fedor Indutny [Wed, 11 Jan 2012 17:46:10 +0000 (23:46 +0600)]
zlib: C++ style fixes

12 years agomakefile: ignore `lib/punycode.js` while linting
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.

12 years agozlib binding cleanup
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.

12 years agoUse .jpg instead of .bmp for .msi
Ryan Dahl [Tue, 10 Jan 2012 20:13:48 +0000 (12:13 -0800)]
Use .jpg instead of .bmp for .msi

smaller.

12 years agoMake sure that zlib contexts are not garbage collected when busy
Ben Noordhuis [Tue, 10 Jan 2012 19:54:40 +0000 (20:54 +0100)]
Make sure that zlib contexts are not garbage collected when busy

12 years agoFix memory leak in node_zlib
Bert Belder [Tue, 10 Jan 2012 19:51:45 +0000 (20:51 +0100)]
Fix memory leak in node_zlib

12 years agoFix #2473
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

12 years agochild_process: fix segfault after failed spawn
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.

12 years agohandle_wrap: guard against uninitialized handle or double close
Ben Noordhuis [Mon, 9 Jan 2012 19:39:06 +0000 (20:39 +0100)]
handle_wrap: guard against uninitialized handle or double close

12 years agouv: upgrade to 803f5a0
Ben Noordhuis [Mon, 9 Jan 2012 14:45:51 +0000 (15:45 +0100)]
uv: upgrade to 803f5a0

12 years agoevents: fix checking max listeners with `1`
Ryunosuke SATO [Sun, 8 Jan 2012 15:53:17 +0000 (00:53 +0900)]
events: fix checking max listeners with `1`

Fixes #2490.

12 years agoAvoid unnecessary buffer to string conversion.
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.

12 years agobuild: honour the PYTHON environment variable
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`.

12 years agodocs: fix ChangeLog
koichik [Sat, 7 Jan 2012 06:51:51 +0000 (07:51 +0100)]
docs: fix ChangeLog

12 years agodocs: small changes.
koichik [Sat, 7 Jan 2012 05:44:35 +0000 (06:44 +0100)]
docs: small changes.

12 years agoNow working on v0.6.8
isaacs [Sat, 7 Jan 2012 01:36:39 +0000 (17:36 -0800)]
Now working on v0.6.8

12 years ago2012.01.06, Version 0.6.7 (stable) v0.6.7
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)

12 years agoRemove snapshot from Mac binary build
isaacs [Sat, 7 Jan 2012 00:30:46 +0000 (16:30 -0800)]
Remove snapshot from Mac binary build

12 years agosupport nosnapshot in vcbuild.bat
Ryan Dahl [Sat, 7 Jan 2012 00:20:45 +0000 (16:20 -0800)]
support nosnapshot in vcbuild.bat

12 years agoRevert "crypto: add SecureContext.clearOptions() method"
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.

12 years agofix test-sys for hash randomization
Ryan Dahl [Fri, 6 Jan 2012 18:22:18 +0000 (10:22 -0800)]
fix test-sys for hash randomization

broken in 4a899c92742583ca9e0bb7d16e09a66b08c9d033

12 years agoLand hash collision fix for V8 3.6 by Erik Corry.
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

12 years agohttp: fix ServerResponse does not emit 'close'
koichik [Thu, 5 Jan 2012 11:50:03 +0000 (20:50 +0900)]
http: fix ServerResponse does not emit 'close'

Refs #2453.

12 years agonpm@1.1.0-beta-10
isaacs [Wed, 4 Jan 2012 23:09:13 +0000 (15:09 -0800)]
npm@1.1.0-beta-10

12 years agodocs: mention that python 2.6 or 2.7 is required
Ben Noordhuis [Thu, 5 Jan 2012 15:44:11 +0000 (16:44 +0100)]
docs: mention that python 2.6 or 2.7 is required

12 years agohttp: use `self` insted of `this`
koichik [Thu, 5 Jan 2012 08:43:00 +0000 (17:43 +0900)]
http: use `self` insted of `this`

12 years agoUpdate address in CLA
Ryan Dahl [Wed, 4 Jan 2012 19:20:50 +0000 (11:20 -0800)]
Update address in CLA

12 years agoPotential fix for #2438
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.

12 years agoAdd another test to test-http-parser-bad-ref.js demoing #2438
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

12 years agocrypto: add SecureContext.clearOptions() method
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.

12 years agotest: add #2293 regression test
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.

12 years agouv: upgrade to 38fc6ad
Ben Noordhuis [Mon, 2 Jan 2012 09:43:10 +0000 (10:43 +0100)]
uv: upgrade to 38fc6ad

12 years agodocs: fix typo on community page
Ben Noordhuis [Sun, 1 Jan 2012 22:36:03 +0000 (23:36 +0100)]
docs: fix typo on community page

12 years agoFix #2034 repl message for .clear when useGlobal=true
isaacs [Tue, 8 Nov 2011 00:10:21 +0000 (16:10 -0800)]
Fix #2034 repl message for .clear when useGlobal=true

12 years agotest: don't create temp files in fixtures dir
Ben Noordhuis [Sat, 31 Dec 2011 02:16:04 +0000 (03:16 +0100)]
test: don't create temp files in fixtures dir

12 years agobench: add /echo endpoint to http_simple
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.

12 years agoAdd test for #2438
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.

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