isaacs [Thu, 23 Feb 2012 22:39:58 +0000 (14:39 -0800)]
Merge branch 'v0.7.5-release'
isaacs [Thu, 23 Feb 2012 00:48:25 +0000 (16:48 -0800)]
2012.02.23, Version 0.7.5 (unstable)
* startup speed improvements (Maciej Małecki)
* crypto: add function getDiffieHellman() (Tomasz Buchert)
* buffer: support decoding of URL-safe base64 (Ben Noordhuis)
* Make QueryString.parse() even faster (Brian White)
* url: decode url entities in auth section (Ben Noordhuis)
* http: support PURGE request method (Ben Noordhuis)
* http: Generate Date headers on responses (Mark Nottingham)
* Fix #2762: Add callback to close function. (Mikeal Rogers)
* dgram: fix out-of-bound memory read (Ben Noordhuis)
* repl: add automatic loading of built-in libs (Brandon Benvie)
* repl: remove double calls where possible (Fedor Indutny)
* Readline improvements. Related: #2737 #2756 (Colton Baker)
* build: disable -fomit-frame-pointer on solaris (Dave Pacheco)
* build: arch detection improvements (Nathan Rajlich)
* build: Make a fat binary for the OS X `make pkg`. (Nathan Rajlich)
* jslint src/ and lib/ on 'make test' (isaacs)
isaacs [Thu, 23 Feb 2012 22:11:28 +0000 (14:11 -0800)]
Revert "build: support shared V8 properly"
This reverts commit
3d1b67064085ef486a69c2fc69d195dc35f4f50c.
Breaks build on windows.
https://gist.github.com/1895279
Shigeki Ohtsu [Thu, 23 Feb 2012 12:25:20 +0000 (21:25 +0900)]
build: change default BUILDTYPE of vcbuild.bat
From Debug to Release.
Shigeki Ohtsu [Thu, 23 Feb 2012 11:57:40 +0000 (20:57 +0900)]
build: change default BUILDTYPE of gyp to Release
Shigeki Ohtsu [Wed, 18 Jan 2012 10:18:13 +0000 (19:18 +0900)]
build: fix the case where config.gypi doesn't exist
Shigeki Ohtsu [Wed, 18 Jan 2012 09:37:02 +0000 (18:37 +0900)]
build: make default_configuration consistent with BUILDTYPE
Ben Noordhuis [Thu, 23 Feb 2012 12:11:07 +0000 (04:11 -0800)]
Remove unused variables.
isaacs [Thu, 23 Feb 2012 08:18:17 +0000 (00:18 -0800)]
doc: refer to modules doc rather than src/node.js
isaacs [Thu, 23 Feb 2012 01:04:07 +0000 (17:04 -0800)]
lint, missed in QS speed merge
isaacs [Thu, 23 Feb 2012 00:09:42 +0000 (16:09 -0800)]
Add new authors
isaacs [Thu, 23 Feb 2012 04:57:01 +0000 (20:57 -0800)]
test-fs-watch: Add faster failure, and link to #2813
isaacs [Thu, 23 Feb 2012 04:19:12 +0000 (20:19 -0800)]
Change test fixture from symlink to regular file
The only test using this is test/simple/test-fs-chmod.js, and it was
treating a.js and a1.js as two separate files, resulting in a race
condition. (Interestingly enough, it was *not* using the symlink file to
test lchmod, which uses a different temp file.)
Ben Noordhuis [Thu, 23 Feb 2012 00:52:45 +0000 (01:52 +0100)]
dgram: defer send error to next tick
Ben Noordhuis [Thu, 23 Feb 2012 00:51:27 +0000 (01:51 +0100)]
dgram: fix out-of-bound memory read
Colton Baker [Fri, 17 Feb 2012 13:53:24 +0000 (08:53 -0500)]
readline: ^Z (SIGSTP) handling
Bugfix and update.
- Fixed bug where Node's REPL wouldn't continue when returning from ^Z
(SIGTSTP)
- Removed old readline callback
Readline API update with docs.
- ^Z (SIGTSTP) is now bypassed on Windows systems.
- SIGCONT is now bypassed on Windows systems.
- Docs updated to reflect above.
Colton Baker [Fri, 17 Feb 2012 13:52:06 +0000 (08:52 -0500)]
Removed `rl.on('close', ...)` callback
Nathan Rajlich [Wed, 22 Feb 2012 22:03:22 +0000 (14:03 -0800)]
Make a fat binary for the OS X `make pkg`.
Cam Pedersen [Tue, 21 Feb 2012 22:32:19 +0000 (17:32 -0500)]
docs: remove duplicate socket.write
T.C. Hollingsworth [Wed, 22 Feb 2012 11:57:32 +0000 (04:57 -0700)]
build: support shared V8 properly
-don't pull in bundled v8 as a dependency when node_shared_v8==true
-use node_shared_v8_includes for v8.h and v8-debug.h
Myles Byrne [Sun, 19 Feb 2012 21:27:09 +0000 (15:27 -0600)]
build: remove unused makefile target
isaacs [Tue, 21 Feb 2012 23:26:35 +0000 (15:26 -0800)]
Pause process.stdin in stdin getter
Otherwise, it'll be ref'ed, and keep the process hanging.
Brian White [Tue, 21 Feb 2012 19:08:13 +0000 (14:08 -0500)]
Make QueryString.parse() even faster
isaacs [Tue, 21 Feb 2012 20:03:15 +0000 (12:03 -0800)]
Add Håvard Stranden to AUTHORS file
isaacs [Tue, 21 Feb 2012 20:02:57 +0000 (12:02 -0800)]
Run jslint after tests, not before
Fedor Indutny [Tue, 21 Feb 2012 14:42:15 +0000 (20:42 +0600)]
docs: remove server.pause
This functionality was removed when libuv landed in node. It is useless
and can be easily implemented in user-land.
Ben Noordhuis [Tue, 21 Feb 2012 12:57:38 +0000 (13:57 +0100)]
buffer: support decoding of URL-safe base64
Andreas Madsen [Sat, 18 Feb 2012 17:26:28 +0000 (18:26 +0100)]
docs: remove setSecure() from net module docs
socket.setSecure() was removed in v0.3 and there are no deprecated warning in
code it should be removed from the documentation in 0.7
Tomasz Buchert [Sun, 22 Jan 2012 18:24:37 +0000 (19:24 +0100)]
crypto: add function getDiffieHellman()
Returns a well known, predefined RFC group.
Nathan Rajlich [Mon, 20 Feb 2012 20:27:07 +0000 (12:27 -0800)]
build: better host_arch() definition in configure
On one of my OS X Lion machines, it always reports i386, even though 64-bit
is supported. This lookup better matches how WAF determines the host arch,
which was correctly getting 64-bit even on this screwy machine.
Maciej Małecki [Mon, 20 Feb 2012 19:32:10 +0000 (20:32 +0100)]
tls http https: don't pollute user's `options` object
Maciej Małecki [Mon, 20 Feb 2012 17:59:56 +0000 (18:59 +0100)]
util: add `util._extend` for extending objects
There were 2 duplicates with such functionality in `cluster` and
`child_process` modules which were replaced by this function.
Andreas Madsen [Mon, 20 Feb 2012 18:55:37 +0000 (19:55 +0100)]
core: ignore too many arguments, don't assert
Ben Noordhuis [Mon, 20 Feb 2012 16:24:13 +0000 (17:24 +0100)]
test: update HTTP basic auth test
Verify that URL-encoded entities are properly encoded into the Authorization
header.
Ben Noordhuis [Fri, 17 Feb 2012 17:08:48 +0000 (18:08 +0100)]
url: decode url entities in auth section
Fixes #2736.
Fedor Indutny [Mon, 20 Feb 2012 16:03:14 +0000 (22:03 +0600)]
tests: kill process group on failure
Test suite is often leaving `stray` processes on failure. They are
harmless, but may cause future test runs fail because those `stray`
processes are occupying `common.PORT` or due to some other reasons.
Killing whole process group on test suite failure should help in such
cases.
Ben Noordhuis [Fri, 17 Feb 2012 22:45:50 +0000 (23:45 +0100)]
http: support PURGE request method
Ben Noordhuis [Mon, 20 Feb 2012 15:12:33 +0000 (16:12 +0100)]
http_parser: upgrade to 62110ef
Maciej Małecki [Sun, 19 Feb 2012 20:16:50 +0000 (21:16 +0100)]
startup: use `path.resolve` instead of `path.join(cwd, ...)`
Maciej Małecki [Sat, 18 Feb 2012 15:45:22 +0000 (16:45 +0100)]
startup: move `EventEmitter` closer to the lookup
This makes startup faster by ~0.2 ms on my computer.
Maciej Małecki [Sat, 18 Feb 2012 15:32:06 +0000 (16:32 +0100)]
startup: use `.hasOwnProperty` instead of `in`
Benchmarks show that `.hasOwnProperty` is faster than `in` in V8. It
makes startup ~0.5 ms faster on my computer.
Brandon Benvie [Sun, 25 Dec 2011 04:39:57 +0000 (23:39 -0500)]
repl: add automatic loading of built-in libs
Luke Gallagher [Sat, 18 Feb 2012 05:28:13 +0000 (16:28 +1100)]
util: fix typo in lib/util.js
Ben Noordhuis [Mon, 20 Feb 2012 12:24:21 +0000 (13:24 +0100)]
test: don't let debugger listen on common.PORT
simple/test-debugger-repl-utf8 has a tendency to fail and leave behind a stray
process that listens on common.PORT, making later tests fail with EADDRINUSE.
Ben Noordhuis [Mon, 20 Feb 2012 12:22:12 +0000 (13:22 +0100)]
test: include common.js in all tests
Nathan Rajlich [Sat, 18 Feb 2012 20:06:31 +0000 (12:06 -0800)]
build: map i686 to ia32
Nathan Rajlich [Sat, 18 Feb 2012 20:03:47 +0000 (12:03 -0800)]
build: use proper `-arch` for target_arch on OS X
Nathan Rajlich [Sat, 18 Feb 2012 20:02:53 +0000 (12:02 -0800)]
build: test `uname -m` first, then `uname -p`
Prevent false i386 on 64-bit OS X.
Ben Noordhuis [Mon, 20 Feb 2012 10:47:03 +0000 (11:47 +0100)]
gyp: update to r1214
koichik [Sat, 18 Feb 2012 09:13:17 +0000 (18:13 +0900)]
test: fix test-tls-over-http-tunnel with v0.7
Mikeal Rogers [Thu, 16 Feb 2012 19:52:47 +0000 (11:52 -0800)]
Issue #2762. Add callback to close function.
isaacs [Sun, 19 Feb 2012 00:04:10 +0000 (16:04 -0800)]
jslint src/ and lib/ on 'make test'
isaacs [Sat, 18 Feb 2012 23:01:35 +0000 (15:01 -0800)]
Lint all the JavaScripts.
isaacs [Sat, 18 Feb 2012 17:46:58 +0000 (09:46 -0800)]
Merge remote-tracking branch 'ry/v0.6' into v0.6-merge
Conflicts:
AUTHORS
ChangeLog
Makefile
doc/about/index.html
doc/api/tls.markdown
doc/community/index.html
doc/index.html
doc/logos/index.html
doc/template.html
lib/http.js
lib/tls.js
src/node_version.h
src/platform_win32.cc
test/simple/test-tls-connect-given-socket.js
Paul Vorbach [Sat, 18 Feb 2012 00:40:26 +0000 (01:40 +0100)]
docs: fix quotation style in the webserver example
Replace " by '
Nathan Rajlich [Fri, 17 Feb 2012 20:41:39 +0000 (12:41 -0800)]
build: remove 'config.mk' during `make distclean`
Dave Pacheco [Wed, 8 Feb 2012 01:21:51 +0000 (17:21 -0800)]
build: disable -fomit-frame-pointer on solaris
This "optimization" cripples debuggability and has dubious performance value,
so we want to disable it at least on SmartOS.
Ben Noordhuis [Fri, 17 Feb 2012 22:58:42 +0000 (23:58 +0100)]
docs: fix tls markdown
isaacs [Fri, 17 Feb 2012 21:35:52 +0000 (13:35 -0800)]
Merge branch 'v0.6.11-release' into v0.6
isaacs [Fri, 17 Feb 2012 21:33:58 +0000 (13:33 -0800)]
Now working on 0.6.12
isaacs [Fri, 17 Feb 2012 00:04:34 +0000 (16:04 -0800)]
2012.02.17 Version 0.6.11 (stable)
* http: allow multiple WebSocket RFC6455 headers (Einar Otto Stangvik)
* http: allow multiple WWW-Authenticate headers (Ben Noordhuis)
* windows: support unicode argv and environment variables (Bert Belder)
* tls: mitigate session renegotiation attacks (Ben Noordhuis)
* tcp, pipe: don't assert on uv_accept() errors (Ben Noordhuis)
* tls: Allow establishing secure connection on the existing socket (koichik)
* dgram: handle close of dgram socket before DNS lookup completes (Seth Fitzsimmons)
* windows: Support half-duplex pipes (Igor Zinkovsky)
* build: disable omit-frame-pointer on solaris systems (Dave Pacheco)
* debugger: fix --debug-brk (Ben Noordhuis)
* net: fix large file downloads failing (koichik)
* fs: fix ReadStream failure to read from existing fd (Christopher Jeffrey)
* net: destroy socket on DNS error (Stefan Rusu)
* dtrace: add missing translator (Dave Pacheco)
* unix: don't flush tty on switch to raw mode (Ben Noordhuis)
* windows: reset brightness when reverting to default text color (Bert Belder)
* npm: update to 1.1.1
- Update which, fstream, mkdirp, request, and rimraf
- Fix #2123 Set path properly for lifecycle scripts on windows
- Mark the root as seen, so we don't recurse into it. Fixes #1838. (Martin Cooper)
isaacs [Fri, 17 Feb 2012 18:10:02 +0000 (10:10 -0800)]
Revert "cluster: propagate bind errors"
This reverts commit
30e462e91937ced3847af3fe9c393ebd32294b68.
isaacs [Fri, 17 Feb 2012 18:08:40 +0000 (10:08 -0800)]
Fix #2770 Compile the OS X pkg as ia32
Maciej Małecki [Fri, 17 Feb 2012 18:35:05 +0000 (19:35 +0100)]
debugger: rename `process.debug_port` to `process.debugPort`
We should comply to to camelCase naming convention.
Fedor Indutny [Fri, 17 Feb 2012 18:18:11 +0000 (00:18 +0600)]
repl: remove double calls where possible
Repl is doing double evaluation of code: wrapped in parens and without
them. That's needed to allow users typing multiline chunks of code by
handling syntax errors on repl side. However if function declaration is
wrapped in parens (`(function a() {})`) calling it will be impossible,
so we're evaluating functions twice. That works fine for declaration,
but if entered code chunk returns function - it should not be called
twice.
fix #2773
Shannen Saez [Thu, 16 Feb 2012 06:47:23 +0000 (17:47 +1100)]
docs: remove unused javascript includes
Shannen Saez [Thu, 16 Feb 2012 06:38:05 +0000 (17:38 +1100)]
docs: add lang="en" and remove redundant types
Nathan Rajlich [Fri, 17 Feb 2012 00:33:40 +0000 (16:33 -0800)]
repl: make tab completion work on non-objects
isaacs [Thu, 16 Feb 2012 22:52:03 +0000 (14:52 -0800)]
Upgrade uv to
86ebe48660e
Ben Noordhuis [Fri, 10 Feb 2012 19:26:56 +0000 (20:26 +0100)]
cluster: propagate bind errors
This commit fixes a bug where the cluster module failed to propagate EADDRINUSE
errors.
When a worker starts a (net, http) server, it requests the listen socket from
its master who then creates and binds the socket.
Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead
defer the error until a later syscall. libuv mimics this behaviour to provide
consistent behaviour across platforms but that means the worker could end up
with a socket that is not actually bound to the requested addresss.
That's why the worker now checks if the socket is bound, raising EADDRINUSE if
that's not the case.
Fixes #2721.
einaros [Thu, 16 Feb 2012 09:42:13 +0000 (10:42 +0100)]
Add WebSocket RFC6455 multiheader fields to the http parser.
Ben Noordhuis [Tue, 14 Feb 2012 23:20:54 +0000 (00:20 +0100)]
http: allow multiple WWW-Authenticate headers
Bert Belder [Thu, 16 Feb 2012 21:19:48 +0000 (22:19 +0100)]
Make win32 ansi api usage explicit
Use widechar versions in a couple of places.
Don't use C-style cast in C++ code.
Bert Belder [Thu, 16 Feb 2012 19:20:07 +0000 (20:20 +0100)]
Windows: another attempt to support unicode argv
Bert Belder [Thu, 16 Feb 2012 19:05:18 +0000 (20:05 +0100)]
Revert "Windows: support non-ansi command line arguments"
CommandLineToArgvW doesn't behave exactly the same as the crt, which makes it useless.
This reverts commit
ef032cbe85b46584304c665b539b4f7561c4c26c.
Ben Noordhuis [Wed, 15 Feb 2012 18:26:43 +0000 (19:26 +0100)]
tls: mitigate session renegotiation attacks
The TLS protocol allows (and sometimes requires) clients to renegotiate the
session. However, renegotiation requires a disproportional amount of server-side
resources, particularly CPU time, which makes it a potential vector for
denial-of-service attacks.
To mitigate this issue, we keep track of and limit the number of renegotiation
requests over time, emitting an error if the threshold is exceeded.
koichik [Thu, 16 Feb 2012 17:02:02 +0000 (02:02 +0900)]
docs: removed unnecessary STARTTLS section
Colton Baker [Wed, 15 Feb 2012 14:08:26 +0000 (09:08 -0500)]
Readline proposal and bugfixes. Related: #2737 #2756
- Removed extra newline from .question(); Users can input a
newline if it they require it.
- Removed .close() due to it only emulating closing, causing a bug where
readline is left open to trigger events such as .on('line', ...').
- Removed ._attemptClose()
- .pause() now triggers event .on('pause', ...)
- .resume() now triggers event .on('resume', ...)
- CTRL-C (SIGINT) in readline will now default to .pause() if no SIGINT event
is present.
- CTRL-D (delete right) will also default to .pause() if there is nothing to
delete (signaling the end of the file).
- Added new event `SIGTSTP`
- Added new event `SIGCONT`
- Added `resume` to `write` to resume the stream if paused.
- Docs updated.
- Updated repl.js
Maciej Małecki [Thu, 16 Feb 2012 03:21:16 +0000 (04:21 +0100)]
process: remove old notices about removed methods
These methods were removed a long time ago. Keeping these notices here
makes no sense anymore.
Also, removing this part of code slightly speeds up the startup.
Bert Belder [Wed, 15 Feb 2012 22:50:04 +0000 (23:50 +0100)]
Windows: get rid of process._cwdForDrive()
Bert Belder [Wed, 15 Feb 2012 22:34:18 +0000 (23:34 +0100)]
Windows: use unicode environment
Nathan Rajlich [Wed, 15 Feb 2012 19:50:51 +0000 (11:50 -0800)]
Default to static linking CRT on Windows.
Mark Nottingham [Tue, 14 Feb 2012 20:38:24 +0000 (07:38 +1100)]
Generate Date headers on responses when not already present.
isaacs [Wed, 15 Feb 2012 19:37:48 +0000 (11:37 -0800)]
Merge branch 'v0.7.4-release'
isaacs [Wed, 15 Feb 2012 19:37:34 +0000 (11:37 -0800)]
Now working on 0.7.5
Ben Noordhuis [Tue, 14 Feb 2012 23:20:54 +0000 (00:20 +0100)]
http: allow multiple WWW-Authenticate headers
Ben Noordhuis [Wed, 15 Feb 2012 15:45:02 +0000 (16:45 +0100)]
tcp, pipe: don't assert on uv_accept() errors
It's possible for a new connection to be closed in the window between the
accept() syscall and the call to uv_accept(). Deal with it and move on, don't
assert.
isaacs [Tue, 14 Feb 2012 22:31:00 +0000 (14:31 -0800)]
2012.02.14, Version 0.7.4 (unstable)
* Upgrade V8 to 3.9.5
* Upgrade npm to 1.1.1
* build: Detect host_arch better (Karl Skomski)
* debugger: export `debug_port` to `process` (Fedor Indutny)
* api docs: CSS bug fixes (isaacs)
* build: use -fPIC for native addons on UNIX (Nathan Rajlich)
* Re-add top-level v8::Locker (Marcel Laverdet)
* Move images out of the dist tarballs (isaacs)
* libuv: Remove uv_export and uv_import (Ben Noordhuis)
* build: Support x64 build on Windows (Igor Zinkovsky)
isaacs [Tue, 14 Feb 2012 22:34:37 +0000 (14:34 -0800)]
robots.txt
Igor Zinkovsky [Tue, 14 Feb 2012 08:03:13 +0000 (00:03 -0800)]
add tls-over-http-tunnel test
koichik [Mon, 9 Jan 2012 01:28:49 +0000 (02:28 +0100)]
tls: Allow establishing secure connection on the existing socket
Seth Fitzsimmons [Tue, 14 Feb 2012 03:30:09 +0000 (19:30 -0800)]
dgram: handle close of dgram socket before DNS lookup completes
isaacs [Mon, 13 Feb 2012 23:06:55 +0000 (15:06 -0800)]
doc: Wrap API doc content in div#apicontent
isaacs [Sat, 11 Feb 2012 08:16:40 +0000 (00:16 -0800)]
css: Restrict li fix to #apicontent only.
isaacs [Mon, 13 Feb 2012 22:47:50 +0000 (14:47 -0800)]
docs: Move images out of the dist tarball
This puts all images in doc/images/ and references them via
http://nodejs.org/images/.
Any complaints about copyright usage etc. can thus be node/joyent's
problem, rather than the problem of a downstream distribution channel.
Fedor Indutny [Mon, 13 Feb 2012 20:36:08 +0000 (02:36 +0600)]
Fix linker error on some gcc version on osx
* See: http://codereview.chromium.org/9382033/
Bert Belder [Mon, 13 Feb 2012 19:55:29 +0000 (20:55 +0100)]
Windows: support non-ansi command line arguments
isaacs [Mon, 13 Feb 2012 19:10:12 +0000 (11:10 -0800)]
isaacs [Mon, 13 Feb 2012 18:11:28 +0000 (10:11 -0800)]
Patches floating on V8
Only SConstruct and build/common.gypi at this point. All
others are accepted upstream, which greatly simplifies things.
isaacs [Mon, 13 Feb 2012 18:04:53 +0000 (10:04 -0800)]
Upgrade V8 to 3.9.5