platform/upstream/nodejs.git
14 years agoBetter logic for testing if an argument is a port
Ryan Dahl [Sun, 9 May 2010 19:10:38 +0000 (12:10 -0700)]
Better logic for testing if an argument is a port

If you did server.listen('123') it would open a socket in the current
directory called 123. Now it will interpret it as a port.

14 years agoDon't emit 'exit' twice from child process
Ryan Dahl [Sun, 9 May 2010 06:28:26 +0000 (23:28 -0700)]
Don't emit 'exit' twice from child process

14 years agoForgot to add child_process_should_emit_error.js
Ryan Dahl [Sun, 9 May 2010 06:24:24 +0000 (23:24 -0700)]
Forgot to add child_process_should_emit_error.js

14 years agoFix error reporting in child_process callbacks
Ryan Dahl [Sun, 9 May 2010 05:11:55 +0000 (22:11 -0700)]
Fix error reporting in child_process callbacks

Issue 120, test case by Nathan Ostgard

14 years agofs.Stats.size V8::Integer => V8::Number.
rentzsch [Sat, 8 May 2010 06:09:29 +0000 (01:09 -0500)]
fs.Stats.size V8::Integer => V8::Number.

While VM::Integer::Value() offers an int64_t, V8::Integer::New() only
accepts an int32_t, truncating fs.Stat's size in BuildStatsObject().

I consider this a bug in V8, and we should move back to V8::Integer
when it gets a ctr that allows a int64_t. Until then, this work-around
should hold.

14 years agoChange GC idle notify so that it runs along side setInterval
Ryan Dahl [Sat, 8 May 2010 02:05:59 +0000 (19:05 -0700)]
Change GC idle notify so that it runs along side setInterval

Doesn't appear any slower. Also checks for high memory usage and tries to
force more notifications.

14 years agoAdd binding.close to fs.readFile
isaacs [Fri, 7 May 2010 19:50:36 +0000 (12:50 -0700)]
Add binding.close to fs.readFile

14 years agofs.readFile uses a buffer internally and will return the raw buffer if no encoding...
Tim Caswell [Fri, 7 May 2010 05:03:43 +0000 (00:03 -0500)]
fs.readFile uses a buffer internally and will return the raw buffer if no encoding is specified.

14 years agofix authors file
Ryan Dahl [Thu, 6 May 2010 21:15:16 +0000 (14:15 -0700)]
fix authors file

14 years agoInstall node_buffer.h on make install
Ryan Dahl [Thu, 6 May 2010 21:14:52 +0000 (14:14 -0700)]
Install node_buffer.h on make install

14 years agobump version v0.1.94
Ryan Dahl [Thu, 6 May 2010 17:39:27 +0000 (10:39 -0700)]
bump version

14 years agoUpgrade V8 to 2.2.8
Ryan Dahl [Thu, 6 May 2010 16:59:35 +0000 (09:59 -0700)]
Upgrade V8 to 2.2.8

14 years agodestroy instead of end http connection at end of pipeline
Ryan Dahl [Wed, 5 May 2010 08:32:18 +0000 (01:32 -0700)]
destroy instead of end http connection at end of pipeline

14 years agoFix a bug in http.Client where parsers may be prematurely released back to the free...
Thomas Lee [Wed, 5 May 2010 08:55:04 +0000 (18:55 +1000)]
Fix a bug in http.Client where parsers may be prematurely released back to the free pool.

14 years agoChanged undefined pos to null to prevent hanging on SheevaPlug
Jonathan Knezek [Thu, 6 May 2010 05:23:45 +0000 (00:23 -0500)]
Changed undefined pos to null to prevent hanging on SheevaPlug

14 years agoAdded c-ares headers for linux-arm
Jonathan Knezek [Thu, 6 May 2010 05:22:05 +0000 (00:22 -0500)]
Added c-ares headers for linux-arm

14 years agoAdd buffer response to http_simple.js
Ryan Dahl [Wed, 5 May 2010 05:35:55 +0000 (22:35 -0700)]
Add buffer response to http_simple.js

14 years agoUse test port instead of 8000 in test-http-304
Ryan Dahl [Wed, 5 May 2010 05:06:46 +0000 (22:06 -0700)]
Use test port instead of 8000 in test-http-304

14 years agoLook in /usr/local/lib/node for modules, so that there's a way to install modules...
isaacs [Wed, 5 May 2010 04:58:43 +0000 (21:58 -0700)]
Look in /usr/local/lib/node for modules, so that there's a way to install modules globally

14 years agoAdd proper HTML header for changelog so UTF-8 works.
Matt Ranney [Wed, 5 May 2010 04:17:29 +0000 (21:17 -0700)]
Add proper HTML header for changelog so UTF-8 works.

14 years agoFix whitespace
Ryan Dahl [Wed, 5 May 2010 04:35:46 +0000 (21:35 -0700)]
Fix whitespace

14 years agoEmit a better error message when something strange is sent to OutgoingMessage#write
isaacs [Wed, 5 May 2010 01:28:49 +0000 (18:28 -0700)]
Emit a better error message when something strange is sent to OutgoingMessage#write

14 years agoLazy load crypto
Ryan Dahl [Tue, 4 May 2010 21:21:01 +0000 (14:21 -0700)]
Lazy load crypto

The whole program is being slowed down by the large CA string in crypto.
Why?

14 years agoAdded default CAs, updated openssl verify behaviour, added crypto and https documentation
Rhys Jones [Tue, 4 May 2010 20:49:00 +0000 (21:49 +0100)]
Added default CAs, updated openssl verify behaviour, added crypto and https documentation

14 years agoIgnore SIGPIPE
Ryan Dahl [Tue, 4 May 2010 17:41:56 +0000 (10:41 -0700)]
Ignore SIGPIPE

Was inadvertently removed with evcom,
http://github.com/ry/node/commit/c72967d3351c4a28c3f2434748598017aa0126d5#L10L1900

14 years agoFix SEGV by setting msg_controllen earlier.
Peter Griess [Tue, 4 May 2010 16:26:23 +0000 (11:26 -0500)]
Fix SEGV by setting msg_controllen earlier.

- Some implementations of CMSG_FIRSTHDR() rely on msg_controllen being
  set correctly, else it returns NULL: see <linux/socket.h>.

14 years agoAdditional OpenSSL tests
Rhys Jones [Mon, 3 May 2010 22:37:49 +0000 (23:37 +0100)]
Additional OpenSSL tests

14 years agoRead all records to always empty the OpenSSL reading buffer.
Paulo Matias [Sun, 2 May 2010 18:21:43 +0000 (15:21 -0300)]
Read all records to always empty the OpenSSL reading buffer.

14 years agoMake it possible to use client certificates to connect with a nodejs server, and...
Paulo Matias [Sun, 2 May 2010 03:40:21 +0000 (00:40 -0300)]
Make it possible to use client certificates to connect with a nodejs server, and make verifyPeer behaviour consistant.

14 years agoImplement writeSync for buffers
Ryan Dahl [Mon, 3 May 2010 20:25:48 +0000 (13:25 -0700)]
Implement writeSync for buffers

(Needs tests still)

14 years agoImplement fs.readSync for buffers
Ryan Dahl [Mon, 3 May 2010 20:18:33 +0000 (13:18 -0700)]
Implement fs.readSync for buffers

14 years agoImplement fs.read() for Buffers (again)
Ryan Dahl [Mon, 3 May 2010 19:55:33 +0000 (15:55 -0400)]
Implement fs.read() for Buffers (again)

14 years agoFix memory leak with fs.writeSync
Ryan Dahl [Mon, 3 May 2010 18:41:30 +0000 (11:41 -0700)]
Fix memory leak with fs.writeSync

14 years agoAdd another http upgrade test
Ryan Dahl [Mon, 3 May 2010 18:23:36 +0000 (11:23 -0700)]
Add another http upgrade test

14 years agoDon't emit error twice from http.Client
Ryan Dahl [Mon, 3 May 2010 17:53:52 +0000 (10:53 -0700)]
Don't emit error twice from http.Client

14 years agodocumentation typos and tweaks
Michaeljohn Clement [Mon, 3 May 2010 06:49:24 +0000 (02:49 -0400)]
documentation typos and tweaks

14 years agoAdd symbols to release build
Ryan Dahl [Mon, 3 May 2010 01:20:02 +0000 (18:20 -0700)]
Add symbols to release build

14 years agoRevert changes to node_file.cc
Ryan Dahl [Mon, 3 May 2010 00:38:02 +0000 (17:38 -0700)]
Revert changes to node_file.cc

Revert "Fix memory leak in fs.writeSync()"

This reverts commit 5457eae28c24739d2d0d779ab0f7deb4999a3636.

Revert "Implement fs.read() for buffers"

This reverts commit 692f580a07c2787ed5db730b5eae8e9e1da43f12.

14 years agoAllow different ports for http_simple.js
Ryan Dahl [Mon, 3 May 2010 00:26:18 +0000 (17:26 -0700)]
Allow different ports for http_simple.js

14 years agoFix memory leak in fs.writeSync()
Ryan Dahl [Mon, 3 May 2010 00:02:13 +0000 (17:02 -0700)]
Fix memory leak in fs.writeSync()

14 years agoGnuTLS -> OpenSSL on website
Ryan Dahl [Sun, 2 May 2010 18:19:01 +0000 (11:19 -0700)]
GnuTLS -> OpenSSL on website

14 years agoFix a couple mistypes in API doc
dpb587 [Sun, 2 May 2010 01:52:20 +0000 (21:52 -0400)]
Fix a couple mistypes in API doc

14 years agoDocumenting http.Server#event:upgrade
Micheil Smith [Sun, 2 May 2010 02:08:08 +0000 (12:08 +1000)]
Documenting http.Server#event:upgrade

14 years agoFixing the 1 byte off error in http.Server's upgradeHead
Micheil Smith [Sun, 2 May 2010 01:01:06 +0000 (11:01 +1000)]
Fixing the 1 byte off error in http.Server's upgradeHead

(And fix up some style issues)

14 years agoFix deprecation message
Ryan Dahl [Sat, 1 May 2010 21:45:14 +0000 (14:45 -0700)]
Fix deprecation message

14 years agoMaking requestListener for the construction of a http.Server optional, as it is for...
Micheil Smith [Fri, 30 Apr 2010 13:35:51 +0000 (23:35 +1000)]
Making requestListener for the construction of a http.Server optional, as it is for net.Server

14 years agoImplementing the event emit for Upgrade requests, with tests.
Micheil Smith [Fri, 30 Apr 2010 13:33:11 +0000 (23:33 +1000)]
Implementing the event emit for Upgrade requests, with tests.

14 years agoImplement fs.read() for buffers
Ryan Dahl [Sat, 1 May 2010 01:36:36 +0000 (18:36 -0700)]
Implement fs.read() for buffers

14 years agoFixed/Completed buffer copy range checks.
kriskowal [Sat, 1 May 2010 00:30:14 +0000 (17:30 -0700)]
Fixed/Completed buffer copy range checks.

14 years agoFix docs in node_file.cc
Ryan Dahl [Fri, 30 Apr 2010 22:35:51 +0000 (15:35 -0700)]
Fix docs in node_file.cc

14 years agoFix some styling in the docs
Ryan Dahl [Fri, 30 Apr 2010 17:33:56 +0000 (10:33 -0700)]
Fix some styling in the docs

14 years agoAdd http server 'request' event to docs
Ryan Dahl [Fri, 30 Apr 2010 17:31:21 +0000 (10:31 -0700)]
Add http server 'request' event to docs

14 years agohttp server emits 'clientError'
Ryan Dahl [Fri, 30 Apr 2010 17:28:18 +0000 (10:28 -0700)]
http server emits 'clientError'

14 years agobump version v0.1.93
Ryan Dahl [Thu, 29 Apr 2010 17:41:39 +0000 (10:41 -0700)]
bump version

14 years agoChunk strings together on Stream buffer
Ryan Dahl [Thu, 29 Apr 2010 18:57:52 +0000 (11:57 -0700)]
Chunk strings together on Stream buffer

14 years agofix typos
Ryan Dahl [Thu, 29 Apr 2010 17:11:06 +0000 (10:11 -0700)]
fix typos

14 years agoUpgrade http-parser, fixes issue 77
Ryan Dahl [Thu, 29 Apr 2010 06:28:52 +0000 (23:28 -0700)]
Upgrade http-parser, fixes issue 77

http://github.com/ry/node/issues#issue/77

14 years agoAllow callers to disable PHP/Rails style parameter mungeing in querystring.stringify
Thomas Lee [Wed, 28 Apr 2010 06:31:28 +0000 (16:31 +1000)]
Allow callers to disable PHP/Rails style parameter mungeing in querystring.stringify

14 years agoDRY binding('stdio')
Herbert Vojčík [Wed, 28 Apr 2010 23:07:13 +0000 (01:07 +0200)]
DRY binding('stdio')

14 years agobasicRequest -> module.requireNative
Ryan Dahl [Wed, 28 Apr 2010 22:28:21 +0000 (15:28 -0700)]
basicRequest -> module.requireNative

14 years agoFix signo_string for linux and solaris
Ryan Dahl [Wed, 28 Apr 2010 22:07:15 +0000 (15:07 -0700)]
Fix signo_string for linux and solaris

14 years agoprocess.evalcx has a deprecation message.
Herbert Vojčík [Wed, 28 Apr 2010 20:51:16 +0000 (22:51 +0200)]
process.evalcx has a deprecation message.

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.