platform/upstream/nodejs.git
13 years agoMinGW: OpenSSL support
Bert Belder [Wed, 16 Feb 2011 04:09:02 +0000 (05:09 +0100)]
MinGW: OpenSSL support

13 years agohttps was missing 'end' event sometimes
Ryan Dahl [Wed, 16 Feb 2011 00:45:54 +0000 (16:45 -0800)]
https was missing 'end' event sometimes

Closes GH-671.

13 years agoFixed null signal preservation
Tj Holowaychuk [Tue, 15 Feb 2011 17:40:41 +0000 (09:40 -0800)]
Fixed null signal preservation

Closes GH-674.

13 years agoDisable test-tls-large-push, taking too long
Ryan Dahl [Tue, 15 Feb 2011 22:06:23 +0000 (14:06 -0800)]
Disable test-tls-large-push, taking too long

13 years agoRefactor fs.open parameter handling
Felix Geisendörfer [Tue, 15 Feb 2011 13:47:30 +0000 (08:47 -0500)]
Refactor fs.open parameter handling

Improvements:
* Removes an unnecessary variable
* Avoids having two variables with the same name
* Avoids re-declaring an existing parameter
* Removes an unnecessary ternary operator
* Avoid an inline short-circuit expression for greater clarity.

13 years agoCorrect fs.open API documentation
Felix Geisendörfer [Tue, 15 Feb 2011 13:41:17 +0000 (08:41 -0500)]
Correct fs.open API documentation

The fact that the mode parameter is optional for fs.open and
fs.openSync was not documented.

13 years agoFix: fs.open callback did not fire
Felix Geisendörfer [Tue, 15 Feb 2011 13:30:58 +0000 (08:30 -0500)]
Fix: fs.open callback did not fire

Problem: Omitting the mode parameter causes the provided callback
parameter to never fire. This was originally fixed in 6078c37b and
later broken in 5f2e9093.

Solution: Overwriting the value of a parameter also overwrites the
reference in the arguments object. This patch works arround this
fact by not touching the mode parameter until a reference to the
callback has been established.

13 years agoImprove V8 support for Cygwin
Bert Belder [Tue, 15 Feb 2011 19:48:05 +0000 (20:48 +0100)]
Improve V8 support for Cygwin

Should re-enable crankshaft; can build w/ snapshot again.

13 years agodefault to port 80 for http.request
Ryan Dahl [Tue, 15 Feb 2011 18:13:09 +0000 (10:13 -0800)]
default to port 80 for http.request

13 years agoescape chars on man page
Ryan Dahl [Tue, 15 Feb 2011 02:37:43 +0000 (18:37 -0800)]
escape chars on man page

13 years agofix doc
Ryan Dahl [Tue, 15 Feb 2011 02:35:34 +0000 (18:35 -0800)]
fix doc

thanks Toshihiro

13 years agoAdd script for running V8 benchmarks
Ryan Dahl [Tue, 15 Feb 2011 01:26:54 +0000 (17:26 -0800)]
Add script for running V8 benchmarks

13 years agoFix for DNS fail in HTTP request
Richard Rodger [Thu, 10 Feb 2011 10:57:15 +0000 (10:57 +0000)]
Fix for DNS fail in HTTP request

Closes GH-653.

13 years agoMake the repl respect node_modules folders.
isaacs [Fri, 11 Feb 2011 23:53:22 +0000 (15:53 -0800)]
Make the repl respect node_modules folders.

This is important so that in the future, this will work:

    $ cd ~/dev/js/some-project
    $ npm install redis
    $ node
    > require.resolve('redis')
    '/Users/isaacs/dev/js/some-project/node_modules/redis/index.js'

13 years agoFixed field merging with progressive fields on writeHead()
Tj Holowaychuk [Fri, 11 Feb 2011 00:29:34 +0000 (16:29 -0800)]
Fixed field merging with progressive fields on writeHead()

13 years agoAdd newline to platform-cygwin.cc
Ryan Dahl [Mon, 14 Feb 2011 17:36:28 +0000 (09:36 -0800)]
Add newline to platform-cygwin.cc

13 years agoAdd http client to v0.4 announcement
Ryan Dahl [Thu, 10 Feb 2011 12:58:33 +0000 (04:58 -0800)]
Add http client to v0.4 announcement

13 years agoNow working on v0.4.1
Ryan Dahl [Thu, 10 Feb 2011 12:58:54 +0000 (04:58 -0800)]
Now working on v0.4.1

13 years agoBump version to v0.4.0 v0.4.0
Ryan Dahl [Thu, 10 Feb 2011 09:45:15 +0000 (01:45 -0800)]
Bump version to v0.4.0

13 years agoAdd support for mutable/implicit headers for http.
Tim Caswell [Thu, 10 Feb 2011 10:18:13 +0000 (02:18 -0800)]
Add support for mutable/implicit headers for http.

This works for both ServerResponse and ClientRequest.
Adds three new methods as a couple properties to to OutgoingMessage objects.
Tests by Charlie Robbins.

Change-Id: Ib6f3829798e8f11dd2b6136e61df254f1564807e

13 years agoTLS: CRL support
Theo Schlossnagle [Tue, 23 Nov 2010 18:00:42 +0000 (13:00 -0500)]
TLS: CRL support

Needs more tests.

13 years agoAdd 'pipe' event
Mikeal Rogers [Thu, 10 Feb 2011 07:02:51 +0000 (23:02 -0800)]
Add 'pipe' event

13 years agoFollow-up fix for v8 cygwin build
Bert Belder [Thu, 10 Feb 2011 04:24:39 +0000 (05:24 +0100)]
Follow-up fix for v8 cygwin build

13 years agoV8 cygwin support
Bert Belder [Thu, 10 Feb 2011 03:02:59 +0000 (04:02 +0100)]
V8 cygwin support

13 years agofix verifier.verify() docs
Ryan Dahl [Thu, 10 Feb 2011 03:07:17 +0000 (19:07 -0800)]
fix verifier.verify() docs

Thanks Sitelier. Closes GH-651.

13 years agoNew DTrace probes from CA team
Ryan Dahl [Thu, 10 Feb 2011 02:50:26 +0000 (18:50 -0800)]
New DTrace probes from CA team

13 years agoNew keys, agent1-cert.pem was expired
Ryan Dahl [Thu, 10 Feb 2011 02:10:55 +0000 (18:10 -0800)]
New keys, agent1-cert.pem was expired

13 years agoTLS: handle cert chains
Ryan Dahl [Thu, 10 Feb 2011 01:51:05 +0000 (17:51 -0800)]
TLS: handle cert chains

13 years agoEdit module docs
Ryan Dahl [Thu, 10 Feb 2011 01:48:22 +0000 (17:48 -0800)]
Edit module docs

13 years agoDocument module loading
isaacs [Wed, 9 Feb 2011 21:56:59 +0000 (13:56 -0800)]
Document module loading

13 years agoWorkaround for V8 bug 884
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884

See http://code.google.com/p/v8/issues/detail?id=884

13 years agoBetter assert in the node_modules tests
isaacs [Wed, 9 Feb 2011 21:52:29 +0000 (13:52 -0800)]
Better assert in the node_modules tests

13 years agonode_modules module lookup, +docs and test.
isaacs [Wed, 9 Feb 2011 21:28:30 +0000 (13:28 -0800)]
node_modules module lookup, +docs and test.

13 years agoTLS: Don't give up if you can't write 0 bytes
Ryan Dahl [Wed, 9 Feb 2011 21:27:15 +0000 (13:27 -0800)]
TLS: Don't give up if you can't write 0 bytes

13 years agoUpgrade V8 to 3.1.2
Ryan Dahl [Wed, 9 Feb 2011 18:24:26 +0000 (10:24 -0800)]
Upgrade V8 to 3.1.2

13 years agobetter debug messages in net and tls
Ryan Dahl [Wed, 9 Feb 2011 18:23:26 +0000 (10:23 -0800)]
better debug messages in net and tls

13 years agoRemove unused parameter from crypto::Handle*Error
Ryan Dahl [Wed, 9 Feb 2011 09:30:31 +0000 (01:30 -0800)]
Remove unused parameter from crypto::Handle*Error

13 years agoFix fs.realpathSync on windows
Bert Belder [Wed, 9 Feb 2011 03:07:18 +0000 (04:07 +0100)]
Fix fs.realpathSync on windows

13 years agoWindows: child process fixes
Bert Belder [Wed, 9 Feb 2011 02:30:03 +0000 (03:30 +0100)]
Windows: child process fixes

13 years agotls: split bio errors from ssl errors
Ryan Dahl [Wed, 9 Feb 2011 05:15:46 +0000 (21:15 -0800)]
tls: split bio errors from ssl errors

13 years agoSupport caching for realpath, use in module load
isaacs [Wed, 9 Feb 2011 00:54:25 +0000 (16:54 -0800)]
Support caching for realpath, use in module load

This adds support for a cache object to be passed to the
fs.realpath and fs.realpathSync functions.  The Module loader keeps an
object around which caches the resulting realpaths that it looks up in
the process of loading modules.

This means that (at least as a result of loading modules) the same files
and folders are never lstat()ed more than once.  To reset the cache, set
require("module")._realpathCache to an empty object.  To disable the
caching behavior, set it to null.

13 years agotls: only emit data after 'secure' event
Ryan Dahl [Wed, 9 Feb 2011 01:29:33 +0000 (17:29 -0800)]
tls: only emit data after 'secure' event

13 years agoDon't make unnecessary getcwd calls from path.resolve
Bert Belder [Tue, 8 Feb 2011 21:56:03 +0000 (22:56 +0100)]
Don't make unnecessary getcwd calls from path.resolve

13 years ago(won't) fix test-next-tick-ordering
Ryan Dahl [Tue, 8 Feb 2011 05:15:58 +0000 (21:15 -0800)]
(won't) fix test-next-tick-ordering

13 years agotls fixes
Ryan Dahl [Tue, 8 Feb 2011 05:11:43 +0000 (21:11 -0800)]
tls fixes

13 years agoFix dns on windows
Bert Belder [Mon, 7 Feb 2011 22:39:36 +0000 (23:39 +0100)]
Fix dns on windows

13 years agostderr should be EventEmitter even if it doesn't emit anything
Ryan Dahl [Mon, 7 Feb 2011 23:14:21 +0000 (15:14 -0800)]
stderr should be EventEmitter even if it doesn't emit anything

13 years agoCloses GH-609 Support array-ish args to Buffer ctor
isaacs [Tue, 1 Feb 2011 08:06:44 +0000 (00:06 -0800)]
Closes GH-609 Support array-ish args to Buffer ctor

Any array-ish thing (whether a Buffer, an Array, or just an object with
a numeric "length") is interpreted as a list of bytes.

13 years agoSupport octal strings for modes
isaacs [Tue, 25 Jan 2011 18:40:12 +0000 (10:40 -0800)]
Support octal strings for modes

This allows the various fs utilities and process.umask to be used in
ECMAScript 5 Strict Mode, where the octal literal format is verboten,
without requiring users to litter their code with a bunch of parseInt
calls.

13 years agoCloses GH-645. Document tty.getWindowSize
Ryan Dahl [Mon, 7 Feb 2011 21:46:15 +0000 (13:46 -0800)]
Closes GH-645. Document tty.getWindowSize

13 years agoUCS-2 support
Konstantin Käfer [Sun, 6 Feb 2011 20:49:52 +0000 (15:49 -0500)]
UCS-2 support

Closes GH-644.

13 years agoImpove fs.WatchFile doc
Ryan Dahl [Mon, 7 Feb 2011 21:11:03 +0000 (13:11 -0800)]
Impove fs.WatchFile doc

13 years agohttp: fix buffer writes to outgoing messages
Russell Haering [Sun, 6 Feb 2011 00:31:27 +0000 (16:31 -0800)]
http: fix buffer writes to outgoing messages

13 years agocmake fixes
Daniel Gröber [Sat, 5 Feb 2011 23:02:41 +0000 (00:02 +0100)]
cmake fixes

Closes GH-640.

13 years agoRemove incorrect doc about node_modules
Ryan Dahl [Mon, 7 Feb 2011 20:50:05 +0000 (12:50 -0800)]
Remove incorrect doc about node_modules

13 years agosupport for package.json
isaacs [Fri, 28 Jan 2011 01:57:45 +0000 (17:57 -0800)]
support for package.json

This adds basic support for situations where there is a package.json
with a "main" field.  That "main" module is used as the code that is
loaded when the package folder is required.

13 years agocorrected small typos
koichik [Sat, 5 Feb 2011 11:07:28 +0000 (20:07 +0900)]
corrected small typos

13 years agohttp: agent takes options instead of host, port pair
Mikeal Rogers [Sat, 5 Feb 2011 10:35:25 +0000 (02:35 -0800)]
http: agent takes options instead of host, port pair

13 years agotypo
Ryan Dahl [Sat, 5 Feb 2011 07:05:25 +0000 (23:05 -0800)]
typo

13 years agoNow working on v0.4.0
Ryan Dahl [Sat, 5 Feb 2011 03:54:06 +0000 (19:54 -0800)]
Now working on v0.4.0

13 years agoBump version to v0.3.8 v0.3.8
Ryan Dahl [Sat, 5 Feb 2011 03:35:43 +0000 (19:35 -0800)]
Bump version to v0.3.8

13 years agohttp: handle aborts
Ryan Dahl [Fri, 4 Feb 2011 23:14:58 +0000 (15:14 -0800)]
http: handle aborts

13 years agohttp-parser: Error on EOF errors
Ryan Dahl [Sat, 5 Feb 2011 00:06:05 +0000 (16:06 -0800)]
http-parser: Error on EOF errors

13 years agoUpgrade http-parser
Ryan Dahl [Sat, 5 Feb 2011 00:00:08 +0000 (16:00 -0800)]
Upgrade http-parser

13 years agoFix mingw build
Bert Belder [Fri, 4 Feb 2011 22:21:00 +0000 (23:21 +0100)]
Fix mingw build

13 years agoWindows: open files in binary mode
Bert Belder [Fri, 4 Feb 2011 22:20:24 +0000 (23:20 +0100)]
Windows: open files in binary mode

13 years agoExpose errno with a string.
Ryan Dahl [Fri, 4 Feb 2011 22:35:14 +0000 (14:35 -0800)]
Expose errno with a string.

13 years agoFix debug flag in timers.js
Ryan Dahl [Fri, 4 Feb 2011 17:00:21 +0000 (09:00 -0800)]
Fix debug flag in timers.js

13 years agoStyle
Ryan Dahl [Fri, 4 Feb 2011 00:56:54 +0000 (16:56 -0800)]
Style

13 years agomodule: define functions only once.
isaacs [Fri, 28 Jan 2011 01:55:33 +0000 (17:55 -0800)]
module: define functions only once.

13 years agoFix problem with libev/select on windows.
Bert Belder [Thu, 3 Feb 2011 21:35:00 +0000 (22:35 +0100)]
Fix problem with libev/select on windows.

Patch by Marc Lehmann.
This fix should be included in the next libev release.

13 years agoRevert "Workaround for libev handle caching bug on windows"
Bert Belder [Thu, 3 Feb 2011 12:11:29 +0000 (13:11 +0100)]
Revert "Workaround for libev handle caching bug on windows"

This reverts commit 25d0e38048592eccf15e73c26191395eb0ba85cf.

13 years agoAdd process.stderr stream
Ryan Dahl [Thu, 3 Feb 2011 22:03:44 +0000 (14:03 -0800)]
Add process.stderr stream

13 years agoClean up
Ryan Dahl [Thu, 3 Feb 2011 20:28:20 +0000 (12:28 -0800)]
Clean up

13 years agoTLS: fix throttling
Ryan Dahl [Thu, 3 Feb 2011 20:17:26 +0000 (12:17 -0800)]
TLS: fix throttling

Re-enable test-https-large-response.js

Closes GH-614.

13 years agoTLS: Simplify error handling
Ryan Dahl [Wed, 2 Feb 2011 23:37:48 +0000 (15:37 -0800)]
TLS: Simplify error handling

13 years agoTLS: flush buffer before destroy
Ryan Dahl [Wed, 2 Feb 2011 23:26:28 +0000 (15:26 -0800)]
TLS: flush buffer before destroy

Also disable test-https-large-response.js. Covered by
test/simple/test-tls-throttle.js

13 years ago(suck, blow) -> (pull, push)
Ryan Dahl [Wed, 2 Feb 2011 22:51:53 +0000 (14:51 -0800)]
(suck, blow) -> (pull, push)

13 years agoUpgrade V8 to 3.1.1
Ryan Dahl [Wed, 2 Feb 2011 19:44:25 +0000 (11:44 -0800)]
Upgrade V8 to 3.1.1

13 years agoCloses GH-619 Make require.main be the main module
isaacs [Wed, 2 Feb 2011 17:56:32 +0000 (09:56 -0800)]
Closes GH-619 Make require.main be the main module

13 years agoTLS: Set ssl.receivedShutdown after each read
Ryan Dahl [Tue, 1 Feb 2011 22:40:15 +0000 (14:40 -0800)]
TLS: Set ssl.receivedShutdown after each read

Closes GH-613.

13 years agoTLS: better error reporting at binding layer
Ryan Dahl [Tue, 1 Feb 2011 21:00:00 +0000 (13:00 -0800)]
TLS: better error reporting at binding layer

Closes GH-612.

13 years agoLonger nexttick ordering test
Jorge Chamorro Bieling [Sun, 30 Jan 2011 23:22:42 +0000 (00:22 +0100)]
Longer nexttick ordering test

Closes GH-604.

13 years agodgram: setMulticastTTL, setMulticastLoopback and addMembership.
Joe Walnes [Mon, 24 Jan 2011 07:39:54 +0000 (07:39 +0000)]
dgram: setMulticastTTL, setMulticastLoopback and addMembership.

These are options needed for real-world multicasting.

Implementation notes:
- POSIX only.
- IPv4 only (IPv6 multicast is a tricky beast).
- Didn't update tests, because it can't effectively be demonstrated on
  localhost only.

13 years agoTLS: Add _pendingBytes()
Ryan Dahl [Tue, 1 Feb 2011 01:29:11 +0000 (17:29 -0800)]
TLS: Add _pendingBytes()

13 years agoAdd simpler failing tls throttle test
Ryan Dahl [Tue, 1 Feb 2011 00:38:05 +0000 (16:38 -0800)]
Add simpler failing tls throttle test

13 years agotls: superficial clean up
Ryan Dahl [Tue, 1 Feb 2011 00:37:18 +0000 (16:37 -0800)]
tls: superficial clean up

13 years agoWorkaround for V8 bug 884
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884

See http://code.google.com/p/v8/issues/detail?id=884

13 years agoUpgrade V8 to 3.1.0
Ryan Dahl [Mon, 31 Jan 2011 21:19:50 +0000 (13:19 -0800)]
Upgrade V8 to 3.1.0

13 years agoMake availability of UDP bindings more apparent
Ryan Dahl [Mon, 31 Jan 2011 19:19:59 +0000 (11:19 -0800)]
Make availability of UDP bindings more apparent

13 years agonet: Add hook for when writeQueue changes
Ryan Dahl [Mon, 31 Jan 2011 19:01:57 +0000 (11:01 -0800)]
net: Add hook for when writeQueue changes

13 years agoAdd artificial timeout to broken test-https-large-response
Ryan Dahl [Mon, 31 Jan 2011 18:44:08 +0000 (10:44 -0800)]
Add artificial timeout to broken test-https-large-response

13 years agoAdd socket.bufferSize
Ryan Dahl [Mon, 31 Jan 2011 18:41:52 +0000 (10:41 -0800)]
Add socket.bufferSize

13 years agoSlightly throttle https large body test
Tim Caswell [Fri, 28 Jan 2011 07:37:53 +0000 (23:37 -0800)]
Slightly throttle https large body test

13 years agogetaddrinfo exists on windows
Ryan Dahl [Fri, 28 Jan 2011 21:40:41 +0000 (13:40 -0800)]
getaddrinfo exists on windows

13 years agoFix version
Ryan Dahl [Fri, 28 Jan 2011 21:09:01 +0000 (13:09 -0800)]
Fix version

13 years agoREPL: disable colors in windows for now
Ryan Dahl [Fri, 28 Jan 2011 20:58:19 +0000 (12:58 -0800)]
REPL: disable colors in windows for now

13 years agoWorkaround for V8 bug 884
Bert Belder [Tue, 18 Jan 2011 02:57:14 +0000 (03:57 +0100)]
Workaround for V8 bug 884

See http://code.google.com/p/v8/issues/detail?id=884

13 years agoUpgrade V8 to 3.0.12
Ryan Dahl [Fri, 28 Jan 2011 09:56:31 +0000 (01:56 -0800)]
Upgrade V8 to 3.0.12

13 years agoNow working on v0.3.8
Ryan Dahl [Fri, 28 Jan 2011 05:11:56 +0000 (21:11 -0800)]
Now working on v0.3.8