Ryan Dahl
e6a30bd107
Fix #2473
Tested in production.
See also http://code.google.com/p/v8/issues/detail?id=1889
13 years ago
Ben Noordhuis
b07acb3808
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 .
13 years ago
Ben Noordhuis
d5d043f2d7
handle_wrap: guard against uninitialized handle or double close
13 years ago
Ben Noordhuis
cc5cea35b0
uv: upgrade to 803f5a0
13 years ago
Ryunosuke SATO
22d7fe1206
events: fix checking max listeners with `1`
Fixes #2490 .
13 years ago
Ben Noordhuis
9a79bb694e
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 .
13 years ago
Ben Noordhuis
472a72d27f
build: honour the PYTHON environment variable
Overrides the path to the python binary. Defaults to `python`.
13 years ago
koichik
9ef3c6238b
docs: fix ChangeLog
13 years ago
koichik
57653added
docs: small changes.
13 years ago
isaacs
ff4096f958
Now working on v0.6.8
13 years ago
isaacs
d5a189acef
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)
13 years ago
isaacs
d84a6ba3d1
Remove snapshot from Mac binary build
13 years ago
Ryan Dahl
bca88b2dc1
support nosnapshot in vcbuild.bat
13 years ago
Ryan Dahl
be67fa7e09
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 6f8839d2ac
.
13 years ago
Ryan Dahl
8bd80f4911
fix test-sys for hash randomization
broken in 4a899c9274
13 years ago
Bert Belder
4a899c9274
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
13 years ago
koichik
dd9593ccc4
http: fix ServerResponse does not emit 'close'
Refs #2453 .
13 years ago
isaacs
78dbb4b5b1
npm@1.1.0-beta-10
13 years ago
Ben Noordhuis
760928bfad
docs: mention that python 2.6 or 2.7 is required
13 years ago
koichik
baebd30eee
http: use `self` insted of `this`
13 years ago
Ryan Dahl
3452477dcb
Update address in CLA
13 years ago
Ryan Dahl
f3da6c6c04
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.
13 years ago
Ryan Dahl
2cde498319
Add another test to test-http-parser-bad-ref.js demoing #2438
13 years ago
Ben Noordhuis
6f8839d2ac
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.
13 years ago
Ben Noordhuis
884f689efe
test: add #2293 regression test
Creating a file event watcher with fs.watch({persistent:false}) should not block
the event loop.
13 years ago
Ben Noordhuis
41f2725639
uv: upgrade to 38fc6ad
13 years ago
Ben Noordhuis
c2fb062f60
docs: fix typo on community page
13 years ago
isaacs
8e57398b20
Fix #2034 repl message for .clear when useGlobal=true
13 years ago
Ben Noordhuis
539598b11f
test: don't create temp files in fixtures dir
13 years ago
Ben Noordhuis
8b2abed03d
bench: add /echo endpoint to http_simple
Copies the POST request data verbatim into the response body.
13 years ago
Ryan Dahl
432a2e4d39
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.
13 years ago
Ben Noordhuis
3f5bb15f35
dgram: fix memory leak in error path
13 years ago
Damon Oehlman
744ed46970
repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor
13 years ago
Jeremy Martin
8c3a757ffc
docs: tiny typo in http.markdown
13 years ago
Ryan Dahl
448c5e07ca
Revert "Add HandleScope to http-parser binding"
This commit did not actually fix the production crashes.
This reverts commit 73cf8e82e7
.
13 years ago
Andreas Madsen
d483acc5d9
test: remove internet test from test/simple/
13 years ago
koichik
a848a3efbf
net: fix Socket.pause null reference when called on a closed Stream
Fixes #1980 .
13 years ago
koichik
e1c043f43a
docs: fix docs to not suggest variable leaks
Fixes #2106 .
13 years ago
koichik
a337ac7584
http: fix XMLHttpRequest piped in a writable file stream hangs next request
Fixes #2263 .
13 years ago
Ben Noordhuis
70e6f3f115
docs: document http.Server.close() semantics
13 years ago
koichik
7aa5924dc6
http: fix resource leak
Fixes #2069
13 years ago
Ben Noordhuis
0de6ec5f08
win: fix mismatched new[]/delete
13 years ago
Ben Noordhuis
ed5bad754c
bench: fix use of fd after close
13 years ago
Ryan Dahl
d85c85aac1
Change 'real example' in addon doc
13 years ago
Bert Belder
c6347dcfb4
Add another nextTick benchmark
It tests how many iterations the event loop can make per second.
13 years ago
Phil Sung
cf2513e1aa
buffer: don't pollute global namespace in buffer.readInt*
13 years ago
Ben Noordhuis
b261e37a34
test: ensure callback is executed
13 years ago
Ju-yeong Park
5976d58796
net: raise exception when the socket is closed
13 years ago
Dave Irvine
045bfe0da5
docs: document 'encoding' arg of hash.update()
13 years ago
Ben Noordhuis
d8c178bc16
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.
13 years ago