platform/upstream/nodejs.git
14 years agoMinor stylistic changes.
Herbert Vojčík [Wed, 28 Apr 2010 20:37:09 +0000 (22:37 +0200)]
Minor stylistic changes.

14 years agoFix child_process.cc build failure for FreeBSD.
Herbert Vojčík [Wed, 28 Apr 2010 21:21:58 +0000 (23:21 +0200)]
Fix child_process.cc build failure for FreeBSD.

14 years agoProperly handle child process exit codes
Felix Geisendörfer [Wed, 28 Apr 2010 13:04:08 +0000 (15:04 +0200)]
Properly handle child process exit codes

The child process 'exit' was returning the status of the process, rather than
the exit code. This patch properly deconstructs the status into the exit code
and the term signal a process may have received.

See:
http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod#Watcher_Specific_Functions_and_Data_-5
and waitpid(2)

14 years agoResolve EWOULDBLOCK to string if different thatn EAGAIN
Ryan Dahl [Wed, 28 Apr 2010 19:58:00 +0000 (12:58 -0700)]
Resolve EWOULDBLOCK to string if different thatn EAGAIN

14 years agoUpgrade V8 to 2.2.6
Ryan Dahl [Wed, 28 Apr 2010 17:46:26 +0000 (10:46 -0700)]
Upgrade V8 to 2.2.6

14 years agoRemove node.* deprecation messages.
Tim Caswell [Wed, 28 Apr 2010 12:32:00 +0000 (07:32 -0500)]
Remove node.* deprecation messages.

14 years agofs.FileWriteStream -> fs.WriteStream, fs.FileReadStream -> fs.ReadStream
Ryan Dahl [Wed, 28 Apr 2010 01:51:41 +0000 (18:51 -0700)]
fs.FileWriteStream -> fs.WriteStream, fs.FileReadStream -> fs.ReadStream

14 years agostdout should be writable only
Ryan Dahl [Wed, 28 Apr 2010 01:45:10 +0000 (18:45 -0700)]
stdout should be writable only

14 years agoRemove coupling dep
Felix Geisendörfer [Tue, 20 Apr 2010 08:46:54 +0000 (10:46 +0200)]
Remove coupling dep

14 years agoGet rid of coupling for stdin
Felix Geisendörfer [Tue, 27 Apr 2010 23:17:28 +0000 (01:17 +0200)]
Get rid of coupling for stdin

14 years agoSupport for FileReadStream.setEncoding
Felix Geisendörfer [Tue, 27 Apr 2010 23:16:05 +0000 (01:16 +0200)]
Support for FileReadStream.setEncoding

14 years agoGet rid of coupling for stdout
Felix Geisendörfer [Mon, 19 Apr 2010 22:22:59 +0000 (00:22 +0200)]
Get rid of coupling for stdout

14 years agoRemove callback argument to FileWriteStream.prototype.write
Ryan Dahl [Wed, 28 Apr 2010 00:24:32 +0000 (17:24 -0700)]
Remove callback argument to FileWriteStream.prototype.write

14 years agoShorten some long lines.
Matt Ranney [Tue, 27 Apr 2010 07:49:58 +0000 (00:49 -0700)]
Shorten some long lines.

14 years agoUpgrade V8 to 2.2.5
Ryan Dahl [Tue, 27 Apr 2010 07:31:47 +0000 (00:31 -0700)]
Upgrade V8 to 2.2.5

14 years agoMore Buffer descriptions and examples.
Matt Ranney [Tue, 27 Apr 2010 07:04:32 +0000 (00:04 -0700)]
More Buffer descriptions and examples.
Updated Script examples for New Script methods.

14 years agoFix bug in socket write optimization
Ryan Dahl [Tue, 27 Apr 2010 03:26:43 +0000 (20:26 -0700)]
Fix bug in socket write optimization

Thanks to tlb@tlb.org for finding it!

14 years agoAdd more asserts to test-http-big-proxy-responses
Ryan Dahl [Tue, 27 Apr 2010 03:26:36 +0000 (20:26 -0700)]
Add more asserts to test-http-big-proxy-responses

14 years agoCompile for beta versions of OpenSSL 1.0.0
Ryan Dahl [Tue, 27 Apr 2010 01:53:30 +0000 (18:53 -0700)]
Compile for beta versions of OpenSSL 1.0.0

14 years agotest-dns so that NXDOMAIN does not rise errors
Jérémy Lal [Mon, 26 Apr 2010 21:23:17 +0000 (23:23 +0200)]
test-dns so that NXDOMAIN does not rise errors

14 years agoAdd support for MX queries in dns module, works with c-ares upstream patch.
Jérémy Lal [Mon, 26 Apr 2010 20:26:16 +0000 (22:26 +0200)]
Add support for MX queries in dns module, works with c-ares upstream patch.

14 years agoApply unreleased upstream patch to support parse_mx_reply.
Jérémy Lal [Mon, 26 Apr 2010 21:34:03 +0000 (23:34 +0200)]
Apply unreleased upstream patch to support parse_mx_reply.

14 years agoNew test-case: signal unregistration
Jonas Pfenniger [Sat, 24 Apr 2010 20:27:11 +0000 (22:27 +0200)]
New test-case: signal unregistration

The default signal-handler should be restored if no handlers are
assigned.

14 years agoFix typos
Ryan Dahl [Mon, 26 Apr 2010 05:29:55 +0000 (22:29 -0700)]
Fix typos

14 years agoDrop UDNS from node.uselib. Add CARES for --system.
Jérémy Lal [Sat, 24 Apr 2010 07:37:46 +0000 (09:37 +0200)]
Drop UDNS from node.uselib. Add CARES for --system.

14 years agoRemove getaddrinfo from net2.cc
Ryan Dahl [Sat, 24 Apr 2010 00:29:36 +0000 (17:29 -0700)]
Remove getaddrinfo from net2.cc

14 years agoDon't look for GnuTLS in wscript
Ryan Dahl [Sat, 24 Apr 2010 00:24:37 +0000 (17:24 -0700)]
Don't look for GnuTLS in wscript

14 years agoRemove http_old tcp_old
Ryan Dahl [Sat, 24 Apr 2010 00:10:01 +0000 (17:10 -0700)]
Remove http_old tcp_old

14 years agobump version v0.1.92
Ryan Dahl [Fri, 23 Apr 2010 23:05:19 +0000 (16:05 -0700)]
bump version

14 years agoLink to old versions
Ryan Dahl [Fri, 23 Apr 2010 23:18:40 +0000 (16:18 -0700)]
Link to old versions

14 years agoUpdate API doc
mape [Fri, 23 Apr 2010 22:46:31 +0000 (00:46 +0200)]
Update API doc

14 years agoCatch errors from stream events in net.js
Ryan Dahl [Fri, 23 Apr 2010 21:08:13 +0000 (14:08 -0700)]
Catch errors from stream events in net.js

Pipe into 'error' event.

14 years agoUpgrade V8 to 2.2.4.2
Ryan Dahl [Fri, 23 Apr 2010 19:05:36 +0000 (12:05 -0700)]
Upgrade V8 to 2.2.4.2

14 years agoopenssl 1.0.0 constification
Krishna Rajendran [Fri, 23 Apr 2010 17:29:27 +0000 (13:29 -0400)]
openssl 1.0.0 constification

14 years agoLeave pos as undefined to allow reads from unseekable files like /proc/x/smaps on...
Brian Hammond [Fri, 23 Apr 2010 15:31:50 +0000 (11:31 -0400)]
Leave pos as undefined to allow reads from unseekable files like /proc/x/smaps on Linux

14 years agoUnify ErrnoException creation
Ryan Dahl [Fri, 23 Apr 2010 00:53:45 +0000 (17:53 -0700)]
Unify ErrnoException creation

14 years agoOptimize for few args in EventEmitter.emit
Ryan Dahl [Fri, 23 Apr 2010 00:31:35 +0000 (17:31 -0700)]
Optimize for few args in EventEmitter.emit

14 years agoUnhandled 'error' events kill program
Ryan Dahl [Fri, 23 Apr 2010 00:22:03 +0000 (17:22 -0700)]
Unhandled 'error' events kill program

By default 'error' throws. addListener to prevent this.

14 years agocurl after server is listening
Ryan Dahl [Thu, 22 Apr 2010 22:48:57 +0000 (15:48 -0700)]
curl after server is listening

14 years agoRemove assert for no-such-module
Ryan Dahl [Thu, 22 Apr 2010 21:43:25 +0000 (14:43 -0700)]
Remove assert for no-such-module

14 years agoSIGPIPE on stdout should kill the process by default
Ryan Dahl [Thu, 22 Apr 2010 21:25:13 +0000 (14:25 -0700)]
SIGPIPE on stdout should kill the process by default

14 years agoForce no body on http 204 and 304
Ryan Dahl [Wed, 21 Apr 2010 22:15:21 +0000 (15:15 -0700)]
Force no body on http 204 and 304

Thanks to tjholowayhuk@gmail.com for the test case.

14 years agoAdd link to older tarball versions
Ryan Dahl [Wed, 21 Apr 2010 20:16:46 +0000 (13:16 -0700)]
Add link to older tarball versions

14 years agoMove the module loading framework into lib/module.js. Minimal changes otherwise.
isaacs [Wed, 21 Apr 2010 01:22:51 +0000 (18:22 -0700)]
Move the module loading framework into lib/module.js.  Minimal changes otherwise.

14 years agorefactor path module to lib/path.js
isaacs [Wed, 21 Apr 2010 01:17:54 +0000 (18:17 -0700)]
refactor path module to lib/path.js

14 years agoRefactor events module to lib/events.js
isaacs [Wed, 21 Apr 2010 01:13:07 +0000 (18:13 -0700)]
Refactor events module to lib/events.js

14 years agoFix TCP_KEEPIDLE build failure in FreeBSD.
Herbert Vojčík [Wed, 21 Apr 2010 10:54:56 +0000 (12:54 +0200)]
Fix TCP_KEEPIDLE build failure in FreeBSD.

14 years agoadd setKeepAlive function, which enables and sets the TCP keep-alive timer
Julian Lamb [Tue, 20 Apr 2010 23:01:41 +0000 (19:01 -0400)]
add setKeepAlive function, which enables and sets the TCP keep-alive timer

14 years agoAdd some libpaths for SSL
Ryan Dahl [Tue, 20 Apr 2010 21:43:08 +0000 (21:43 +0000)]
Add some libpaths for SSL

14 years agobetter function test in addEventListener
Michaeljohn Clement [Tue, 20 Apr 2010 17:07:55 +0000 (13:07 -0400)]
better function test in addEventListener

14 years agoAdd a note in the API docs about binding to ports and using strings.
Tim Caswell [Mon, 19 Apr 2010 13:18:16 +0000 (08:18 -0500)]
Add a note in the API docs about binding to ports and using strings.

14 years agoAdd Buffer.byteLength docs
Tim Caswell [Mon, 19 Apr 2010 13:17:37 +0000 (08:17 -0500)]
Add Buffer.byteLength docs

14 years agoMake 'make distclean' work on solaris
Ryan Dahl [Mon, 19 Apr 2010 22:48:12 +0000 (15:48 -0700)]
Make 'make distclean' work on solaris

14 years agoUpgrade Waf to 1.5.16
Ryan Dahl [Sun, 18 Apr 2010 23:57:13 +0000 (19:57 -0400)]
Upgrade Waf to 1.5.16

14 years agoDo a manual check for openssl if 'pkg-config openssl' fails.
Standa Opichal [Sun, 18 Apr 2010 16:24:08 +0000 (18:24 +0200)]
Do a manual check for openssl if 'pkg-config openssl' fails.

This makes the node_crypto module available for node built using just a
default OS X dev environment (no darwinports or fink).

14 years agoDocs for Script class of 'evals' binding.
Herbert Vojčík [Sun, 18 Apr 2010 20:35:44 +0000 (13:35 -0700)]
Docs for Script class of 'evals' binding.

14 years agoRemove old EvalCX
Ryan Dahl [Sun, 18 Apr 2010 19:44:23 +0000 (15:44 -0400)]
Remove old EvalCX

14 years agoScript class with eval-function-family in binding('evals') plus tests.
Herbert Vojcik [Sat, 17 Apr 2010 15:18:15 +0000 (17:18 +0200)]
Script class with eval-function-family in binding('evals') plus tests.

14 years agoAdd docs for new REPL options and fill out description of commands.
Matt Ranney [Fri, 16 Apr 2010 00:52:42 +0000 (17:52 -0700)]
Add docs for new REPL options and fill out description of commands.

14 years agoFixed ssl client and server examples
Rhys Jones [Thu, 15 Apr 2010 19:03:55 +0000 (20:03 +0100)]
Fixed ssl client and server examples

14 years agoMerge branch 'master' into openssl
Rhys Jones [Thu, 15 Apr 2010 18:57:35 +0000 (19:57 +0100)]
Merge branch 'master' into openssl

14 years agoAdded test and started tidy-up of node_crypto.cc
Rhys Jones [Thu, 15 Apr 2010 18:57:17 +0000 (19:57 +0100)]
Added test and started tidy-up of node_crypto.cc

14 years agoFix upgradeHead bounds.
Micheil Smith [Thu, 15 Apr 2010 18:19:54 +0000 (11:19 -0700)]
Fix upgradeHead bounds.

14 years agoMerge branch 'master' into openssl
Rhys Jones [Thu, 15 Apr 2010 09:56:42 +0000 (10:56 +0100)]
Merge branch 'master' into openssl

14 years agobump version v0.1.91
Ryan Dahl [Thu, 15 Apr 2010 08:54:20 +0000 (01:54 -0700)]
bump version

14 years agoDefault to UTF8 on stream write
Ryan Dahl [Thu, 15 Apr 2010 09:09:36 +0000 (02:09 -0700)]
Default to UTF8 on stream write

14 years agoUse new method of getting chars written for UTF8
Ryan Dahl [Thu, 15 Apr 2010 09:01:49 +0000 (02:01 -0700)]
Use new method of getting chars written for UTF8

14 years agoMove two broken tests to disabled folder
Ryan Dahl [Thu, 15 Apr 2010 08:37:27 +0000 (01:37 -0700)]
Move two broken tests to disabled folder

14 years agoSimplify GC idle notification
Ryan Dahl [Thu, 15 Apr 2010 08:29:39 +0000 (01:29 -0700)]
Simplify GC idle notification

In particular, don't leave the timeout running when the heap is fully
compacted.

14 years agoMerge branch 'master' into openssl
Rhys Jones [Thu, 15 Apr 2010 05:21:15 +0000 (06:21 +0100)]
Merge branch 'master' into openssl

14 years agoUpdated https support
Rhys Jones [Thu, 15 Apr 2010 05:17:22 +0000 (06:17 +0100)]
Updated https support

14 years agoAdd execFile() for Orlando
Ryan Dahl [Thu, 15 Apr 2010 01:50:41 +0000 (18:50 -0700)]
Add execFile() for Orlando

Undocumented for now, but basically like exec() with args.

14 years agoAdd timeout and maxBuffer options to child_process.exec
Ryan Dahl [Wed, 14 Apr 2010 18:59:24 +0000 (11:59 -0700)]
Add timeout and maxBuffer options to child_process.exec

14 years agoUpgrade V8 to 2.2.3.1
Ryan Dahl [Wed, 14 Apr 2010 17:34:17 +0000 (10:34 -0700)]
Upgrade V8 to 2.2.3.1

14 years agoSupport Upgrade in HTTP messages
Ryan Dahl [Wed, 14 Apr 2010 10:52:15 +0000 (03:52 -0700)]
Support Upgrade in HTTP messages

This allows for web servers to be "hijacked" and used as Web Socket servers
(or other). You simply listen for requests as normal, but check if

  req.upgrade === true

If so, this will be the last request of the connection. It's your job now to
hijack req.connection and start reading from it. req.upgradeHead is a buffer
containing the first part of the new protocol communication (in the case it
arrived on the same packet).

This needs tests and documentation. API subject to change.

14 years agoUpgrade http-parser
Ryan Dahl [Wed, 14 Apr 2010 10:22:38 +0000 (03:22 -0700)]
Upgrade http-parser

14 years agonet.js: Slice the right buffer in _writeOut
Ryan Dahl [Wed, 14 Apr 2010 07:41:56 +0000 (00:41 -0700)]
net.js: Slice the right buffer in _writeOut

14 years agoFix triple buffer slice bug
Ryan Dahl [Wed, 14 Apr 2010 07:36:34 +0000 (00:36 -0700)]
Fix triple buffer slice bug

14 years agoMerge branch 'master' into openssl
Rhys Jones [Wed, 14 Apr 2010 06:31:33 +0000 (07:31 +0100)]
Merge branch 'master' into openssl

Conflicts:
lib/net.js
wscript

14 years agoDisable test-idle-watcher
Ryan Dahl [Tue, 13 Apr 2010 23:57:16 +0000 (16:57 -0700)]
Disable test-idle-watcher

IdleWatcher was disabled in a98d23d9058cdf71a452e71bf8831e4ba2445b50

14 years agoFix test case style
Ryan Dahl [Tue, 13 Apr 2010 23:43:15 +0000 (16:43 -0700)]
Fix test case style

14 years agoAdd big proxy failing test
Ryan Dahl [Tue, 13 Apr 2010 23:22:12 +0000 (16:22 -0700)]
Add big proxy failing test

GH-77. Code by Robert Newson <robert.newson@gmail.com>

14 years agoUse === instead of == for END_OF_FILE compares
Ryan Dahl [Tue, 13 Apr 2010 22:56:06 +0000 (15:56 -0700)]
Use === instead of == for END_OF_FILE compares

This caused a very hard to track down bug. Thanks to Mikeal Rogers for this
fix. Unfortunately we were unable to put together a test case.

14 years agoDisable IdleWatcher
Ryan Dahl [Tue, 13 Apr 2010 22:43:22 +0000 (15:43 -0700)]
Disable IdleWatcher

14 years agoChange nextTick implementation for the better
Ryan Dahl [Tue, 13 Apr 2010 22:39:15 +0000 (15:39 -0700)]
Change nextTick implementation for the better

Use a prepare and idle watcher to execute the nextTick callback more
quickly. Test provided by Matt Ranney.

14 years agoRemove mixin from docs
Ryan Dahl [Tue, 13 Apr 2010 20:50:17 +0000 (13:50 -0700)]
Remove mixin from docs

14 years agoprocess.mixin: deprecation -> removed
Ryan Dahl [Tue, 13 Apr 2010 20:44:05 +0000 (13:44 -0700)]
process.mixin: deprecation  -> removed

14 years agoMoving the http.js, net.js FreeList to being standalone.
Micheil Smith [Mon, 12 Apr 2010 16:27:32 +0000 (02:27 +1000)]
Moving the http.js, net.js FreeList to being standalone.

14 years agoRecycle http client parsers
Ryan Dahl [Mon, 12 Apr 2010 23:34:39 +0000 (16:34 -0700)]
Recycle http client parsers

14 years agodoc typo
Ryan Dahl [Mon, 12 Apr 2010 23:27:04 +0000 (16:27 -0700)]
doc typo

14 years agoBuffer partial reads before doing expect match.
Matt Ranney [Mon, 12 Apr 2010 21:29:49 +0000 (14:29 -0700)]
Buffer partial reads before doing expect match.

14 years agoMoved Credentials into crypto module. Added node_crypto into crypto module
Rhys Jones [Mon, 12 Apr 2010 20:25:16 +0000 (21:25 +0100)]
Moved Credentials into crypto module. Added node_crypto into crypto module

14 years agoFix a race condition or two in net.js
Ryan Dahl [Mon, 12 Apr 2010 19:34:24 +0000 (12:34 -0700)]
Fix a race condition or two in net.js

When making a TCP connection, readyState returns 'opening' while resolving
the host. However between the resolving period and the establishing a
connection period, it would return 'closed'. This fixes it.

This change also ensures that the socket is closed before the 'end' event is
emitted in the case that the socket was previously shutdown.

14 years agoAdded https server support
Rhys Jones [Mon, 12 Apr 2010 19:36:46 +0000 (20:36 +0100)]
Added https server support

14 years agoAdded https support
Rhys Jones [Mon, 12 Apr 2010 17:57:22 +0000 (18:57 +0100)]
Added https support

14 years agoReplace slow and broken for..in loops with faster for loops over the keys.
Tim Caswell [Mon, 12 Apr 2010 16:57:24 +0000 (11:57 -0500)]
Replace slow and broken for..in loops with faster for loops over the keys.

14 years agoREPL can be run from multiple different streams.
Matt Ranney [Sun, 11 Apr 2010 23:13:32 +0000 (16:13 -0700)]
REPL can be run from multiple different streams.

e.g. from UNIX sockets with socat.

14 years agoC-Ares shouldn't iterate over all Object.prototype elements
Ryan Dahl [Sun, 11 Apr 2010 23:12:20 +0000 (16:12 -0700)]
C-Ares shouldn't iterate over all Object.prototype elements

and furthermore error out of one of them isn't a DNS option.

Test case by Ben Lund <ben.lund@gmail.com>; additional help from Tim Caswell
<tim@creationix.com>.

14 years agoFix typo in comments.
Matt Ranney [Wed, 24 Mar 2010 06:27:31 +0000 (23:27 -0700)]
Fix typo in comments.

14 years agoAdd incoming.httpVersion
Ryan Dahl [Sun, 11 Apr 2010 22:15:36 +0000 (15:15 -0700)]
Add incoming.httpVersion