Igor Zinkovsky [Thu, 27 Oct 2011 23:47:37 +0000 (16:47 -0700)]
remove node_io_watcher
koichik [Wed, 26 Oct 2011 06:10:42 +0000 (15:10 +0900)]
docs: add zlib.createXxx() functions
Ben Noordhuis [Thu, 27 Oct 2011 11:19:51 +0000 (11:19 +0000)]
v8: implement VirtualMemory class on SunOS
Unbreaks build on SunOS. Re-applies
4908e5bf7a9c8014eefcf344e958bf0dad95d907.
Ryan Dahl [Thu, 27 Oct 2011 07:48:23 +0000 (00:48 -0700)]
Upgrade V8 to 3.7.1
Tj Holowaychuk [Wed, 26 Oct 2011 23:21:08 +0000 (16:21 -0700)]
cluster: Add some docs, improve cluster.isWorker()
Fixes #1949.
Ryan Dahl [Wed, 26 Oct 2011 20:41:31 +0000 (13:41 -0700)]
node cluster is now a module instead of CLI interface
This is to make room for master process plugins instead of adding CLI
options as proposed in #1879.
Nathan Rajlich [Wed, 26 Oct 2011 19:45:51 +0000 (12:45 -0700)]
Add test cases for #1944.
Nathan Rajlich [Wed, 26 Oct 2011 06:56:07 +0000 (23:56 -0700)]
More bulletproof `util.inspect()` function.
Use the *real* versions of the Date and RegExp functions, from the
prototype. This defends against code like:
var d = new Date()
d.toUTCString = null
util.inspect(d)
// TypeError: toUTCString is not a function
Fixes #1944.
Nathan Rajlich [Wed, 26 Oct 2011 18:22:16 +0000 (11:22 -0700)]
Add test case for #1941.
Add test for the false-positives from #1942.
Fix test-sys.js.
Nathan Rajlich [Wed, 26 Oct 2011 04:42:23 +0000 (21:42 -0700)]
Don't use `instanceof` in lib/util.js "is" checks.
While using `instanceof`, these functions could easily be faked with something
like: Object.create(Date.prototype)
So let's just not use it at all. A little slower, but these functions are only
used in the REPL / for debugging so it's OK.
Fixes #1941.
Fixes #1942.
Ryan Dahl [Wed, 26 Oct 2011 19:27:31 +0000 (12:27 -0700)]
Return IPv4 addresses before IPv6 addresses from getaddrinfo
Nathan Rajlich [Wed, 26 Oct 2011 18:10:23 +0000 (11:10 -0700)]
Add docs for the type checking functions in `util.js`.
Nathan Rajlich [Wed, 26 Oct 2011 18:10:15 +0000 (11:10 -0700)]
Add test case for the util.js type checking functions.
Nathan Rajlich [Wed, 26 Oct 2011 18:09:01 +0000 (11:09 -0700)]
Export the type checking functions from `util.js`.
As per discussion at:
http://groups.google.com/group/nodejs-dev/browse_thread/thread/
b08970166e4670cf
Ryan Dahl [Wed, 26 Oct 2011 18:31:12 +0000 (11:31 -0700)]
Don't compile in node_dtrace.cc when not supported
Zachary Scott [Wed, 26 Oct 2011 17:40:15 +0000 (13:40 -0400)]
docs: update email address
Zachary Scott [Wed, 26 Oct 2011 17:07:40 +0000 (13:07 -0400)]
docs: update socket.io url
koichik [Wed, 26 Oct 2011 12:12:23 +0000 (21:12 +0900)]
tls: add address(), remoteAddress/remotePort
Fixes #758.
Fixes #1055.
koichik [Tue, 25 Oct 2011 09:57:06 +0000 (18:57 +0900)]
tls: does not emit 'end' from EncryptedStream
de09168 and
4cdf9d4 breaks `test/pummel/test-https-large-response.js`.
It is never finished.
Fixes #1936.
Ben Noordhuis [Wed, 26 Oct 2011 05:11:20 +0000 (05:11 +0000)]
build: fix sunos gyp build, include platform file
Ben Noordhuis [Wed, 26 Oct 2011 05:09:18 +0000 (05:09 +0000)]
sunos: don't use exceptions
Don't use exceptions in platform functions. Fix a resource leak
(leaked kstat handle) while we're at it.
Ben Noordhuis [Wed, 26 Oct 2011 04:59:31 +0000 (04:59 +0000)]
gyp: support older bash versions
Older bash versions in `sh -c` mode don't parse `export FOO=42` constructs,
they bail out with a "FOO is not an identifier" error message.
This was fixed somewhere between bash 4.1.0 and 4.1.5 but let's support the
older versions anyway.
Ben Noordhuis [Tue, 25 Oct 2011 22:05:24 +0000 (00:05 +0200)]
Igor Zinkovsky [Tue, 25 Oct 2011 20:47:21 +0000 (13:47 -0700)]
fix test-http-curl-chunk-problem.js and test-pipe-file-to-http.js on windows
Ben Noordhuis [Tue, 25 Oct 2011 19:18:41 +0000 (19:18 +0000)]
http: fix gcc 3.x build, don't use always_inline
Ben Noordhuis [Tue, 25 Oct 2011 00:23:07 +0000 (02:23 +0200)]
test: spawn process.argv[0], not 'node'
'node' may or may not be on the path and may or may not be the version we are
running the test suite for.
Nathan Rajlich [Mon, 24 Oct 2011 21:52:10 +0000 (14:52 -0700)]
Directly export the Stream constructor.
Also setting up a circular reference back to the
stream as `Stream.Stream`, for backwards-compatibility.
Fixes #1933
Ryan Dahl [Mon, 24 Oct 2011 18:55:02 +0000 (11:55 -0700)]
Remove resume and pause events
Too complex; unnecessary.
isaacs [Mon, 24 Oct 2011 19:48:58 +0000 (12:48 -0700)]
Close #1929 zlib Respond to 'resume' events properly
Maciej Małecki [Sun, 23 Oct 2011 09:20:03 +0000 (11:20 +0200)]
net: `Server.listen`, `Server.close` and `Socket.connect` return `this`
Just a syntactic sugar for doing, for example:
var server = net.createServer(function (c) {
c.end('goodbye, cruel world!\r\n');
server.close().on('close', function () {
console.log('really, goodbye!');
});
}).listen(1337);
Fixes #1922.
koichik [Sat, 22 Oct 2011 14:40:15 +0000 (23:40 +0900)]
docs: improvement fs, http and https
seebees [Wed, 19 Oct 2011 23:28:44 +0000 (16:28 -0700)]
Lint
seebees [Wed, 19 Oct 2011 22:06:49 +0000 (15:06 -0700)]
Documentation update
http.markdown
note options now align with url.parse
added note that hostname is preferred over host.
added auth
added not that setting an explicit Authorization header will override basic authentication with 'auth'
https.markdown
Made a link to http.request and noted that all http.request options are valid.
url.markdown
added path option
seebees [Sat, 15 Oct 2011 00:13:16 +0000 (17:13 -0700)]
remove auth from host
Fixes #1626
seebees [Sat, 15 Oct 2011 00:10:49 +0000 (17:10 -0700)]
http.request(url.parse(x))
http2.js
protocols object to store defaults for http and https, and use as a switch for supported protocols.
options.hostname > options.host > 'localhost'
if I have an options.auth element and I do not have an Authorization header, I do basic auth.
http.request collapses to new ClientRequest since the defaults are handled by the protocol object
test-http-url.parse*
Fixes #1390
Conflicts:
lib/http2.js
seebees [Tue, 13 Sep 2011 20:55:18 +0000 (13:55 -0700)]
url.resolveObject(url.parse(x), y) == url.parse(url.resolve(x, y));
added a .path property = .pathname + .search for use with http.request
And tests to verify everything.
With the tests, I changed over to deepEqual, and I would note the comment on the test
['.//g', 'f:/a', 'f://g'], which I think is a fundamental problem
This supersedes pull 1596
koichik [Sat, 22 Oct 2011 05:00:42 +0000 (14:00 +0900)]
docs: remove #1914 from Changelog.
Nathan Rajlich [Wed, 19 Oct 2011 20:46:06 +0000 (13:46 -0700)]
Print out `undefined` on the REPL when returned.
util.inspect() has a special case for "undefined", so it's nice to be able to
distinguish visually that undefined is the result of an expression.
koichik [Sat, 22 Oct 2011 04:53:15 +0000 (13:53 +0900)]
docs: fix typo
Ryan Dahl [Sat, 22 Oct 2011 02:16:06 +0000 (19:16 -0700)]
Now working on v0.5.11
Ryan Dahl [Sat, 22 Oct 2011 00:02:11 +0000 (17:02 -0700)]
Bump version to v0.5.10
Ben Noordhuis [Sat, 22 Oct 2011 01:44:06 +0000 (18:44 -0700)]
Ben Noordhuis [Sat, 22 Oct 2011 00:07:11 +0000 (17:07 -0700)]
net: bring back .setNoDelay() and .setKeepAlive()
Ben Noordhuis [Sat, 22 Oct 2011 00:08:12 +0000 (17:08 -0700)]
Ryan Dahl [Sat, 22 Oct 2011 00:58:04 +0000 (17:58 -0700)]
Merge remote branch 'origin/v0.4'
Conflicts:
ChangeLog
Makefile
deps/libev/wscript
doc/index.html
doc/template.html
lib/net.js
src/node_version.h
src/platform_cygwin.cc
test/pummel/test-net-write-callbacks.js
test/simple/test-buffer.js
Igor Zinkovsky [Sat, 22 Oct 2011 00:08:50 +0000 (17:08 -0700)]
make simple\test-fs-symlink.js work on windows
Maciej Małecki [Fri, 21 Oct 2011 22:32:12 +0000 (00:32 +0200)]
test: #1899 - output in child process raises an exception
Ryan Dahl [Fri, 21 Oct 2011 22:19:49 +0000 (15:19 -0700)]
getaddrinfo returns ENOTFOUND for invalid domain names
change test-http-dns-error to reflect this.
Ryan Dahl [Fri, 21 Oct 2011 21:54:11 +0000 (14:54 -0700)]
Fix test-eio-race on Windows
Ben Noordhuis [Fri, 21 Oct 2011 20:43:49 +0000 (13:43 -0700)]
gyp: upgrade to r1081
Ryan Dahl [Fri, 21 Oct 2011 20:44:30 +0000 (13:44 -0700)]
Ryan Dahl [Fri, 21 Oct 2011 20:07:48 +0000 (13:07 -0700)]
Emit 'end' from crypto streams on close
Fixes test/simple/test-tls-peer-certificate.js on Windows
Patch from bnoordhuis.
See also
75a0cf970fb48440a93a62796ab1f128fcbe7d76
isaacs [Thu, 20 Oct 2011 17:00:15 +0000 (10:00 -0700)]
Add useGlobal flag for standard node repl
isaacs [Thu, 20 Oct 2011 15:54:50 +0000 (08:54 -0700)]
Revert "Don't use a separate context for the repl."
This reverts commit
b70fed48a7fb0ac884e6574253a89db6158b2f60.
Ben Noordhuis [Fri, 21 Oct 2011 19:46:52 +0000 (12:46 -0700)]
build: fix wscript on solaris
os.path.exists() in python 2.5.2 returns false for symlinks.
Igor Zinkovsky [Fri, 21 Oct 2011 16:08:19 +0000 (09:08 -0700)]
make process.kill a no-op on windows
Ryan Dahl [Fri, 21 Oct 2011 17:21:23 +0000 (10:21 -0700)]
Fix race condition in test-dgram-pingpong
Ben Noordhuis [Tue, 27 Sep 2011 15:07:56 +0000 (17:07 +0200)]
http: improve http parser bindings
Speeds up HTTP benchmarks by 10% on average.
Ryan Dahl [Fri, 21 Oct 2011 00:52:50 +0000 (17:52 -0700)]
dns.lookup uses cares_wrap::GetAddrInfo
Ryan Dahl [Fri, 21 Oct 2011 00:52:32 +0000 (17:52 -0700)]
Bert Belder [Thu, 20 Oct 2011 22:40:08 +0000 (15:40 -0700)]
Fix windows build
Ben Noordhuis [Thu, 20 Oct 2011 22:25:57 +0000 (15:25 -0700)]
Ryan Dahl [Thu, 20 Oct 2011 22:06:53 +0000 (15:06 -0700)]
Add binding to uv_getaddrinfo
Nathan Rajlich [Wed, 19 Oct 2011 20:46:06 +0000 (13:46 -0700)]
repl: print out `undefined`
util.inspect() has a special case for "undefined", so it's nice to be able to
distinguish visually that undefined is the result of an expression.
Fedor Indutny [Thu, 20 Oct 2011 05:07:20 +0000 (09:07 +0400)]
debugger: fix backtrace err handling
Ben Noordhuis [Thu, 20 Oct 2011 01:20:42 +0000 (18:20 -0700)]
docs: improve buffer.fill() documentation
Fixes #1912.
Ryan Dahl [Wed, 19 Oct 2011 23:53:07 +0000 (16:53 -0700)]
Display sys_errno when UV_UNKNOWN is returned
Ryan Dahl [Wed, 19 Oct 2011 23:28:52 +0000 (16:28 -0700)]
Remove os.openOSHandle
Unused.
Ryan Dahl [Wed, 19 Oct 2011 23:23:26 +0000 (16:23 -0700)]
Remove support for cygwin
Ryan Dahl [Wed, 19 Oct 2011 18:01:08 +0000 (11:01 -0700)]
Revert "Fix #1801 vm: Use 'sandbox' as global_prototype"
Accidentally committed. Revert until review.
This reverts commit
200df8641b43902adc73cce6b89d3e84a91dd3e6.
Thomas Parslow [Tue, 18 Oct 2011 13:15:58 +0000 (14:15 +0100)]
http: Added support for HTTP PATCH verb
Fixes #1907.
koichik [Mon, 17 Oct 2011 13:13:18 +0000 (22:13 +0900)]
buffer: use NO_NULL_TERMINATION flag
Refs #394.
Fixes #1902.
isaacs [Tue, 18 Oct 2011 01:24:12 +0000 (18:24 -0700)]
Don't use a separate context for the repl.
Fix #1484
Fix #1834
Fix #1482
Fix #771
It's been a while now, and we've seen how this separate context thing
works. It constantly confuses people, and no one actually uses '.clear'
anyway, so the benefit of that feature does not justify the constant
WTFery.
This makes repl.context actually be a getter that returns the global
object, and prints a deprecation warning. The '.clear' command is gone,
and will report that it's an invalid repl keyword. Tests updated to
allow the require, module, and exports globals, which are still
available in the repl just like they were before, by making them global.
elliottcable [Fri, 14 Oct 2011 07:42:18 +0000 (03:42 -0400)]
Fix #1801 vm: Use 'sandbox' as global_prototype
Squashed commit:
(- re tests) Cleaning up the `Script` test suite.
For whatever reason, there were several duplicate test files related to `Script`
and the `'vm'` module. I removed these, and fixed a few other small issues.
(More fixes coming in subsequent commits.)
Squashes:
19e86045a0..
1e3dcff4eb
(api fix:1801 new:1801) `'vm'` module uses sandbox as prototype
As described in GH-1801, the `'vm'` module was handling the `sandbox` object
provided by the API consumer in a particularly terrible and fragile fashion: it
was simply shallow-copying any enumerable properties from the sandbox onto the
global context before executing the code, and then eventually copying any values
on the global context back into the sandbox object *afterwards*.
This commit removes all of that implementation, and utilizes the passed sandbox
object as the *prototype of the context* instead. A bit of a hack, but a very
effective one.
This no longer allows for new variables created in the global context to be
placed into your sandbox after execution has completed, but that’s for the best
anyway, as it’s not very in line with the concept of a “box of passed-in
context.” I’m planning to further implement an interface for API consumers to
acquire the *actual global* from within the VM soon, thus allowing for
separation-of-concerns: providing data *to* the VM via the sandbox-prototype,
and exploring the internal environment of the VM itself.
// GitHub cruft: closes #1801
Squashes:
43b8e3c..
209ed86
Ryan Dahl [Tue, 18 Oct 2011 23:12:07 +0000 (16:12 -0700)]
Fix test-c-ares.js on Windows by disabling PTR test
Ryan Dahl [Tue, 18 Oct 2011 22:12:16 +0000 (15:12 -0700)]
Remove superfluous nextTick during server binding
This breaks fork().send({}, server._handle) after server.listen() because
server._handle is not set.
Ryan Dahl [Tue, 18 Oct 2011 21:38:48 +0000 (14:38 -0700)]
Upgrade GYP to r1078
Ryan Dahl [Tue, 18 Oct 2011 21:30:31 +0000 (14:30 -0700)]
Remove process.memoryUsage().vsize
Not meaningful cross platform; unused.
Ryan Dahl [Tue, 11 Oct 2011 23:06:40 +0000 (16:06 -0700)]
Fixes #1860. Remove process.writeError
Breaks a few tests in "make test-message"
koichik [Sun, 16 Oct 2011 15:32:13 +0000 (00:32 +0900)]
http: add test for #1885
Yoshihiro Kikuchi [Thu, 13 Oct 2011 08:48:30 +0000 (17:48 +0900)]
http: tiny fix in http.js
Fixes #1885.
koichik [Sun, 16 Oct 2011 07:31:41 +0000 (16:31 +0900)]
docs: improvement tls example
Igor Zinkovsky [Sat, 15 Oct 2011 19:21:15 +0000 (12:21 -0700)]
test: fix test-child-process-stdin and test-child-process-kill on windows
koichik [Sat, 15 Oct 2011 08:10:14 +0000 (17:10 +0900)]
net: fix error handling in listen()
Fixes #1894.
koichik [Sat, 15 Oct 2011 16:26:38 +0000 (01:26 +0900)]
docs: add example of tls
koichik [Sat, 15 Oct 2011 10:27:21 +0000 (19:27 +0900)]
tls: The TLS API is inconsistent with the TCP API
Add 'secureConnect' event to tls.CleartextStream.
Fixes #1467.
Ben Noordhuis [Sat, 15 Oct 2011 01:27:25 +0000 (03:27 +0200)]
net: fix connect queue bugs
This commit fixes two bugs in the handling of write requests when the connect()
call is still in progress.
1. The deferred write request's size was counted twice towards `.bytesWritten`.
2. The callback was not called. After connecting, `Socket.write()` was called
with three arguments (data, encoding, cb) but it ignored the third argument.
Coincidentally fixes test/simple/test-net-connect-buffer.js.
Ben Noordhuis [Sat, 15 Oct 2011 01:10:53 +0000 (03:10 +0200)]
net: properly account multi-byte chars in .bytesWritten
Igor Zinkovsky [Sat, 15 Oct 2011 00:47:01 +0000 (17:47 -0700)]
win: remove pthread-win32 init code
Igor Zinkovsky [Fri, 14 Oct 2011 23:58:18 +0000 (16:58 -0700)]
build: fix windows build
Ben Noordhuis [Sat, 15 Oct 2011 00:05:33 +0000 (02:05 +0200)]
test: fix bug in setproctitle test
Output from `ps` may contain trailing whitespace, trim it.
Ben Noordhuis [Mon, 10 Oct 2011 22:32:54 +0000 (22:32 +0000)]
v8: implement VirtualMemory class on SunOS
Unbreaks build on SunOS. Un-reverts
9bbca99107652906a060679ee95bf1ad7381cbb5.
isaacs [Fri, 14 Oct 2011 16:20:05 +0000 (09:20 -0700)]
doc: Add examples of zlib usage with http
Ben Noordhuis [Fri, 14 Oct 2011 23:01:57 +0000 (01:01 +0200)]
test: check that EventEmitter.on == EventEmitter.addListener
Ben Noordhuis [Fri, 14 Oct 2011 23:08:36 +0000 (01:08 +0200)]
test: replace .addListener() calls with .on()
Ben Noordhuis [Fri, 14 Oct 2011 22:42:10 +0000 (00:42 +0200)]
koichik [Wed, 21 Sep 2011 04:19:22 +0000 (13:19 +0900)]
tls: requestCert unusable with Firefox and Chrome
Fixes #1516.
koichik [Fri, 14 Oct 2011 08:04:04 +0000 (17:04 +0900)]
child_process.fork: don't modify args
Fixes #1888.
Ben Noordhuis [Fri, 14 Oct 2011 15:05:02 +0000 (15:05 +0000)]
node: fix use of potentially uninitialized variable
Ben Noordhuis [Fri, 14 Oct 2011 15:00:37 +0000 (15:00 +0000)]
timer_wrap: add sanity check assert