Ben Noordhuis [Tue, 11 Sep 2012 13:40:39 +0000 (15:40 +0200)]
test: add AES-256 padding crypto test
Ben Noordhuis [Sun, 9 Sep 2012 23:31:11 +0000 (01:31 +0200)]
installer: don't install header files
They are no longer necessary now that node-waf has been removed. People need to
switch to node-gyp.
Nathan Rajlich [Sun, 9 Sep 2012 18:15:45 +0000 (11:15 -0700)]
docs: fix typo in Buffer#toJSON() docs
Nathan Rajlich [Sat, 8 Sep 2012 23:10:00 +0000 (16:10 -0700)]
buffer: implement Buffer.prototype.toJSON()
Returns an Array-representation of the Buffer.
Closes #3905.
Fedor Indutny [Sat, 7 Jul 2012 20:20:23 +0000 (16:20 -0400)]
tls: async session storage
Ben Noordhuis [Tue, 4 Sep 2012 19:54:40 +0000 (21:54 +0200)]
http: make http.ServerResponse emit 'end'
This used to be the internal 'finish' event. Make it public so API users will
know when the response has been sent completely.
Fixes #3855.
Ben Noordhuis [Tue, 4 Sep 2012 14:03:01 +0000 (16:03 +0200)]
build: add ninja support to Makefile
Timothy J Fontaine [Wed, 22 Aug 2012 20:36:04 +0000 (16:36 -0400)]
build: add configure option to build with ninja
Ben Noordhuis [Tue, 4 Sep 2012 13:08:29 +0000 (15:08 +0200)]
installer: reapply
b21c8e0b, honor --without-npm
This bug was already fixed in the v0.8 branch but git skips the patch when
merging v0.8 into master. Reapply it manually.
Fixes #3961.
Ben Noordhuis [Tue, 4 Sep 2012 13:02:20 +0000 (15:02 +0200)]
Merge remote-tracking branch 'origin/v0.8'
Conflicts:
deps/uv/include/uv.h
src/node_crypto.cc
Ben Noordhuis [Tue, 4 Sep 2012 12:40:59 +0000 (14:40 +0200)]
test: add extra checks in simple/test-cli-eval
Ben Noordhuis [Tue, 4 Sep 2012 12:19:59 +0000 (14:19 +0200)]
cli: make argument to -p optional
Atsuya Takagi [Mon, 3 Sep 2012 10:09:50 +0000 (03:09 -0700)]
doc: fix typo in api/cluster
Ben Noordhuis [Mon, 3 Sep 2012 21:26:19 +0000 (23:26 +0200)]
crypto, tls: make setSNICallback() compatible with domains
Ben Noordhuis [Mon, 3 Sep 2012 21:15:30 +0000 (23:15 +0200)]
crypto: make pbkdf2() compatible with domains
Ben Noordhuis [Mon, 3 Sep 2012 21:09:17 +0000 (23:09 +0200)]
crypto: make randomBytes() compatible with domains
Don't execute the callback in the context of the global object.
MakeCallback() tries to apply the active domain to the callback. If the user
polluted the global object with a 'domain' property, as in the code example
below, MakeCallback() will try to apply that.
Example:
domain = {}; // missing var keyword is intentional
crypto.randomBytes(8, cb); // TypeError: undefined is not a function
Fixes #3956.
Bert Belder [Mon, 3 Sep 2012 17:05:40 +0000 (19:05 +0200)]
windows: don't blow when a signal handler is attached
Blowing up when the user attaches a signal handler makes no sense. Also,
in Node 0.10 signals will be supported, so allow people to get used to
it.
Ben Noordhuis [Mon, 3 Sep 2012 14:42:18 +0000 (16:42 +0200)]
cli: make -p equivalent to -pe
Fixes #3938.
koichik [Sat, 1 Sep 2012 15:14:18 +0000 (00:14 +0900)]
buffer: added support for writing NaN and Infinity
to writeDoubleBE(), writeDoubleLE(), writeFloatBE() and writeFloatLE().
Fixes #3934.
koichik [Sun, 2 Sep 2012 11:59:50 +0000 (20:59 +0900)]
Revert "buffer: added support for writing NaN and Infinity"
This reverts commit
6b9425fe3783193cf95cb04cbcbcbb97f5a77d31.
Ben Noordhuis [Sun, 2 Sep 2012 11:45:56 +0000 (13:45 +0200)]
crypto: fix build error on OS X
pthread_t is a pointer type on OS X but an unsigned long on most other
platforms. Use a C style cast because reinterpret_cast nor static_cast
work in all cases.
Ben Noordhuis [Sun, 2 Sep 2012 11:32:57 +0000 (13:32 +0200)]
doc: document prerequisites in README
koichik [Sat, 1 Sep 2012 15:14:18 +0000 (00:14 +0900)]
buffer: added support for writing NaN and Infinity
to writeDoubleBE(), writeDoubleLE(), writeFloatBE() and writeFloatLE().
Fixes #3934.
Ben Noordhuis [Thu, 30 Aug 2012 22:37:45 +0000 (00:37 +0200)]
crypto: use CRYPTO_THREADID_set_callback()
Don't use CRYPTO_set_id_callback(), it's deprecated.
Shigeki Ohtsu [Thu, 30 Aug 2012 15:11:05 +0000 (00:11 +0900)]
tls: support unix domain socket/named pipe in tls.connect
Bert Belder [Thu, 30 Aug 2012 15:29:47 +0000 (17:29 +0200)]
uv: upgrade to 5eb1d19
Bert Belder [Thu, 30 Aug 2012 15:28:02 +0000 (17:28 +0200)]
uv: upgrade to 24c062c
Bert Belder [Thu, 30 Aug 2012 14:13:27 +0000 (16:13 +0200)]
child process: fix processes with IPC channel don't emit 'close'
With this patch the IPC socket is no longer available in the
ChildProcess.stdio array. This shouldn't be very problematic, since
this socket was effectively non-functional; it would never emit any
events.
Nathan Rajlich [Wed, 29 Aug 2012 21:57:25 +0000 (14:57 -0700)]
build: set `process.platform` to "sunos" on SunOS
gyp sets it to "solaris" by default, but versions of node v0.6.x and
older would report "sunos". Let's keep things consistent.
Fixes #3944.
Nathan Rajlich [Wed, 29 Aug 2012 21:57:25 +0000 (14:57 -0700)]
build: set `process.platform` to "sunos" on SunOS
gyp sets it to "solaris" by default, but versions of node v0.6.x and
older would report "sunos". Let's keep things consistent.
Fixes #3944.
Ankur Oberoi [Wed, 29 Aug 2012 16:52:55 +0000 (13:52 -0300)]
doc: fix grammar errors
Ben Noordhuis [Wed, 29 Aug 2012 22:06:47 +0000 (00:06 +0200)]
deps: upgrade http_parser to ad3b631
Ben Noordhuis [Wed, 29 Aug 2012 20:53:00 +0000 (22:53 +0200)]
tls, https: throw exception on missing key/cert
Throw an exception in the tls.Server constructor when the options object
doesn't contain either a PFX or a key/certificate combo.
Said change exposed a bug in simple/test-tls-junk-closes-server. Addressed.
Fixes #3941.
isaacs [Wed, 29 Aug 2012 19:26:28 +0000 (12:26 -0700)]
Test client renegotiation attacks on HTTPS
This test should output roughly the same results as the tls ci-reneg attack
pummel test. However, it does not.
Ben Noordhuis [Wed, 29 Aug 2012 00:30:15 +0000 (02:30 +0200)]
doc: update assert.doesNotThrow() docs
It takes an optional "expected exception" argument that is not used meaningfully
but is nevertheless documented. Undocument it, it confuses casual readers of the
documentation.
Fixes #3935.
isaacs [Tue, 28 Aug 2012 22:34:08 +0000 (15:34 -0700)]
blog: Post for 0.9.1 release
isaacs [Tue, 28 Aug 2012 22:32:01 +0000 (15:32 -0700)]
Now working on 0.9.2
isaacs [Tue, 28 Aug 2012 22:31:40 +0000 (15:31 -0700)]
Merge branch 'v0.9.1-release'
isaacs [Tue, 28 Aug 2012 15:46:29 +0000 (08:46 -0700)]
2012.08.28, Version 0.9.1 (Unstable)
* buffer: Add Buffer.isEncoding(enc) to test for valid encoding values (isaacs)
* Raise UV_ECANCELED on premature close. (Ben Noordhuis)
* Remove c-ares from libuv, move to a top-level node dependency (Bert Belder)
* ref/unref for all HandleWraps, timers, servers, and sockets (Timothy J Fontaine)
* addon: remove node-waf, superseded by node-gyp (Ben Noordhuis)
* child_process: emit error on exec failure (Ben Noordhuis)
* cluster: do not use internal server API (Andreas Madsen)
* constants: add O_DIRECT (Ian Babrou)
* crypto: add sync interface to crypto.pbkdf2() (Ben Noordhuis)
* darwin: emulate fdatasync() (Fedor Indutny)
* dgram: make .bind() always asynchronous (Ben Noordhuis)
* events: Make emitter.listeners() side-effect free (isaacs, Joe Andaverde)
* fs: Throw early on invalid encoding args (isaacs)
* fs: fix naming of truncate/ftruncate functions (isaacs)
* http: bubble up parser errors to ClientRequest (Brian White)
* linux: improve cpuinfo parser on ARM and MIPS (Ben Noordhuis)
* net: add support for IPv6 addresses ending in :: (Josh Erickson)
* net: support Server.listen(Pipe) (Andreas Madsen)
* node: don't scan add-on for "init" symbol (Ben Noordhuis)
* remove process.uvCounters() (Ben Noordhuis)
* repl: console writes to repl rather than process stdio (Nathan Rajlich)
* timers: implement setImmediate (Timothy J Fontaine)
* tls: fix segfault in pummel/test-tls-ci-reneg-attack (Ben Noordhuis)
* tools: Move gyp addon tools to node-gyp (Nathan Rajlich)
* unix: preliminary signal handler support (Ben Noordhuis)
* unix: remove dependency on ev_child (Ben Noordhuis)
* unix: work around darwin bug, don't poll() on pipe (Fedor Indutny)
* util: Formally deprecate util.pump() (Ben Noordhuis)
* windows: make active and closing handle state independent (Bert Belder)
* windows: report spawn errors to the exit callback (Bert Belder)
* windows: signal handling support with uv_signal_t (Bert Belder)
Bert Belder [Tue, 28 Aug 2012 22:16:53 +0000 (00:16 +0200)]
test: make test-fs-truncate pass on windows
Bert Belder [Tue, 28 Aug 2012 20:49:34 +0000 (22:49 +0200)]
uv: upgrade to abc945b
Bearice Ren [Sun, 26 Aug 2012 03:20:42 +0000 (11:20 +0800)]
build: fix `make -j' fails after `make clean'
make fails if:
./configure && make clean && make -j6
as out/Makefile has not yet be made when entering sub dirs
Bert Belder [Tue, 28 Aug 2012 19:50:33 +0000 (21:50 +0200)]
uv: upgrade to 162e57b
Bert Belder [Tue, 28 Aug 2012 19:46:44 +0000 (21:46 +0200)]
windows: make test-child-process-exec-error pass
Ian Babrou [Tue, 28 Aug 2012 07:03:51 +0000 (11:03 +0400)]
constants: add O_DIRECT
This will allow to speed up file i/o in some cases by usage of right offsets
and buffer sizes.
Bert Belder [Tue, 28 Aug 2012 00:54:22 +0000 (02:54 +0200)]
Merge branch 'v0.8'
Conflicts:
ChangeLog
deps/openssl/openssl.gyp
src/node_version.h
Bert Belder [Tue, 28 Aug 2012 00:43:55 +0000 (02:43 +0200)]
uv: upgrade to 621a4e3
Bert Belder [Mon, 27 Aug 2012 22:26:29 +0000 (00:26 +0200)]
windows: fix single-accept mode for shared server sockets
Ben Noordhuis [Mon, 27 Aug 2012 20:08:06 +0000 (22:08 +0200)]
build: compile with -fno-tree-sink if gcc <= 4.4
Fixes a 'pure virtual method called' run-time error with some versions of gcc
on some platforms, notably ARM.
Ben Noordhuis [Mon, 27 Aug 2012 20:06:34 +0000 (22:06 +0200)]
build: fix -fno-tree-vrp heuristic
-fno-tree-vrp is a gcc only switch. Don't enable it when compiling with clang,
it will only complain about -fno-tree-vrp being ignored.
isaacs [Mon, 27 Aug 2012 19:51:25 +0000 (12:51 -0700)]
lint
isaacs [Mon, 27 Aug 2012 19:40:05 +0000 (12:40 -0700)]
fs: Throw early on invalid encoding args
Re #3918
isaacs [Mon, 27 Aug 2012 19:31:14 +0000 (12:31 -0700)]
Buffer.isEncoding(enc)
Re: #3918
Nathan Rajlich [Fri, 24 Aug 2012 23:11:55 +0000 (16:11 -0700)]
docs: fix syntax error in "https" example
Nathan Rajlich [Fri, 24 Aug 2012 20:18:19 +0000 (13:18 -0700)]
repl: create a new Console instance for the repl when "useGlobal" is off
Now `console.log('blah')` will work in a REPL running over a socket.
Closes #3876.
Nathan Rajlich [Fri, 24 Aug 2012 20:12:30 +0000 (13:12 -0700)]
console: refactor the console module to be reusable
So that multiple instances can be created pointing
to different writable streams.
This is needed for #3876.
Ben Noordhuis [Fri, 24 Aug 2012 20:56:26 +0000 (22:56 +0200)]
tools: fix missing initializer warning in js2c.py
Fix a -Wmissing-field-initializers style compiler warning in the code that's
generated by js2c.py.
Brian White [Tue, 7 Aug 2012 00:42:13 +0000 (20:42 -0400)]
http: bubble up parser errors to ClientRequest
Make parser errors bubble up to the ClientRequest instead of the underlying
net.Socket object.
Fixes #3776.
koichik [Sat, 18 Aug 2012 05:18:02 +0000 (14:18 +0900)]
https: make https.get() accept a URL
https.get() now accepts either a URL (as a string) or an options object.
Refs #2859.
Fixes #3882.
Brandon Wilson [Fri, 24 Aug 2012 13:47:53 +0000 (15:47 +0200)]
doc: more uniform and sleek buttons
Closes GH-3909
Nathan Rajlich [Thu, 23 Aug 2012 18:28:47 +0000 (11:28 -0700)]
build: tweak the openssl android configuration to build
Removed NO_CAST, NO_MD2 and NO_STORE because otherwise there were build errors.
Added NO_CAMELLIA, NO_MDC2, and NO_CMS because otherwise there were linker errors.
Nathan Rajlich [Thu, 23 Aug 2012 18:28:17 +0000 (11:28 -0700)]
build: use the openssl android configuration for "arm" builds
Bert Belder [Thu, 23 Aug 2012 15:51:59 +0000 (17:51 +0200)]
doc: tidy the community page html file
Bert Belder [Thu, 23 Aug 2012 14:13:37 +0000 (16:13 +0200)]
doc: remove Felix's IRC logs from the community page
It's been down for months.
Bert Belder [Thu, 23 Aug 2012 13:50:34 +0000 (15:50 +0200)]
doc: move ul styling to pipe.css
Bert Belder [Thu, 23 Aug 2012 13:42:34 +0000 (15:42 +0200)]
doc: pixel nudge
Bert Belder [Thu, 23 Aug 2012 15:54:12 +0000 (17:54 +0200)]
doc: use somewhat consistent styling for css assets
Stéphan Kochen [Thu, 23 Aug 2012 13:55:42 +0000 (16:55 +0300)]
doc: remove nodejs-dev from the community page
Ben Noordhuis [Thu, 23 Aug 2012 14:03:46 +0000 (16:03 +0200)]
net: fix asserts
Fixes a 'Converting circular structure to JSON' TypeError.
isaacs [Wed, 22 Aug 2012 22:11:26 +0000 (15:11 -0700)]
website: Fix download link on win, un-break industry section
Bert Belder [Wed, 22 Aug 2012 21:58:34 +0000 (23:58 +0200)]
doc: remote the "recommended modules" section
isaacs [Wed, 22 Aug 2012 19:53:22 +0000 (12:53 -0700)]
blog: v0.8.8 release
isaacs [Wed, 22 Aug 2012 19:52:05 +0000 (12:52 -0700)]
Now working on 0.8.9
isaacs [Wed, 22 Aug 2012 19:51:53 +0000 (12:51 -0700)]
Merge branch 'v0.8.8-release' into v0.8
Ryan Dahl [Wed, 22 Aug 2012 19:18:45 +0000 (15:18 -0400)]
Upgrade GYP to r1477
isaacs [Wed, 22 Aug 2012 08:23:47 +0000 (01:23 -0700)]
2012.08.22, Version 0.8.8 (Stable)
* V8: upgrade to 3.11.10.19
* npm: upgrade to 1.1.59
* windows: fix uninitialized memory access in uv_update_time() (Bert Belder)
* unix, windows: fix memory corruption in fs-poll.c (Ben Noordhuis)
* unix: fix integer overflow in uv_hrtime (Tim Holy)
* sunos: fix uv_cpu_info() on x86_64 (Ben Noordhuis)
* tls: update default cipher list (Ben Noordhuis)
* unix: Fix llvm and older gcc duplicate symbol warnings (Bert Belder)
* fs: fix use after free in stat watcher (Ben Noordhuis)
* build: Fix using manually compiled gcc on OS X (Nathan Rajlich)
* windows: make junctions work again (Bert Belder)
isaacs [Wed, 22 Aug 2012 08:19:50 +0000 (01:19 -0700)]
npm: Upgrade to 1.1.59
isaacs [Wed, 22 Aug 2012 16:46:07 +0000 (09:46 -0700)]
lint
Ben Noordhuis [Wed, 22 Aug 2012 08:05:18 +0000 (10:05 +0200)]
build: compile with -Wextra -Wno-unused-parameter
Ron Korving [Tue, 21 Aug 2012 08:11:04 +0000 (17:11 +0900)]
doc: fix typo in cluster example code
isaacs [Wed, 22 Aug 2012 00:38:21 +0000 (17:38 -0700)]
npm: Upgrade to 1.1.57
isaacs [Tue, 21 Aug 2012 23:27:30 +0000 (16:27 -0700)]
npm: Upgrade to 1.1.56
Bert Belder [Tue, 21 Aug 2012 22:54:15 +0000 (00:54 +0200)]
uv: upgrade to 564e7c7
isaacs [Tue, 21 Aug 2012 22:29:03 +0000 (15:29 -0700)]
npm: Upgrade to 1.1.55
Ben Noordhuis [Tue, 21 Aug 2012 20:27:13 +0000 (22:27 +0200)]
tls: update default cipher list
Update the default cipher list from RC4-SHA:AES128-SHA:AES256-SHA
to ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
in order to mitigate BEAST attacks.
The documentation suggested AES256-SHA but unfortunately that's a CBC cipher
and therefore susceptible to attacks.
Fixes #3900.
Ben Noordhuis [Tue, 21 Aug 2012 11:29:53 +0000 (13:29 +0200)]
child_process: emit error on exec failure
libuv calls the exit cb with exit code == -1 when it fails to spawn the new
process. Anticipate that and emit the error on the ChildProcess object.
Ben Noordhuis [Tue, 21 Aug 2012 11:44:29 +0000 (13:44 +0200)]
doc: cluster: setupMaster() can be called only once
Ben Noordhuis [Tue, 21 Aug 2012 10:50:34 +0000 (12:50 +0200)]
signal_wrap: fix unused variable compiler warning
Bert Belder [Tue, 21 Aug 2012 01:05:25 +0000 (03:05 +0200)]
v8: reapply floating patches
Bert Belder [Tue, 21 Aug 2012 01:04:16 +0000 (03:04 +0200)]
v8: upgrade to v3.11.10.19
Bert Belder [Mon, 20 Aug 2012 22:37:59 +0000 (00:37 +0200)]
Remove node_io_watcher
Bert Belder [Mon, 20 Aug 2012 22:32:45 +0000 (00:32 +0200)]
Delete the old node_signal_watcher code
Bert Belder [Mon, 20 Aug 2012 21:59:21 +0000 (23:59 +0200)]
process: use uv_signal instead of ev_signal
Bert Belder [Mon, 20 Aug 2012 16:13:05 +0000 (19:13 +0300)]
unix: don't explicitly instantiate v8::Persistent<x> templates
These explicit instantiations were added to make MSVC happy. It turns
out that some older versions of gcc and llvm now complain about duplicate
symbols, so we instantiate these templates only when MSVC is used.
Bert Belder [Mon, 20 Aug 2012 16:41:07 +0000 (18:41 +0200)]
uv: upgrade to 8073a26
Bert Belder [Mon, 20 Aug 2012 16:13:05 +0000 (19:13 +0300)]
unix: don't explicitly instantiate v8::Persistent<x> templates
These explicit instantiations were added to make MSVC happy. It turns
out that some older versions of gcc and llvm now complain about duplicate
symbols, so we instantiate these templates only when MSVC is used.
Ben Noordhuis [Mon, 20 Aug 2012 10:52:26 +0000 (12:52 +0200)]
fs: fix use after free in stat watcher
The uv_fs_poll_t handle was stopped but not closed, leaving libuv's internal
handle queue in a corrupted state.
Ben Noordhuis [Mon, 20 Aug 2012 15:20:41 +0000 (17:20 +0200)]
deps: upgrade libuv to 012cbda
Nathan Rajlich [Sun, 19 Aug 2012 18:11:47 +0000 (11:11 -0700)]
build: don't use "-Wnewline-eof" on OS X
This is the only thing preventing a manually compiled version of GCC
(rather than Apple's provided llvm-gcc or heavily modified gcc 4.2)
from working properly, so we might as well enable support for that.
With this patch I was able to compile node using a manually compiled
gcc 4.7.1.
Closes #3887.
Ben Noordhuis [Fri, 17 Aug 2012 12:11:33 +0000 (14:11 +0200)]
timers: fix assertion in Timeout.unref()
Ensure that the delay >= 0 when detaching the timer from the queue. Fixes the
following assertion:
uv_timer_start: Assertion `timeout >= 0' failed.
No test included, it's timing sensitive.