platform/upstream/nodejs.git
14 years agoFix authors
Ryan Dahl [Thu, 24 Jun 2010 21:23:12 +0000 (14:23 -0700)]
Fix authors

14 years agoRemove switch-replace residue
Ryan Dahl [Thu, 24 Jun 2010 16:37:18 +0000 (09:37 -0700)]
Remove switch-replace residue

14 years agoEdit binary encoding docs
Ryan Dahl [Thu, 24 Jun 2010 14:51:45 +0000 (07:51 -0700)]
Edit binary encoding docs

14 years agoUpgrade http-parser
Ryan Dahl [Thu, 24 Jun 2010 04:10:13 +0000 (21:10 -0700)]
Upgrade http-parser

14 years agoUpgrade V8 to 2.2.19
Ryan Dahl [Thu, 24 Jun 2010 03:31:48 +0000 (20:31 -0700)]
Upgrade V8 to 2.2.19

14 years ago:%s/sys.puts/console.log/g
Ryan Dahl [Thu, 24 Jun 2010 00:40:51 +0000 (17:40 -0700)]
:%s/sys.puts/console.log/g

and there was much rejoicing

14 years agoFix name in AUTHORS file
Ryan Dahl [Wed, 23 Jun 2010 22:27:56 +0000 (15:27 -0700)]
Fix name in AUTHORS file

14 years agoFix error message
Ryan Dahl [Wed, 23 Jun 2010 16:09:15 +0000 (09:09 -0700)]
Fix error message

14 years agoRemove ini.js
Ryan Dahl [Wed, 23 Jun 2010 02:37:29 +0000 (19:37 -0700)]
Remove ini.js

14 years agoRemove mjsunit from repo
Ryan Dahl [Wed, 23 Jun 2010 02:33:01 +0000 (19:33 -0700)]
Remove mjsunit from repo

14 years agoAdd sys.pump
Mikeal Rogers [Sat, 29 May 2010 00:52:59 +0000 (17:52 -0700)]
Add sys.pump

14 years agoFix names in AUTHORS file
Ryan Dahl [Tue, 22 Jun 2010 20:23:45 +0000 (13:23 -0700)]
Fix names in AUTHORS file

14 years agoDon't use NULL in realpath() on darwin, doesn't work in older versions
Ryan Dahl [Tue, 22 Jun 2010 20:14:03 +0000 (13:14 -0700)]
Don't use NULL in realpath() on darwin, doesn't work in older versions

Thanks to Peter Griess <pg@std.in> for the bug report.

14 years agoDoc process.execPath
Ryan Dahl [Tue, 22 Jun 2010 09:09:58 +0000 (02:09 -0700)]
Doc process.execPath

14 years agoInitial implementation of process.execPath
Marshall Culpepper [Tue, 22 Jun 2010 06:31:19 +0000 (01:31 -0500)]
Initial implementation of process.execPath

Darwin, Linux, Solaris. FreeBSD still needs testing.

TODO: Amend the tests where we use spawn with argv[0].

14 years agoFix bad email addresses in authors file
Ryan Dahl [Tue, 22 Jun 2010 03:41:53 +0000 (20:41 -0700)]
Fix bad email addresses in authors file

14 years agoAdd Contributor License Agreement.
Ryan Dahl [Tue, 22 Jun 2010 01:54:28 +0000 (18:54 -0700)]
Add Contributor License Agreement.

14 years agoAdd other OSes to website
Ryan Dahl [Tue, 22 Jun 2010 00:03:19 +0000 (17:03 -0700)]
Add other OSes to website

14 years agobump version v0.1.99
Ryan Dahl [Mon, 21 Jun 2010 20:34:10 +0000 (13:34 -0700)]
bump version

14 years agoOnly concatenate some incoming HTTP headers.
Peter Griess [Mon, 21 Jun 2010 18:53:17 +0000 (13:53 -0500)]
Only concatenate some incoming HTTP headers.

- Concatenate 'accept', 'accept-charset', 'accept-encoding',
  'accept-language', 'connection', 'cookie', and 'x-*' headers.
- For all others, drop duplicates.

14 years agowscript shouldn't fail if 'git describe' doesn't work
Ryan Dahl [Mon, 21 Jun 2010 17:21:55 +0000 (10:21 -0700)]
wscript shouldn't fail if 'git describe' doesn't work

14 years agoDon't encourage strange ideas about req race conditions
Ryan Dahl [Sun, 20 Jun 2010 18:54:51 +0000 (11:54 -0700)]
Don't encourage strange ideas about req race conditions

14 years agoFix race condition in test-http-exceptions.js
Ryan Dahl [Sun, 20 Jun 2010 06:13:28 +0000 (23:13 -0700)]
Fix race condition in test-http-exceptions.js

14 years agoComment out lines with full paths in message test.
Ryan Dahl [Sun, 20 Jun 2010 05:31:15 +0000 (22:31 -0700)]
Comment out lines with full paths in message test.

Note that * in the .out files is a special wildcard.

14 years agoExecute message tests by default
Ryan Dahl [Sun, 20 Jun 2010 03:30:49 +0000 (20:30 -0700)]
Execute message tests by default

14 years agoscript.runIn*Context not throwing errors properly.
Ryan Dahl [Sun, 20 Jun 2010 02:31:09 +0000 (19:31 -0700)]
script.runIn*Context not throwing errors properly.

14 years agoFix message tests
Ryan Dahl [Sun, 20 Jun 2010 00:41:34 +0000 (17:41 -0700)]
Fix message tests

14 years agoAdd message tests
Ryan Dahl [Sat, 19 Jun 2010 01:14:06 +0000 (18:14 -0700)]
Add message tests

14 years agotest-child-process-custom-fds to cleanup after running
Micheil Smith [Fri, 18 Jun 2010 09:46:10 +0000 (19:46 +1000)]
test-child-process-custom-fds to cleanup after running

14 years agoRenaming tcp tests to net tests
Micheil Smith [Fri, 18 Jun 2010 17:34:56 +0000 (10:34 -0700)]
Renaming tcp tests to net tests

14 years agoCoding style changes, added tests in for the md5, sha256, etc methods
Micheil Smith [Fri, 18 Jun 2010 09:42:58 +0000 (19:42 +1000)]
Coding style changes, added tests in for the md5, sha256, etc methods

14 years agoAdd platform_none for cygwin build
Ryan Dahl [Fri, 18 Jun 2010 16:46:18 +0000 (09:46 -0700)]
Add platform_none for cygwin build

14 years agoFix platform_linux.cc, missing include
Ryan Dahl [Fri, 18 Jun 2010 01:36:31 +0000 (18:36 -0700)]
Fix platform_linux.cc, missing include

14 years agoAdd platform files, move getmem to node::OS class.
Ryan Dahl [Fri, 18 Jun 2010 01:23:40 +0000 (18:23 -0700)]
Add platform files, move getmem to node::OS class.

14 years agoFix text about threads on homepage
Ryan Dahl [Thu, 17 Jun 2010 22:38:02 +0000 (15:38 -0700)]
Fix text about threads on homepage

14 years agoUpgrade V8 to 2.2.18
Ryan Dahl [Wed, 16 Jun 2010 18:45:48 +0000 (11:45 -0700)]
Upgrade V8 to 2.2.18

14 years agoSupport 'upgrade' event in HTTP client.
Peter Griess [Tue, 15 Jun 2010 17:35:49 +0000 (12:35 -0500)]
Support 'upgrade' event in HTTP client.

- Add a unit test for client HTTP upgrade.
- Move around unit tests for server HTTP upgrade.

14 years agoAdd callback to dgramSocket.send()
Ryan Dahl [Wed, 16 Jun 2010 18:00:43 +0000 (11:00 -0700)]
Add callback to dgramSocket.send()

14 years agoAdd UDP broadcast support
David Siegel [Wed, 16 Jun 2010 17:42:55 +0000 (10:42 -0700)]
Add UDP broadcast support

14 years agoFix writeFile(buffer) test
Ryan Dahl [Wed, 16 Jun 2010 17:28:46 +0000 (10:28 -0700)]
Fix writeFile(buffer) test

14 years agoAdding path.existsSync (with tests.)
Micheil Smith [Wed, 16 Jun 2010 13:51:19 +0000 (23:51 +1000)]
Adding path.existsSync (with tests.)

14 years agoThrow exceptions, not strings
isaacs [Wed, 16 Jun 2010 07:24:41 +0000 (00:24 -0700)]
Throw exceptions, not strings

14 years agofs.writeFile accepts Buffers
Aaron Heckmann [Wed, 16 Jun 2010 04:52:15 +0000 (00:52 -0400)]
fs.writeFile accepts Buffers

14 years agoFix Linux build
Ryan Dahl [Wed, 16 Jun 2010 03:04:29 +0000 (20:04 -0700)]
Fix Linux build

14 years agoFixed incorrect mask for determining fs.Stats types
Peter Dekkers [Mon, 7 Jun 2010 20:52:20 +0000 (22:52 +0200)]
Fixed incorrect mask for determining fs.Stats types

14 years agoA replacement for decodeURIComponent that doesn't throw.
isaacs [Tue, 15 Jun 2010 04:13:09 +0000 (21:13 -0700)]
A replacement for decodeURIComponent that doesn't throw.

And add a few more tests.

14 years agoRootCaCerts shouldn't be global
Ryan Dahl [Wed, 16 Jun 2010 01:29:45 +0000 (18:29 -0700)]
RootCaCerts shouldn't be global

14 years agoRefactor: Utf8Decoder -> StringDecoder
Ryan Dahl [Wed, 16 Jun 2010 01:19:25 +0000 (18:19 -0700)]
Refactor: Utf8Decoder -> StringDecoder

Instead of just decoding Utf8, this will proxy requests to buffer.toString()
for other encodings. This makes for a simpler interface.

14 years agoWrap FD in closure before emitting from Stream.
Peter Griess [Tue, 15 Jun 2010 20:33:44 +0000 (15:33 -0500)]
Wrap FD in closure before emitting from Stream.

- Without this, recvMsg can be invoked before the event emitter gets a
  chance to run. In this case, recvMsg.fd will be overwritten and the
  original caller can end up emitting null.

14 years agoUpgrade V8 to 2.2.17
Ryan Dahl [Tue, 15 Jun 2010 21:52:00 +0000 (14:52 -0700)]
Upgrade V8 to 2.2.17

14 years agoCoerce each argument to a String before attempting to print it via sys.print
Ben Lowery [Tue, 15 Jun 2010 19:16:08 +0000 (15:16 -0400)]
Coerce each argument to a String before attempting to print it via sys.print

14 years agoMore lint on node_crypto
Ryan Dahl [Tue, 15 Jun 2010 20:35:47 +0000 (13:35 -0700)]
More lint on node_crypto

14 years agoFix a bunch of memory leaks in node_crypto
Ryan Dahl [Tue, 15 Jun 2010 20:31:59 +0000 (13:31 -0700)]
Fix a bunch of memory leaks in node_crypto

14 years agoLint node_crypto.cc
Ryan Dahl [Tue, 15 Jun 2010 20:16:20 +0000 (13:16 -0700)]
Lint node_crypto.cc

14 years agoRemove unused code from node_crypto
Ryan Dahl [Tue, 15 Jun 2010 19:41:14 +0000 (12:41 -0700)]
Remove unused code from node_crypto

14 years agoSoft deprecation of 'listening' event.
Ryan Dahl [Tue, 15 Jun 2010 19:38:22 +0000 (12:38 -0700)]
Soft deprecation of 'listening' event.

Add callback param to listen() instead

14 years agoTest case for net.Server.listenFD()
Peter Griess [Tue, 15 Jun 2010 18:44:33 +0000 (11:44 -0700)]
Test case for net.Server.listenFD()

14 years agoExpose the FD numbers for stdin and stderr on process.binding("stdio")
isaacs [Sun, 13 Jun 2010 06:03:11 +0000 (23:03 -0700)]
Expose the FD numbers for stdin and stderr on process.binding("stdio")

14 years agoFix memory leak in hash.update()
Ryan Dahl [Mon, 14 Jun 2010 21:38:40 +0000 (14:38 -0700)]
Fix memory leak in hash.update()

14 years agoMerge Hash.init() function into JS constructor
Ryan Dahl [Mon, 14 Jun 2010 20:10:23 +0000 (13:10 -0700)]
Merge Hash.init() function into JS constructor

14 years agoFix: fs.writeFile could not handle utf8
Felix Geisendörfer [Mon, 14 Jun 2010 17:34:34 +0000 (19:34 +0200)]
Fix: fs.writeFile could not handle utf8

14 years agoImplement datagram sockets
Paul Querna [Sat, 12 Jun 2010 09:40:24 +0000 (02:40 -0700)]
Implement datagram sockets

- Adds new dgram module, for all data-gram type transports
- Supports both UDP client and servers
- Supports Unix Daemon sockets in DGRAM mode too (think syslog)
- Uses a shared Buffer and slices that as needed to be reasonably
  performant.
- One supplied test program so far, test-dgram-pingpong
- Passes test cases on osx 10.6 and ubuntu 9.10u

14 years agoFix #169. Expose require members in the repl.
isaacs [Fri, 11 Jun 2010 20:59:18 +0000 (13:59 -0700)]
Fix #169. Expose require members in the repl.

This fixes #169 by putting the require members onto the cwdRequire function
which is exposed to the repl scope.

14 years agoMake addon building work for Cygwin.
Brian McKenna [Fri, 11 Jun 2010 11:25:05 +0000 (21:25 +1000)]
Make addon building work for Cygwin.

14 years agoRemove "uri" module.
isaacs [Thu, 10 Jun 2010 21:56:59 +0000 (14:56 -0700)]
Remove "uri" module.

The deprecation warning was broken, so clearly no one is using this thing.

14 years agoAdd Orlando to changelog
Ryan Dahl [Fri, 11 Jun 2010 20:16:08 +0000 (13:16 -0700)]
Add Orlando to changelog

14 years agobump version v0.1.98
Ryan Dahl [Wed, 9 Jun 2010 23:13:40 +0000 (16:13 -0700)]
bump version

14 years agoUpgrade C-Ares to 1.7.3
Ryan Dahl [Fri, 11 Jun 2010 19:45:17 +0000 (12:45 -0700)]
Upgrade C-Ares to 1.7.3

14 years agoLicense file maintenance.
Ryan Dahl [Fri, 11 Jun 2010 19:34:34 +0000 (12:34 -0700)]
License file maintenance.

- reference to OpenSSL
- note about http-parser

14 years agoRemove setTimeout from initial example and description.
Matt Ranney [Fri, 11 Jun 2010 06:19:43 +0000 (23:19 -0700)]
Remove setTimeout from initial example and description.

14 years agoImprove fs.write tests
Ryan Dahl [Thu, 10 Jun 2010 21:59:06 +0000 (14:59 -0700)]
Improve fs.write tests

14 years agoDon't use bzero
Ryan Dahl [Thu, 10 Jun 2010 14:58:24 +0000 (07:58 -0700)]
Don't use bzero

14 years agoThe underscores are not meant to emphasize. Escape them.
Jérémy Lal [Thu, 10 Jun 2010 13:06:23 +0000 (15:06 +0200)]
The underscores are not meant to emphasize. Escape them.

14 years agoPort to cygwin
Raffaele Sena [Wed, 9 Jun 2010 04:08:05 +0000 (21:08 -0700)]
Port to cygwin

14 years agoUpgrade V8 to 2.2.16
Ryan Dahl [Wed, 9 Jun 2010 17:09:37 +0000 (10:09 -0700)]
Upgrade V8 to 2.2.16

14 years agoWeb site example fixes.
Matt Ranney [Wed, 9 Jun 2010 06:25:55 +0000 (23:25 -0700)]
Web site example fixes.

14 years agoUpgrade V8 to 2.2.15
Ryan Dahl [Wed, 9 Jun 2010 01:19:00 +0000 (18:19 -0700)]
Upgrade V8 to 2.2.15

14 years agoAdd 'type' parameter to net.Server.listenFD()
Peter Griess [Wed, 9 Jun 2010 01:09:17 +0000 (18:09 -0700)]
Add 'type' parameter to net.Server.listenFD()

This is needed in case the provided socket is not the default 'tcp4' type
(i.e. and needs different read/write/etc methods). With this patch, one can
call listenFD(sock, 'unix') to bind to existing UNIX domain sockets.

14 years agoHandle ctrl+z from readline
Ryan Dahl [Wed, 9 Jun 2010 00:49:04 +0000 (17:49 -0700)]
Handle ctrl+z from readline

14 years agoAdd NODE_NO_READLINE check for REPL
Ryan Dahl [Tue, 8 Jun 2010 20:05:21 +0000 (13:05 -0700)]
Add NODE_NO_READLINE check for REPL

Setting this environmental variable to a non-zero integer will start all
REPL interfaces without readline. For use with rlwrap.

14 years agoUse strings instead of buffers in readline
Ryan Dahl [Tue, 8 Jun 2010 04:19:25 +0000 (21:19 -0700)]
Use strings instead of buffers in readline

For eventual large character support.

14 years agoFix test-repl
Ryan Dahl [Tue, 8 Jun 2010 00:39:24 +0000 (17:39 -0700)]
Fix test-repl

14 years agoSupport more readline navigation keys.
Matt Ranney [Mon, 7 Jun 2010 23:43:50 +0000 (16:43 -0700)]
Support more readline navigation keys.

14 years agoDo not output \n on stderr on output, breaks tests
Ryan Dahl [Mon, 7 Jun 2010 23:23:48 +0000 (16:23 -0700)]
Do not output \n on stderr on output, breaks tests

14 years agonode without arguments starts the REPL
Ryan Dahl [Mon, 7 Jun 2010 23:15:41 +0000 (16:15 -0700)]
node without arguments starts the REPL

14 years agoFix misspelling
Ryan Dahl [Mon, 7 Jun 2010 23:03:57 +0000 (16:03 -0700)]
Fix misspelling

14 years agoAdd binding to termios, implement readline for repl
Ryan Dahl [Mon, 31 May 2010 18:50:35 +0000 (11:50 -0700)]
Add binding to termios, implement readline for repl

14 years agoadd net.Server.listenFD
Peter Griess [Mon, 7 Jun 2010 17:08:57 +0000 (10:08 -0700)]
add net.Server.listenFD

Now that FD passing is in master, it'd be great to be able to use a received
socket (which has already had bind(2) and listen(2) called on it) to fire up a
new net.Server instance. This patch adds a net.Server.listenFD() method which
will start up the accept watcher on the provided FD.

14 years agoUpgrade http-parser
Ryan Dahl [Mon, 7 Jun 2010 00:41:03 +0000 (17:41 -0700)]
Upgrade http-parser

14 years agoAllow ObjectWrap destructors before Wrap()
Ryan Dahl [Fri, 4 Jun 2010 21:23:45 +0000 (14:23 -0700)]
Allow ObjectWrap destructors before Wrap()

14 years agoMore dynamic linking options (again)
Ryan Dahl [Wed, 2 Jun 2010 21:05:37 +0000 (14:05 -0700)]
More dynamic linking options (again)

Original commit: 75f0cf471af3c029290d4bf55c34d1fc470ef600

14 years agoFix options parsing
Peter Griess [Fri, 4 Jun 2010 15:29:10 +0000 (08:29 -0700)]
Fix options parsing

The current node has a bug where it will fail to pass the option argument
immediately preceding the first non-option argument to V8. That is the
--perf flag will be ignored by V8 when running 'node --perf script.js'.

14 years agoApply fix for V8 bug 728
Ryan Dahl [Fri, 4 Jun 2010 01:50:44 +0000 (18:50 -0700)]
Apply fix for V8 bug 728

14 years agoUse a less common port in docs
Ryan Dahl [Fri, 4 Jun 2010 01:44:05 +0000 (18:44 -0700)]
Use a less common port in docs

14 years agoFix ability to disable TCP timeouts with setTimeout(0)
Ryan Dahl [Thu, 3 Jun 2010 18:01:47 +0000 (11:01 -0700)]
Fix ability to disable TCP timeouts with setTimeout(0)

14 years agoFix: require.async module exception delegation
Felix Geisendörfer [Thu, 3 Jun 2010 10:39:12 +0000 (12:39 +0200)]
Fix: require.async module exception delegation

The fs.readFile bug was hiding another bug that was causing this test
to pass, even so it was broken:

require.async("../fixtures/throws_error1") in test-module-loading.js

This patch fixes the original test by running _compile within a
try..catch block for _loadScript.

_loadScriptSync also had some useless (deprecated?) code for dealing
with module entry point exceptions. This code was also removed for
greater clarity.

14 years agoFix: fs.readFile would execute callbacks twice
Felix Geisendörfer [Thu, 3 Jun 2010 10:37:21 +0000 (12:37 +0200)]
Fix: fs.readFile would execute callbacks twice

fs.readFile was executing a callback in a try..catch context, which is
a problem in itself. To make matters worse, it would re-execute the
same callback if there was an execution.

This patch fixes both of these problems.

14 years agoDOC note stats.isSymbolicLink() is only valid with fs.lstat().
rentzsch [Thu, 3 Jun 2010 04:15:02 +0000 (23:15 -0500)]
DOC note stats.isSymbolicLink() is only valid with fs.lstat().

ref: <http://github.com/ry/node/issues#issue/153>

14 years agoSend and receive file descriptors through net.Stream.
Peter Griess [Thu, 3 Jun 2010 01:16:53 +0000 (18:16 -0700)]
Send and receive file descriptors through net.Stream.

a) create a layer of indirection in net.Stream to allow swapping in
different read/write implementations and

b) emit an 'fd' event when file descriptors are received over a UNIX pipe,
as finally as a tangential benefit

c) remove a bunch of conditionals from the primary codepaths for
ease-of-reading.

14 years agoServer responses should have a body if HEAD request
Ryan Dahl [Wed, 2 Jun 2010 21:46:29 +0000 (14:46 -0700)]
Server responses should have a body if HEAD request