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
Karl Skomski [Mon, 13 Feb 2012 13:28:43 +0000 (14:28 +0100)]
build: detect host_arch better
Bert Belder [Sun, 12 Feb 2012 20:07:31 +0000 (21:07 +0100)]
Add libuv test that was omitted in last libuv upgrade
Bert Belder [Sun, 12 Feb 2012 20:04:03 +0000 (21:04 +0100)]
Fix vcbuild.bat, print error when an unrecognized option is encountered
Fedor Indutny [Sun, 12 Feb 2012 15:53:43 +0000 (21:53 +0600)]
debugger: export `debug_port` to `process`
`process.debug_port` is useful for changing debugger port in runtime,
before starting it (via SIGUSR1).
Using `--port=` argument for debugger repl, tests will run debugger
server on a `common.PORT` (as it usually does for any other servers).
`process._debugEnd()` stops debugger and its server.
* debugger: implemented process._debugEnd(), `node debug --port=5858 app.js`
* test: start debugger repl on common.PORT
* fixes #2613
* fixes #2614
Ben Noordhuis [Sun, 12 Feb 2012 15:12:26 +0000 (16:12 +0100)]
Merge remote-tracking branch 'origin/v0.6'
Conflicts:
common.gypi
Ben Noordhuis [Sun, 12 Feb 2012 15:12:04 +0000 (16:12 +0100)]
uv: upgrade to 4e1f2b1
koichik [Sat, 11 Feb 2012 17:05:30 +0000 (02:05 +0900)]
test: fix timing sensitivity in test-net-write-slow
Ben Noordhuis [Sat, 11 Feb 2012 13:24:15 +0000 (14:24 +0100)]
docs: update net.Server.address() documentation
isaacs [Sat, 11 Feb 2012 04:55:21 +0000 (20:55 -0800)]
apidoc css: Footer li's should be sans-serif
isaacs [Sat, 11 Feb 2012 03:38:13 +0000 (19:38 -0800)]
Fix #2690 css: Set font size in apidoc LIs to match Ps
Igor Zinkovsky [Fri, 10 Feb 2012 09:35:35 +0000 (01:35 -0800)]
set readable/writable for pipes
Igor Zinkovsky [Fri, 10 Feb 2012 19:27:12 +0000 (11:27 -0800)]
Ben Noordhuis [Fri, 10 Feb 2012 17:51:31 +0000 (18:51 +0100)]
docs: clarify http 'data' callback
Fixes #2733.
Ben Noordhuis [Thu, 9 Feb 2012 16:14:39 +0000 (17:14 +0100)]
docs: document tls/crypto `ciphers` option
Hitherto undocumented option that lets the user select the list of ciphers to
use or exclude in a SSL/TLS session.
Nathan Rajlich [Thu, 9 Feb 2012 03:47:31 +0000 (19:47 -0800)]
build: use -fPIC for native addons on UNIX
No -fPIC on 32 bits Linux but do enable for the other UNIX flavors.
Ben Noordhuis [Thu, 9 Feb 2012 05:22:50 +0000 (06:22 +0100)]
test: add cluster 'bind twice' test
This test starts two clustered HTTP servers on the same port. It expects the
first cluster to succeed and the second cluster to fail with EADDRINUSE.
isaacs [Wed, 8 Feb 2012 20:36:20 +0000 (12:36 -0800)]
npm: update to 1.1.1
Andreas Madsen [Tue, 7 Feb 2012 20:10:11 +0000 (21:10 +0100)]
child_process: stop .disconnect() call if channel is diconnected
Dave Pacheco [Wed, 8 Feb 2012 00:50:05 +0000 (16:50 -0800)]
disable omit-frame-pointer on solaris systems
isaacs [Wed, 8 Feb 2012 17:59:31 +0000 (09:59 -0800)]
Makefile: Don't use ** in globs
Many shells don't have GLOBSTAR turned on by default. This is
why uv and v8 so often don't get cleaned out properly.
Marcel Laverdet [Wed, 8 Feb 2012 00:10:22 +0000 (18:10 -0600)]
Re-add top-level v8::Locker
11d1eca9 added a v8 locker to ease development of 3rd party threading
extensions but it created a condition which would cause node to exit
uncleanly while in debug mode; it was reverted in
7543c38d.
The problem here is that the Locker was being disposed after V8 was torn
down. Adding some scoping fixes that.
isaacs [Wed, 8 Feb 2012 00:44:57 +0000 (16:44 -0800)]
Now working on 0.7.4
isaacs [Tue, 7 Feb 2012 23:42:33 +0000 (15:42 -0800)]
2012.02.07, Version 0.7.3 (unstable)
* Upgrade V8 to 3.9.2
* Revert support for isolates. (Ben Noordhuis)
* cluster: Cleanup docs, event handling, and process.disconnect (Andreas Madsen)
* gyp_addon: link with node.lib on Windows (Nathan Rajlich)
* http: fix case where http-parser is freed twice (koichik)
* Windows: disable RTTI and exceptions (Bert Belder)
isaacs [Tue, 7 Feb 2012 23:41:21 +0000 (15:41 -0800)]
Check the version before building tarball
I keep forgetting to do this. It's such a stupid thing.
Ben Noordhuis [Tue, 7 Feb 2012 22:42:38 +0000 (23:42 +0100)]
test: add --debug-brk regression test
Ben Noordhuis [Tue, 7 Feb 2012 22:11:34 +0000 (23:11 +0100)]
debugger: fix --debug-brk
Commit 840229a forgot to update the debugger special case in lib/module.js
Fixes #2710.
Igor Zinkovsky [Tue, 7 Feb 2012 06:53:39 +0000 (22:53 -0800)]
enable x64 windows build
use "vcbuild x64" to do x64 build of node.exe
isaacs [Tue, 7 Feb 2012 07:01:17 +0000 (23:01 -0800)]
Fix merge-conflicts in HTML
Thanks, @AndreasMadsen
isaacs [Mon, 6 Feb 2012 23:43:21 +0000 (15:43 -0800)]
Merge remote-tracking branch 'ry/v0.6'
Conflicts:
ChangeLog
deps/v8/src/version.cc
deps/v8/tools/gyp/v8.gyp
doc/about/index.html
doc/community/index.html
doc/index.html
doc/logos/index.html
doc/template.html
lib/path.js
lib/querystring.js
src/node_version.h
isaacs [Mon, 6 Feb 2012 23:22:52 +0000 (15:22 -0800)]
v8: Remove OutputDirectory from build/common.gypi
isaacs [Mon, 6 Feb 2012 23:21:49 +0000 (15:21 -0800)]
Upgrade V8 to 3.9.2
Andreas Madsen [Wed, 1 Feb 2012 16:27:14 +0000 (17:27 +0100)]
[doc] cluster: remove part about autoFork since this do not exist
Andreas Madsen [Wed, 1 Feb 2012 16:23:25 +0000 (17:23 +0100)]
cluster: use process.disconnect method
After adding a .disconect method and connected flag in child_process
we should no longer use the process._channel object.
Andreas Madsen [Wed, 1 Feb 2012 16:16:15 +0000 (17:16 +0100)]
cluster: simplify process event handling
This simplify the internalMessage and exit event handling
And simply relay message and error event to the worker object
Note that the error event was not relayed before
Nathan Rajlich [Fri, 6 Jan 2012 23:48:23 +0000 (15:48 -0800)]
gyp_addon: link with node.lib on Windows
Closes GH-2685
koichik [Mon, 6 Feb 2012 17:24:50 +0000 (02:24 +0900)]
http: fix http-parser is freed twice
after response to CONNECT/Upgrade request.
Fixes #2704.
Ben Noordhuis [Mon, 6 Feb 2012 16:47:09 +0000 (17:47 +0100)]
test: remove deprecated isolates test
Bert Belder [Mon, 6 Feb 2012 14:37:37 +0000 (15:37 +0100)]
Windows: disable RTTI and exceptions
Ben Noordhuis [Fri, 3 Feb 2012 15:32:00 +0000 (16:32 +0100)]
Revert support for isolates.
It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh
the potential stability issues and intrusive changes to the code base that
first-class support for isolates requires.
Hence, this commit backs out all isolates-related changes.
Good bye, isolates. We hardly knew ye.
Ben Noordhuis [Sun, 5 Feb 2012 22:30:14 +0000 (23:30 +0100)]
Revert "Add explicit v8 locker"
This reverts commit
11d1eca9f3c465045828e3a00b103620c8253258.
It sporadically (but reproducibly) triggers an assert inside V8:
Fatal error in /path/to/node/deps/v8/src/isolate.cc, line 1857
CHECK(CurrentPerIsolateThreadData()->isolate_ == this) failed
Needs further investigation.
koichik [Sun, 5 Feb 2012 10:11:54 +0000 (19:11 +0900)]
doc: add the note about 'data' event
Refs #2691.
koichik [Fri, 3 Feb 2012 11:09:30 +0000 (20:09 +0900)]
net: fix large file downloads failing
Fixes #2678.
Marcel Laverdet [Wed, 10 Aug 2011 21:39:03 +0000 (16:39 -0500)]
Add explicit v8 locker
v8 requires a lock of each thread using the vm, but if none is
explicitly is created it will implicitly create one for you. This
creates issues when trying to build modules which use v8's
multi-threading features because there's no lock to unlock.
Christopher Jeffrey [Thu, 2 Feb 2012 06:44:22 +0000 (00:44 -0600)]
fs: fix ReadStream fails to read from existing fd
A ReadStream constructed from an existing file descriptor failed to start
reading automatically. Avoids a userspace call to ReadStream.prototype._read().
Stefan Rusu [Fri, 3 Feb 2012 16:29:58 +0000 (18:29 +0200)]
test: add tcp and https DNS error tests
net-dns-error: specifc test for the net DNS issue.
http-dns-error: now it works for HTTPS as well.
Stefan Rusu [Fri, 3 Feb 2012 16:27:53 +0000 (18:27 +0200)]
net: destroy socket on DNS error
The socket was never destroyed on DNS errors. This broke some clients, including
lib/https.js.
Bert Belder [Fri, 3 Feb 2012 14:37:46 +0000 (15:37 +0100)]
Rename some occurrences of `process_1` back to `process`
Dave Pacheco [Fri, 3 Feb 2012 01:02:09 +0000 (17:02 -0800)]
dtrace: add missing translator
Add missing translator for node_dtrace_http_*_request_t types.
Fixes #2667.
isaacs [Fri, 3 Feb 2012 01:19:28 +0000 (17:19 -0800)]
Now working on v0.6.11
isaacs [Fri, 3 Feb 2012 00:04:47 +0000 (16:04 -0800)]
2012.02.02, Version 0.6.10 (stable)
* Update V8 to 3.6.6.20
* Add npm msysgit bash shim to msi installer (isaacs)
* buffers: fix intermittent out of bounds error (Ben Noordhuis)
* buffers: honor length argument in base64 decoder (Ben Noordhuis)
* windows: Fix path.exists regression (Bert Belder)
* Make QueryString.parse run faster (Philip Tellis)
* http: avoid freeing http-parser objects too early (koichik)
* timers: add v0.4 compatibility hack (Ben Noordhuis)
* Proper EPERM error code support (Igor Zinkovsky, Brandon Philips)
* dgram: Implement udp multicast methods on windows (Bert Belder)
isaacs [Fri, 3 Feb 2012 00:56:23 +0000 (16:56 -0800)]
msi: npm bash shim fixes