Andreas Madsen [Tue, 31 Jan 2012 13:46:23 +0000 (14:46 +0100)]
Test for ChildProcess.disconnect()
Ben Noordhuis [Tue, 31 Jan 2012 00:36:57 +0000 (01:36 +0100)]
fs: add O_EXCL support, exclusive open file
Ben Noordhuis [Mon, 30 Jan 2012 23:54:40 +0000 (00:54 +0100)]
fs, test: add file open mode tests
Łukasz Walukiewicz [Wed, 25 Jan 2012 23:12:00 +0000 (00:12 +0100)]
url: Support for IPv6 addresses in URLs.
Fixes #1138, #2610.
Tj Holowaychuk [Tue, 31 Jan 2012 00:41:32 +0000 (16:41 -0800)]
more specific fs error messages
Igor Zinkovsky [Mon, 30 Jan 2012 23:57:08 +0000 (15:57 -0800)]
Roman Shtylman [Mon, 30 Jan 2012 16:58:08 +0000 (11:58 -0500)]
add node::SetMethod and node::SetPrototypeMethod
defines cannot be used if the callback is a templated and has
multiple template arguments. The comma separating the arguments
breaks the preprocessor argument handling. Using a templated function
is clearer and more idiomatic in c++.
Andreas Madsen [Mon, 30 Jan 2012 15:35:05 +0000 (16:35 +0100)]
Add disconnect method to forked child processes
This disconnect method allows the child to exit gracefully.
This also adds a disconnect event and connect property.
Brandon Benvie [Mon, 30 Jan 2012 07:41:40 +0000 (02:41 -0500)]
core: make .deprecate() warn only once
Brandon Benvie [Sun, 29 Jan 2012 04:13:42 +0000 (23:13 -0500)]
core: add `NativeModule.prototype.deprecate`
Formalize and cleanup handling of deprecated core methods.
Brandon Benvie [Sun, 29 Jan 2012 04:39:38 +0000 (23:39 -0500)]
Change removed process methods to be non-enumerable.
Dan VerWeire [Fri, 27 Jan 2012 23:49:07 +0000 (18:49 -0500)]
tty: emit 'unknown' key event if key sequence not found
Add key.code and key.sequence -mad props go out to @TooTallNate
Ben Noordhuis [Fri, 27 Jan 2012 21:25:04 +0000 (22:25 +0100)]
uv: upgrade to 3de0411
Fedor Indutny [Fri, 27 Jan 2012 14:23:32 +0000 (20:23 +0600)]
waf: predict target arch for OSX
Ben Noordhuis [Thu, 26 Jan 2012 22:45:16 +0000 (23:45 +0100)]
build: compile release build too if BUILDTYPE=Debug
It's backwards compatible with the old waf build system. If you want to compile
just the debug build, run `make -C out BUILDTYPE=Debug` instead.
Fixes #2615.
Fedor Indutny [Wed, 25 Jan 2012 17:35:35 +0000 (23:35 +0600)]
zlib: fix `Failed to set dictionary` issue
Fedor Indutny [Tue, 24 Jan 2012 16:45:34 +0000 (22:45 +0600)]
module: fix --debug-brk on symlinked scripts
* fixes #1519
Ben Noordhuis [Tue, 24 Jan 2012 14:49:32 +0000 (15:49 +0100)]
net, tls, http: remove socket.ondrain
Replace the ondrain hack with a regular 'drain' listener. Speeds up the
bytes/1024 http benchmark by about 1.2%.
isaacs [Tue, 24 Jan 2012 08:11:59 +0000 (00:11 -0800)]
Merge branch 'v0.7.1-release'
koichik [Tue, 24 Jan 2012 04:57:20 +0000 (13:57 +0900)]
http: fix test-http-should-keepalive.js is fail
3df7c90 was removed when conflict was resolved.
isaacs [Tue, 24 Jan 2012 01:27:08 +0000 (17:27 -0800)]
Now working on 0.7.2
isaacs [Mon, 23 Jan 2012 23:55:15 +0000 (15:55 -0800)]
2012.01.23, Version 0.7.1 (unstable)
* Update V8 to 3.8.8
* Install node-waf by default (Fedor Indutny)
* crypto: Add ability to turn off PKCS padding (Ingmar Runge)
* v8: implement VirtualMemory class on SunOS (Ben Noordhuis)
* Add cluster.setupMaster (Andreas Madsen)
* move `path.exists*` to `fs.exists*` (Maciej Małecki)
* typed arrays: set class name (Ben Noordhuis)
* libuv bug fixes (Igor Zinkovsky, Ben Noordhuis, Dan VerWeire)
isaacs [Tue, 24 Jan 2012 00:16:42 +0000 (16:16 -0800)]
Upgrade V8 to 3.8.8
isaacs [Mon, 23 Jan 2012 23:44:53 +0000 (15:44 -0800)]
udp: 'interface' is reserved word on windows.
Fedor Indutny [Mon, 23 Jan 2012 18:30:28 +0000 (00:30 +0600)]
Merge branch 'v0.6'
Conflicts:
ChangeLog
doc/template.html
lib/cluster.js
lib/http.js
lib/tls.js
src/node.h
src/node_version.h
test/simple/test-cluster-kill-workers.js
Ben Noordhuis [Mon, 23 Jan 2012 12:35:36 +0000 (13:35 +0100)]
uv: upgrade to 1cca230
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
Maciej Małecki [Sun, 22 Jan 2012 19:46:52 +0000 (20:46 +0100)]
version: bump `NODE_PATCH_VERSION`
Patch version hasn't been bumped correctly in
72cbb7492cb5956c8265b415bd6ff473b7b89f35.
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.
Igor Zinkovsky [Sat, 21 Jan 2012 22:35:25 +0000 (14:35 -0800)]
only ref non-default isolate loops
Maciej Małecki [Sat, 21 Jan 2012 01:37:57 +0000 (02:37 +0100)]
path fs: move `path.exists*` to `fs.exists*`
`path.exists*` functions show a deprecation warning and call functions
from `fs`. They should be removed later.
test: fix references to `path.exists*` in tests
test fs: add test for `fs.exists` and `fs.existsSync`
doc: reflect moving `path.exists*` to `fs`
Ben Noordhuis [Sat, 21 Jan 2012 13:31:20 +0000 (14:31 +0100)]
http: fix deprecation warning module ID
Mea culpa, I told @mmalecki wrong
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
Igor Zinkovsky [Fri, 20 Jan 2012 02:56:23 +0000 (18:56 -0800)]
ref isolate loop
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
Andreas Madsen [Thu, 5 Jan 2012 19:09:43 +0000 (20:09 +0100)]
Add cluster.setupMaster
Fixes #2470
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.
Ben Noordhuis [Fri, 20 Jan 2012 15:00:25 +0000 (16:00 +0100)]
build: disable NDEBUG in release builds for now
assert() sanity checks are a good thing.
Ben Noordhuis [Fri, 20 Jan 2012 14:55:38 +0000 (15:55 +0100)]
fs, handle_wrap: use Loop(), not uv_default_loop()
Using the default loop will fail in unexpected and interesting ways when
isolates are used.
Shigeki Ohtsu [Tue, 8 Nov 2011 15:27:52 +0000 (00:27 +0900)]
fs: don't assert on uv_fs_*() errors
Pass errors to the JS callbacks, don't assert in C++ land.
Fixes among other things the case where Node aborts because uv_fs_futimes()
returns ENOSYS.
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
Ben Noordhuis [Thu, 19 Jan 2012 23:05:04 +0000 (23:05 +0000)]
v8: link against libsocket and libnsl on sunos
The V8 debugger requires BSD socket support. Solaris-like systems obviously
support that but you need to link against the right libraries, it's not part of
libc.
Ben Noordhuis [Thu, 19 Jan 2012 22:46:20 +0000 (22:46 +0000)]
v8: implement VirtualMemory class on SunOS
Unbreaks build on SunOS. Re-applies
4908e5bf7a9c8014eefcf344e958bf0dad95d907.
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
Ingmar Runge [Fri, 2 Dec 2011 20:04:13 +0000 (21:04 +0100)]
Crypto: adding ability to turn off automatic PKCS padding
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 [Wed, 18 Jan 2012 01:00:43 +0000 (02:00 +0100)]
build: remove node_debug from config.gypi
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
Dan Williams [Tue, 17 Jan 2012 04:36:01 +0000 (23:36 -0500)]
docs: fix syntax error on cluster api docs
Ben Noordhuis [Tue, 17 Jan 2012 22:02:15 +0000 (23:02 +0100)]
build: respect --debug configure switch
Andreas Madsen [Tue, 17 Jan 2012 19:37:11 +0000 (20:37 +0100)]
Add failing test case: parent on('exit')
Fixes #2564
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, 27 Dec 2011 12:08:41 +0000 (13:08 +0100)]
Allow calling fork() without args or options
Closes GH-2424
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.
Ryan Dahl [Tue, 17 Jan 2012 07:28:25 +0000 (23:28 -0800)]
Makefile: Don't force user to run ./configure first
Fedor Indutny [Tue, 17 Jan 2012 05:48:50 +0000 (11:48 +0600)]
installer: install node-waf
* added --without-waf flag for configure script
Ryan Dahl [Tue, 17 Jan 2012 03:45:39 +0000 (19:45 -0800)]
Now working on v0.7.1-pre
Ryan Dahl [Tue, 17 Jan 2012 01:19:17 +0000 (17:19 -0800)]
Bump version to v0.7.0
Ryan Dahl [Tue, 17 Jan 2012 02:52:36 +0000 (18:52 -0800)]
Add make dist-upload
Ryan Dahl [Tue, 17 Jan 2012 02:40:12 +0000 (18:40 -0800)]
Fix 'make dist'
Igor Zinkovsky [Tue, 17 Jan 2012 01:24:53 +0000 (17:24 -0800)]
upgrade libuv to
52511b9ddc
Igor Zinkovsky [Fri, 16 Dec 2011 02:42:03 +0000 (18:42 -0800)]
fix windows build
Ryan Dahl [Mon, 16 Jan 2012 23:20:26 +0000 (15:20 -0800)]
Merge remote branch 'origin/v0.6'
Conflicts:
deps/uv/src/win/util.c
src/udp_wrap.cc
Ryan Dahl [Mon, 16 Jan 2012 23:15:34 +0000 (15:15 -0800)]
Upgrade libuv to joyent/libuv@f5bd21f
isaacs [Mon, 16 Jan 2012 23:06:16 +0000 (15:06 -0800)]
Update npm to 1.1.0-2
Igor Zinkovsky [Mon, 16 Jan 2012 22:26:58 +0000 (14:26 -0800)]
fix windows build
Ryan Dahl [Mon, 16 Jan 2012 22:37:57 +0000 (14:37 -0800)]
Upgrade V8 to 3.8.6
Ryan Dahl [Mon, 16 Jan 2012 22:06:55 +0000 (14:06 -0800)]
Revert "gyp: install node-gyp"
No.
This reverts commit
3d1476a3168effe3edb32510f56cf9b00bce8392.
Fedor Indutny [Mon, 16 Jan 2012 18:17:45 +0000 (00:17 +0600)]
gyp: install node-gyp
* fixes #2480
Maciej Małecki [Mon, 16 Jan 2012 16:50:18 +0000 (17:50 +0100)]
http: use `util._deprecationWarning` for deprecation warning
Fedor Indutny [Mon, 16 Jan 2012 14:18:37 +0000 (20:18 +0600)]
uv: upgrade to e7758e1
Fedor Indutny [Mon, 16 Jan 2012 13:33:16 +0000 (19:33 +0600)]
Revert "util: always display a warning for module in debug mode"
This reverts commit
df62005ece4bb0be0d5af645fd9093b1506ce63d.
Maciej Małecki [Mon, 16 Jan 2012 12:54:35 +0000 (13:54 +0100)]
util: always display a warning for module in debug mode
Fedor Indutny [Mon, 16 Jan 2012 10:13:43 +0000 (16:13 +0600)]
querystring: fix maxKeys = 0 is ignored
Fedor Indutny [Mon, 16 Jan 2012 10:11:29 +0000 (16:11 +0600)]
http: do not accept headers if limit is exceeded
* fix limiting when parser was reused
* fix maxHeadersCount = 0 is ignored ( credit to @koichik )
* add test-http-max-headers-count.js ( credit to @koichik )
Ben Noordhuis [Mon, 16 Jan 2012 00:41:26 +0000 (01:41 +0100)]
isolates: remove references to uv_thread_self()
uv_thread_self() is difficult to implement on Windows in a way where the return
value is valid across threads. It's already been removed from upstream libuv.
Fedor Indutny [Sun, 15 Jan 2012 19:45:31 +0000 (01:45 +0600)]
http, querystring: added limits to prevent DoS
Ben Noordhuis [Sun, 15 Jan 2012 15:50:58 +0000 (16:50 +0100)]
build: support --dest-cpu configure switch again
Fedor Indutny [Sat, 14 Jan 2012 17:51:53 +0000 (23:51 +0600)]
test-eio-limit: add missing copyright headers
Fedor Indutny [Sat, 14 Jan 2012 17:48:56 +0000 (23:48 +0600)]
Add failing test-eio-limit.js
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.