platform/upstream/nodejs.git
13 years agoAdd documentation around module.exports and scope of global objects
Ryan Dahl [Mon, 11 Apr 2011 23:48:18 +0000 (16:48 -0700)]
Add documentation around module.exports and scope of global objects

Closes GH-852.

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Mon, 11 Apr 2011 23:08:10 +0000 (16:08 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years ago Upgrade v8 to 3.1.8.10
Ryan Dahl [Mon, 11 Apr 2011 23:07:54 +0000 (16:07 -0700)]
 Upgrade v8 to 3.1.8.10

13 years agoDon't error on ENOTCONN from shutdown()
Ryan Dahl [Mon, 11 Apr 2011 22:33:24 +0000 (15:33 -0700)]
Don't error on ENOTCONN from shutdown()

13 years agoAdd example to sha1 docs
Ryan Dahl [Sun, 3 Apr 2011 08:09:00 +0000 (01:09 -0700)]
Add example to sha1 docs

13 years agoChanged script to vm and corrected order to match index
George Stagas [Wed, 16 Mar 2011 07:53:36 +0000 (09:53 +0200)]
Changed script to vm and corrected order to match index

13 years agoAdded favicon.ico
George Stagas [Wed, 16 Mar 2011 07:44:05 +0000 (09:44 +0200)]
Added favicon.ico

13 years agoRemove reference to CommonJS in documentation
Ryan Dahl [Sat, 2 Apr 2011 05:18:23 +0000 (22:18 -0700)]
Remove reference to CommonJS in documentation

13 years agoNow working on version v0.4.6
Ryan Dahl [Sat, 2 Apr 2011 02:06:41 +0000 (19:06 -0700)]
Now working on version v0.4.6

13 years agoBump version to v0.4.5 v0.4.5
Ryan Dahl [Sat, 2 Apr 2011 01:00:43 +0000 (18:00 -0700)]
Bump version to v0.4.5

13 years agoCloses GH-721 Set default host header properly
isaacs [Wed, 23 Feb 2011 22:46:35 +0000 (14:46 -0800)]
Closes GH-721 Set default host header properly

However, this test is failing for some quite unrelated issue.
Getting some odd "socket hangup" crashes, and only the first request
ever makes it to the server.

13 years agoCloses GH-535 Immediate pause/resume race condition
isaacs [Tue, 29 Mar 2011 21:54:49 +0000 (14:54 -0700)]
Closes GH-535 Immediate pause/resume race condition

Calling resume() immediately after calling pause() would trigger
a race condition where it would try to read() from a file
descriptor that was already being read from, causing an EBADF

13 years agoCloses GH-310 Format slashes properly
isaacs [Tue, 29 Mar 2011 21:41:23 +0000 (14:41 -0700)]
Closes GH-310 Format slashes properly

13 years agoRevert "Disable compression with OpenSSL."
Ryan Dahl [Fri, 1 Apr 2011 19:38:42 +0000 (12:38 -0700)]
Revert "Disable compression with OpenSSL."

This reverts commit 362785f704b5754f6025bc4bcbe5835688d3002c.

13 years agoDisable compression with OpenSSL.
Ryan Dahl [Fri, 1 Apr 2011 02:27:28 +0000 (19:27 -0700)]
Disable compression with OpenSSL.

This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.

13 years agoAdd timers to globals section
Ryan Dahl [Fri, 1 Apr 2011 16:19:00 +0000 (09:19 -0700)]
Add timers to globals section

Closes GH-864.

13 years agoDon't load root certs for each SSL context
Ryan Dahl [Fri, 1 Apr 2011 01:32:21 +0000 (18:32 -0700)]
Don't load root certs for each SSL context

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Thu, 31 Mar 2011 17:07:59 +0000 (10:07 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.8
Ryan Dahl [Thu, 31 Mar 2011 17:07:48 +0000 (10:07 -0700)]
Upgrade V8 to 3.1.8.8

13 years agoprocess.stderr.write should return true
Ryan Dahl [Wed, 30 Mar 2011 22:53:07 +0000 (15:53 -0700)]
process.stderr.write should return true

13 years agoAdd test for circular refs in deepEquals
Ryan Dahl [Wed, 30 Mar 2011 17:18:12 +0000 (10:18 -0700)]
Add test for circular refs in deepEquals

Closes GH-207.

13 years agodocs: fs.read/write() cb()s now receive buffer
Jorge Chamorro Bieling [Tue, 29 Mar 2011 07:53:32 +0000 (09:53 +0200)]
docs: fs.read/write() cb()s now receive buffer

13 years agoCloses GH-843. Fix SlowBuffer.prototype.slice
Ryan Dahl [Tue, 29 Mar 2011 17:47:14 +0000 (10:47 -0700)]
Closes GH-843. Fix SlowBuffer.prototype.slice

13 years agoAdd doc note about STARTTLS
Ryan Dahl [Tue, 29 Mar 2011 16:58:50 +0000 (09:58 -0700)]
Add doc note about STARTTLS

13 years agoIncrease TLS pool size for perf increase
Ryan Dahl [Tue, 29 Mar 2011 00:37:14 +0000 (17:37 -0700)]
Increase TLS pool size for perf increase

13 years agoRevert "Alphabetize the table of contents for the API docs"
Ryan Dahl [Tue, 29 Mar 2011 00:36:50 +0000 (17:36 -0700)]
Revert "Alphabetize the table of contents for the API docs"

This reverts commit a66e45693ce19345cbe819e077340a882d67c5c8.

13 years agoTypo in docs
Ryan Dahl [Mon, 28 Mar 2011 22:59:41 +0000 (15:59 -0700)]
Typo in docs

Thanks to Anatoliy Chakkaev for pointing it out.

Closes GH-841.

13 years agoAlphabetize the table of contents for the API docs
Brian White [Wed, 23 Mar 2011 22:10:57 +0000 (18:10 -0400)]
Alphabetize the table of contents for the API docs

13 years agoRemove strange unicode output in docs
Ryan Dahl [Mon, 28 Mar 2011 22:55:45 +0000 (15:55 -0700)]
Remove strange unicode output in docs

13 years agoSee the <doc> section are now links to <doc>
David Trejo [Sun, 27 Mar 2011 14:37:23 +0000 (10:37 -0400)]
See the <doc> section are now links to <doc>

Closes GH-839.

13 years agoRemove exterraneous line
Ryan Dahl [Mon, 28 Mar 2011 22:46:36 +0000 (15:46 -0700)]
Remove exterraneous line

13 years agoRetain buffers in fs.read/write()
Jorge Chamorro Bieling [Wed, 23 Mar 2011 11:29:49 +0000 (12:29 +0100)]
Retain buffers in fs.read/write()

Closes GH-814.
Closes GH-827.

13 years agoFix listener leak in stream.pipe()
Mikeal Rogers [Mon, 28 Mar 2011 18:19:44 +0000 (11:19 -0700)]
Fix listener leak in stream.pipe()

13 years agoNow working on v0.4.5
Ryan Dahl [Sat, 26 Mar 2011 09:00:08 +0000 (02:00 -0700)]
Now working on v0.4.5

13 years agoBump version to v0.4.4 v0.4.4
Ryan Dahl [Fri, 25 Mar 2011 23:30:54 +0000 (16:30 -0700)]
Bump version to v0.4.4

13 years agoTurn off strictaliasing on solaris
Ryan Dahl [Sat, 26 Mar 2011 08:41:54 +0000 (01:41 -0700)]
Turn off strictaliasing on solaris

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Fri, 25 Mar 2011 19:02:51 +0000 (12:02 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.5
Ryan Dahl [Fri, 25 Mar 2011 19:02:38 +0000 (12:02 -0700)]
Upgrade V8 to 3.1.8.5

13 years agoAdded support for removing .once listeners
Arnout Kazemier [Fri, 18 Mar 2011 20:02:14 +0000 (21:02 +0100)]
Added support for removing .once listeners

Closes GH-806.

13 years agoAdd jobs.nodejs.org link
Ryan Dahl [Thu, 24 Mar 2011 02:23:35 +0000 (19:23 -0700)]
Add jobs.nodejs.org link

13 years agoRemove asciiSlice from docs
Ryan Dahl [Wed, 23 Mar 2011 22:01:49 +0000 (15:01 -0700)]
Remove asciiSlice from docs

13 years agoclean up whitespace in examples
Zachary Scott [Thu, 17 Mar 2011 21:13:19 +0000 (17:13 -0400)]
clean up whitespace in examples

13 years agowritable stream api has destroySoon() for exiting after data queue has been drained
Zachary Scott [Fri, 18 Feb 2011 23:30:15 +0000 (18:30 -0500)]
writable stream api has destroySoon() for exiting after data queue has been drained

13 years agoDoc fix for fs.write
Trevor Burnham [Sat, 19 Mar 2011 14:27:25 +0000 (10:27 -0400)]
Doc fix for fs.write

Closes GH-808
Closes GH-811

13 years agoClarifying that writeFile replaces existing file
Trevor Burnham [Sat, 19 Mar 2011 14:22:50 +0000 (10:22 -0400)]
Clarifying that writeFile replaces existing file

13 years agoCorrecting typo in docs: 'deprecated', not 'depreciated'
Trevor Burnham [Sat, 19 Mar 2011 14:19:47 +0000 (10:19 -0400)]
Correcting typo in docs: 'deprecated', not 'depreciated'

13 years agoGuard failed buffer constructions.
Ryan Dahl [Tue, 22 Mar 2011 20:10:50 +0000 (13:10 -0700)]
Guard failed buffer constructions.

Thanks to Jeremy Barnes for pointing it out.

13 years agoFix setsid in tty.open
Ryan Dahl [Tue, 22 Mar 2011 19:02:33 +0000 (12:02 -0700)]
Fix setsid in tty.open

Thanks to Leen Besselink for pointing this out.
Closes GH-815.

13 years agoexpose https.Agent
Ryan Dahl [Tue, 22 Mar 2011 18:24:00 +0000 (11:24 -0700)]
expose https.Agent

13 years agoFix GH-819. Drop out if connection destroyed before connect()
Ryan Dahl [Mon, 21 Mar 2011 21:48:26 +0000 (14:48 -0700)]
Fix GH-819. Drop out if connection destroyed before connect()

13 years agoFix GH-820. CryptoStream.end shouldn't throw if not writable
Ryan Dahl [Mon, 21 Mar 2011 21:36:30 +0000 (14:36 -0700)]
Fix GH-820. CryptoStream.end shouldn't throw if not writable

This matches the behavior of net.Socket

13 years agoAdd video to index.html
Ryan Dahl [Mon, 21 Mar 2011 01:07:29 +0000 (18:07 -0700)]
Add video to index.html

13 years agoadd demo to home page
Ryan Dahl [Sun, 20 Mar 2011 03:28:31 +0000 (20:28 -0700)]
add demo to home page

13 years agoUse feedburner instead of wordpress
Ryan Dahl [Fri, 18 Mar 2011 22:49:26 +0000 (15:49 -0700)]
Use feedburner instead of wordpress

13 years agoNow working on v0.4.4
Ryan Dahl [Fri, 18 Mar 2011 22:19:12 +0000 (15:19 -0700)]
Now working on v0.4.4

13 years agobump version to v0.4.3 v0.4.3
Ryan Dahl [Fri, 18 Mar 2011 21:20:37 +0000 (14:20 -0700)]
bump version to v0.4.3

13 years agoMerge branch 'v8-3.1' into v0.4
Ryan Dahl [Fri, 18 Mar 2011 21:24:37 +0000 (14:24 -0700)]
Merge branch 'v8-3.1' into v0.4

13 years agoUpgrade V8 to 3.1.8.3
Ryan Dahl [Fri, 18 Mar 2011 21:22:52 +0000 (14:22 -0700)]
Upgrade V8 to 3.1.8.3

13 years agoDon't call GetMemoryUsage every 5 seconds
Ryan Dahl [Fri, 18 Mar 2011 18:39:44 +0000 (11:39 -0700)]
Don't call GetMemoryUsage every 5 seconds

13 years agoDocument 'ucs2' encoding for Buffer
koichik [Wed, 16 Mar 2011 19:59:55 +0000 (04:59 +0900)]
Document 'ucs2' encoding for Buffer

13 years agoDon't override explicit openssl paths with pkg-config results.
Dean McNamee [Tue, 15 Mar 2011 19:48:34 +0000 (19:48 +0000)]
Don't override explicit openssl paths with pkg-config results.

13 years agoFix double free of parser on error in http.Agent.
Ryan Dahl [Fri, 18 Mar 2011 17:31:38 +0000 (10:31 -0700)]
Fix double free of parser on error in http.Agent.

Thanks to Stéphan Kochen for the fix and Maurice Fonk for reproducing the
bug.

Closes GH-784.
Closes GH-803.

13 years agoFix gcc version checking for aliasing features
Ryan Dahl [Fri, 18 Mar 2011 17:01:45 +0000 (10:01 -0700)]
Fix gcc version checking for aliasing features

13 years agohello.txt should be stored in tmpdir
Ryan Dahl [Fri, 18 Mar 2011 16:14:15 +0000 (09:14 -0700)]
hello.txt should be stored in tmpdir

13 years agoDon't use https for blog.nodejs.org
Ryan Dahl [Thu, 17 Mar 2011 20:49:32 +0000 (13:49 -0700)]
Don't use https for blog.nodejs.org

13 years agoLink to Node blog
Ryan Dahl [Thu, 17 Mar 2011 20:32:27 +0000 (13:32 -0700)]
Link to Node blog

13 years agoWorking on v0.4.3-pre - oops
Ryan Dahl [Tue, 15 Mar 2011 02:53:59 +0000 (02:53 +0000)]
Working on v0.4.3-pre - oops

13 years agoFix comment in node_provider.d
Ryan Dahl [Tue, 15 Mar 2011 02:50:52 +0000 (02:50 +0000)]
Fix comment in node_provider.d

13 years agoUpdate copyright headers
Ryan Dahl [Thu, 10 Mar 2011 08:54:52 +0000 (00:54 -0800)]
Update copyright headers

13 years agoFix HTTP agent disconnection problem
Ryan Dahl [Mon, 14 Mar 2011 21:42:01 +0000 (14:42 -0700)]
Fix HTTP agent disconnection problem

https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o

Closes GH-787.

13 years agoCrypto update should only accept strings / buffers
Felix Geisendörfer [Mon, 14 Mar 2011 10:16:35 +0000 (11:16 +0100)]
Crypto update should only accept strings / buffers

I have seen a lot of people trying to pass objects to crypto's update
functions, assuming that it would somehow serialize the object before
hashing.

In reality, the object was converted to '[object Object]' which was
then hashed, without any error message showing.

This patch modifies the DecodeBytes function (used exclusively by
crypto at this point) to complain when receiving anything but a
string or buffer.

Overall this should be a less-suprising, more robust behavior.

13 years agoDo not use defineGetter in src/node.js for better crankshaft perf
Ryan Dahl [Mon, 14 Mar 2011 19:48:35 +0000 (12:48 -0700)]
Do not use defineGetter in src/node.js for better crankshaft perf

See: https://groups.google.com/d/topic/nodejs/xJqpp1_s6is/discussion

13 years agoTLS: Finer locks on _cycle.
Theo Schlossnagle [Mon, 14 Mar 2011 19:04:00 +0000 (12:04 -0700)]
TLS: Finer locks on _cycle.

Data being sent out of order.

13 years agoExtend OpenSSL expiration dates
Ryan Dahl [Mon, 14 Mar 2011 18:30:21 +0000 (11:30 -0700)]
Extend OpenSSL expiration dates

13 years agoBetter type checks for fd in net.js
koichik [Fri, 11 Mar 2011 16:35:02 +0000 (01:35 +0900)]
Better type checks for fd in net.js

13 years agoFix GH-746 process.stdin.destroy() breaks http server
koichik [Fri, 11 Mar 2011 16:00:46 +0000 (01:00 +0900)]
Fix GH-746 process.stdin.destroy() breaks http server

13 years agowithout this the server will not advertise support for client certs
Theo Schlossnagle [Fri, 11 Mar 2011 22:11:46 +0000 (17:11 -0500)]
without this the server will not advertise support for client certs

Closes GH-774.

13 years agoUse pthread_kill for V8/Solaris sampling
Ryan Dahl [Fri, 11 Mar 2011 03:08:42 +0000 (03:08 +0000)]
Use pthread_kill for V8/Solaris sampling

13 years agoSample correct registers on Solaris
Ryan Dahl [Fri, 11 Mar 2011 03:06:43 +0000 (03:06 +0000)]
Sample correct registers on Solaris

http://codereview.chromium.org/6676019/

13 years agoUse default backend for __sun (event ports)
Ryan Dahl [Thu, 24 Feb 2011 01:04:14 +0000 (17:04 -0800)]
Use default backend for __sun (event ports)

13 years agoBuffer::Length(Buffer*) should not invoke itself recursively.
Ben Noordhuis [Tue, 8 Mar 2011 20:46:20 +0000 (21:46 +0100)]
Buffer::Length(Buffer*) should not invoke itself recursively.

Closes GH-759.

13 years agoDocument options for https.request
Ryan Dahl [Thu, 10 Mar 2011 21:34:35 +0000 (13:34 -0800)]
Document options for https.request

Closes GH-768.

13 years agoFix V8 runtime profiler for solaris
Ryan Dahl [Thu, 10 Mar 2011 20:48:07 +0000 (20:48 +0000)]
Fix V8 runtime profiler for solaris

13 years agoDocument net.Socket() constructor
koichik [Thu, 10 Mar 2011 17:15:05 +0000 (02:15 +0900)]
Document net.Socket() constructor

13 years agoCryptoStream.prototype.destroySoon shouldn't die if not writable
Ryan Dahl [Wed, 9 Mar 2011 18:53:06 +0000 (10:53 -0800)]
CryptoStream.prototype.destroySoon shouldn't die if not writable

13 years agoAdd missing v8:: namespace prefix
Ryan Dahl [Wed, 9 Mar 2011 17:42:03 +0000 (09:42 -0800)]
Add missing v8:: namespace prefix

13 years agoAdd string class that uses ExternalAsciiStringResource.
Tom Hughes [Tue, 8 Mar 2011 06:00:51 +0000 (00:00 -0600)]
Add string class that uses ExternalAsciiStringResource.

Change the natives to use this class instead of creating completely new
strings. Reduces memory usage by about 1 MB.

13 years agosetMaxListeners should initialize _events
Ryan Dahl [Mon, 7 Mar 2011 21:16:00 +0000 (13:16 -0800)]
setMaxListeners should initialize _events

13 years agocmake: explicitly disable fdatasync when building for OSX.
Tom Hughes [Fri, 4 Mar 2011 16:37:34 +0000 (10:37 -0600)]
cmake: explicitly disable fdatasync when building for OSX.

This ensures that the check_function_exists() for fdatasync in the
libeio CMakeLists.txt is not run, since that fails on some versions of
OSX (http://public.kitware.com/Bug/view.php?id=10044).

13 years agoCorrect some links
koichik [Thu, 3 Mar 2011 16:08:12 +0000 (01:08 +0900)]
Correct some links

13 years agoDocument allowHalfOpen for net.createServer()
koichik [Thu, 3 Mar 2011 16:05:03 +0000 (01:05 +0900)]
Document allowHalfOpen for net.createServer()

13 years agoDon't decrease server connection counter again if destroy() is called more than once
Andreas Reich [Wed, 8 Dec 2010 21:39:50 +0000 (13:39 -0800)]
Don't decrease server connection counter again if destroy() is called more than once

Test: Anders Conbere <aconbere@gmail.com>
Fix: Andreas Reich <andreas@reich.name>

Closes GH-431.
Closes GH-502.

13 years agoBump version to v0.4.2 v0.4.2
Ryan Dahl [Thu, 3 Mar 2011 05:20:50 +0000 (21:20 -0800)]
Bump version to v0.4.2

13 years agoRevert "Closes GH-85 Emit error rather than throwing."
Ryan Dahl [Thu, 3 Mar 2011 06:08:44 +0000 (22:08 -0800)]
Revert "Closes GH-85 Emit error rather than throwing."

This reverts commit f3d364122dc12f13cbfb848576a8b152849452ea.

Landed in master instead.

13 years agoDisable test-http-agent2.js for the moment
Ryan Dahl [Thu, 3 Mar 2011 05:21:08 +0000 (21:21 -0800)]
Disable test-http-agent2.js for the moment

Still broken.

13 years agoAutodetect no-strict-aliasing, propagate toolchain option to SCons
Bert Belder [Thu, 17 Feb 2011 02:15:24 +0000 (03:15 +0100)]
Autodetect no-strict-aliasing, propagate toolchain option to SCons

BUG=v8:884

13 years agoUpgrade V8 to 3.1.8
Ryan Dahl [Thu, 3 Mar 2011 05:04:37 +0000 (21:04 -0800)]
Upgrade V8 to 3.1.8

13 years agonewline should also be treated as "enter" key.
Tom Hughes [Thu, 3 Mar 2011 01:37:38 +0000 (19:37 -0600)]
newline should also be treated as "enter" key.

13 years agoCorrect net.createServer() API docs
koichik [Wed, 2 Mar 2011 18:32:13 +0000 (03:32 +0900)]
Correct net.createServer() API docs

13 years agoFix fs.WriteStream.end(data, [encoding]) throws TypeError
koichik [Tue, 1 Mar 2011 15:35:32 +0000 (00:35 +0900)]
Fix fs.WriteStream.end(data, [encoding]) throws TypeError