platform/upstream/nodejs.git
14 years agoFix comment
Ryan Dahl [Tue, 30 Nov 2010 19:04:31 +0000 (11:04 -0800)]
Fix comment

14 years agoRemove assert in verify_peer; add comments
Ryan Dahl [Tue, 30 Nov 2010 18:54:56 +0000 (10:54 -0800)]
Remove assert in verify_peer; add comments

14 years agowin: Duplicate platform_cygwin.cc into platform_win32.cc
Bert Belder [Wed, 24 Nov 2010 23:34:13 +0000 (00:34 +0100)]
win: Duplicate platform_cygwin.cc into platform_win32.cc

14 years agowin: C-ares build config for win32
Bert Belder [Wed, 24 Nov 2010 23:17:59 +0000 (00:17 +0100)]
win: C-ares build config for win32

14 years agowin: Waf doesn't detect sys/select.h on mingw, but its there for sure
Bert Belder [Wed, 24 Nov 2010 22:44:33 +0000 (23:44 +0100)]
win: Waf doesn't detect sys/select.h on mingw, but its there for sure

14 years agowin: Make libev use send instead of write for sockets
Bert Belder [Wed, 24 Nov 2010 22:43:20 +0000 (23:43 +0100)]
win: Make libev use send instead of write for sockets

It looks like MINGW doesn't like to write() to sockets.
If wrong, revert this patch

14 years agowin: Export eio__pread and eio__pwrite so node_file can use it
Bert Belder [Wed, 24 Nov 2010 22:22:19 +0000 (23:22 +0100)]
win: Export eio__pread and eio__pwrite so node_file can use it

14 years agowin: Fix wscript for libeio on windows
Bert Belder [Wed, 24 Nov 2010 22:21:38 +0000 (23:21 +0100)]
win: Fix wscript for libeio on windows

14 years agowin: Make libeio build on windows
Bert Belder [Wed, 24 Nov 2010 01:39:54 +0000 (02:39 +0100)]
win: Make libeio build on windows

14 years agowin: Define __POSIX__ constant when the platform is POSIX-y
Bert Belder [Thu, 25 Nov 2010 00:49:21 +0000 (01:49 +0100)]
win: Define __POSIX__ constant when the platform is POSIX-y

14 years agowin: Symlink to jsmin.py doesn't work on windows
Bert Belder [Thu, 18 Nov 2010 09:37:13 +0000 (10:37 +0100)]
win: Symlink to jsmin.py doesn't work on windows

14 years agobuffer.copy targetStart defaults to 0
Ryan Dahl [Tue, 30 Nov 2010 03:59:01 +0000 (19:59 -0800)]
buffer.copy targetStart defaults to 0

14 years agoDocument defaults for buffer.copy()
Ryan Dahl [Tue, 30 Nov 2010 03:52:47 +0000 (19:52 -0800)]
Document defaults for buffer.copy()

14 years agoPut tools/ into PYTHON_PATH
Ryan Dahl [Tue, 30 Nov 2010 03:46:00 +0000 (19:46 -0800)]
Put tools/ into PYTHON_PATH

14 years agoFixed: clearTimeouts calling multiple times
Michael W [Mon, 29 Nov 2010 18:48:25 +0000 (11:48 -0700)]
Fixed: clearTimeouts calling multiple times

When clearTimeouts was called on a timer multiple times, it would break the
doubly-linked list along with future timeouts. This patch fixes that.

14 years agoSimplify execution from "big if statement"
Travis Swicegood [Mon, 29 Nov 2010 18:06:15 +0000 (12:06 -0600)]
Simplify execution from "big if statement"

This code is functionally equivalent, but in a simpler form.  Now new
parameters to `execFile` do not require `exec` to be refactored.

14 years agoRemove cruft that dealt with env parameter
Travis Swicegood [Mon, 29 Nov 2010 17:39:13 +0000 (11:39 -0600)]
Remove cruft that dealt with env parameter

Originally added in commit 078a48a9, this code dealt with an optional
env parameter that was passed to `exec`.  The parameter was removed, but
this code was left.  As it serves no purpose, removing it.

14 years agoAdd test to show ECONNREFUSED works
Ryan Dahl [Tue, 30 Nov 2010 01:36:59 +0000 (17:36 -0800)]
Add test to show ECONNREFUSED works

14 years agoFix number of args emitted by EventEmitter during "fast case" (lte 3 args)
Jeremy Martin [Sun, 28 Nov 2010 06:03:14 +0000 (01:03 -0500)]
Fix number of args emitted by EventEmitter during "fast case" (lte 3 args)

14 years agoassert.throws can now accept as RegExp
Oleg Slobodskoi [Fri, 26 Nov 2010 23:03:31 +0000 (00:03 +0100)]
assert.throws can now accept as RegExp

makes validation of errors more flexible

14 years agofix a typo in comment
Travis Swicegood [Sun, 28 Nov 2010 17:17:36 +0000 (11:17 -0600)]
fix a typo in comment

fixes issue 464

14 years agoFix variable leak.
Evan Larkin [Sat, 27 Nov 2010 09:59:47 +0000 (03:59 -0600)]
Fix variable leak.

Fixes issue 461

14 years agoDon't call exit() from the signal handler
Ryan Dahl [Tue, 30 Nov 2010 00:18:08 +0000 (16:18 -0800)]
Don't call exit() from the signal handler

Fixes issue #457

14 years agoStyle
Ryan Dahl [Mon, 29 Nov 2010 23:22:48 +0000 (15:22 -0800)]
Style

14 years agoRemove unnecessary variable def
Ryan Dahl [Mon, 29 Nov 2010 23:04:36 +0000 (15:04 -0800)]
Remove unnecessary variable def

14 years agoSimplify state transitions in http.Client
Ryan Dahl [Mon, 29 Nov 2010 22:07:55 +0000 (14:07 -0800)]
Simplify state transitions in http.Client

Fixes new bug shown in test-http-allow-req-after-204-res.js pointed out by
Tom Carden <tom.carden@gmail.com>.

14 years agoAvoid cascading EADDRINUSE test failure
Ryan Dahl [Mon, 29 Nov 2010 22:21:30 +0000 (14:21 -0800)]
Avoid cascading EADDRINUSE test failure

See note in test-securepair-client.js

14 years agoImprove HTTP debug messages
Ryan Dahl [Mon, 29 Nov 2010 21:53:35 +0000 (13:53 -0800)]
Improve HTTP debug messages

14 years agostyle
Ryan Dahl [Mon, 29 Nov 2010 15:41:08 +0000 (07:41 -0800)]
style

14 years agoAdd note about EADDRINUSE to docs
Ryan Dahl [Mon, 29 Nov 2010 08:20:21 +0000 (00:20 -0800)]
Add note about EADDRINUSE to docs

14 years agotest-fs-realpath: Don't ceate things in /tmp; use tmpDir
Ryan Dahl [Mon, 29 Nov 2010 08:07:44 +0000 (00:07 -0800)]
test-fs-realpath: Don't ceate things in /tmp; use tmpDir

14 years agoDefault to TLSv1
Ryan Dahl [Mon, 29 Nov 2010 07:24:32 +0000 (23:24 -0800)]
Default to TLSv1

14 years agostyle
Ryan Dahl [Mon, 29 Nov 2010 07:20:59 +0000 (23:20 -0800)]
style

14 years agoUse SSL_MODE_RELEASE_BUFFERS by default.
Ryan Dahl [Mon, 29 Nov 2010 05:03:41 +0000 (21:03 -0800)]
Use SSL_MODE_RELEASE_BUFFERS by default.

14 years agoAdd some TODO items
Ryan Dahl [Mon, 29 Nov 2010 02:41:53 +0000 (18:41 -0800)]
Add some TODO items

14 years agoAdd simple securepair client test
Ryan Dahl [Mon, 29 Nov 2010 02:40:30 +0000 (18:40 -0800)]
Add simple securepair client test

14 years agoUse a proper tty test.
isaacs [Sat, 27 Nov 2010 02:33:29 +0000 (18:33 -0800)]
Use a proper tty test.

14 years agoAllocations with new[] must be freed with delete[].
Tom Hughes [Wed, 24 Nov 2010 16:34:53 +0000 (10:34 -0600)]
Allocations with new[] must be freed with delete[].

See http://valgrind.org/docs/manual/mc-manual.html#mc-manual.rudefn

14 years agoFix memleak in ChildProcess:Spawn().
Tom Hughes [Wed, 24 Nov 2010 17:32:58 +0000 (11:32 -0600)]
Fix memleak in ChildProcess:Spawn().

14 years agoUpgrade V8 to 2.5.8
Ryan Dahl [Wed, 24 Nov 2010 09:03:06 +0000 (01:03 -0800)]
Upgrade V8 to 2.5.8

14 years agocmake: Install v8 headers include/node
Nikhil Marathe [Tue, 23 Nov 2010 06:46:56 +0000 (12:16 +0530)]
cmake: Install v8 headers include/node

14 years agoUse CMake's standard way to find Python.
Nikhil Marathe [Tue, 23 Nov 2010 06:46:32 +0000 (12:16 +0530)]
Use CMake's standard way to find Python.

Rather than have the python literal string, use CMake's find_package
to find actual python executable. This is more useful if you have
both Python 2 and 3 installed. CMake currently only supports python 2
and so will automatically find that version

14 years agocmake: Add cdash support.
Tom Hughes [Tue, 23 Nov 2010 18:27:03 +0000 (12:27 -0600)]
cmake: Add cdash support.

14 years agocmake: fix debian package description.
Tom Hughes [Tue, 23 Nov 2010 06:53:00 +0000 (00:53 -0600)]
cmake: fix debian package description.

14 years agocmake cleanup
Daniel Gröber [Thu, 18 Nov 2010 21:45:41 +0000 (22:45 +0100)]
cmake cleanup

 * Removed useless include_directories
 * Print ssl library path in build summary
 * ExternalProject also exists on 2.8.0
 * include pummel tests when testing with ctest
 * Moved tests.cmake to test/CMakeList.txt
 * Removed inconsistent, unnecessary condition in else

14 years agocmake: Add wrapper Makefile and README.
Tom Hughes [Tue, 23 Nov 2010 06:15:04 +0000 (00:15 -0600)]
cmake: Add wrapper Makefile and README.

14 years agoSaner, yet still ugly, fix to displaying syntax errors
Ryan Dahl [Wed, 24 Nov 2010 02:46:13 +0000 (18:46 -0800)]
Saner, yet still ugly, fix to displaying syntax errors

14 years agoFix test-securepair-server
Ryan Dahl [Wed, 24 Nov 2010 02:30:52 +0000 (18:30 -0800)]
Fix test-securepair-server

14 years agoCorrect reference to "process.Module"
isaacs [Tue, 23 Nov 2010 19:14:20 +0000 (11:14 -0800)]
Correct reference to "process.Module"

14 years agoFix ErrnoExceptions that have the wrong syscall name
Wade Simmons [Mon, 22 Nov 2010 21:24:09 +0000 (14:24 -0700)]
Fix ErrnoExceptions that have the wrong syscall name

14 years agoFix buffer.slice(0, 0)
Ryan Dahl [Tue, 23 Nov 2010 20:20:22 +0000 (12:20 -0800)]
Fix buffer.slice(0, 0)

14 years agohack to display syntax errors. FIXME
Ryan Dahl [Tue, 23 Nov 2010 01:55:04 +0000 (17:55 -0800)]
hack to display syntax errors. FIXME

14 years agoAdd cmake build support.
Tom Hughes [Mon, 22 Nov 2010 16:31:40 +0000 (10:31 -0600)]
Add cmake build support.

Squashed commit of ca128f7dcd28cbcfba154c8577ed54d4aa71dd02 with
contributions from Mark Constable (markc@renta.net) and Daniel Gröber
(darklord@darkboxed.org).

14 years agoFix problem with requireNative not exporting 'module' object
isaacs [Mon, 22 Nov 2010 19:26:37 +0000 (11:26 -0800)]
Fix problem with requireNative not exporting 'module' object

Broke require('constants'). Add unrelated test which breaks it.

14 years agoAdd support for SSDP methods -_-
Ryan Dahl [Mon, 22 Nov 2010 05:44:23 +0000 (21:44 -0800)]
Add support for SSDP methods -_-

14 years agoUpgrade http-parser
Ryan Dahl [Mon, 22 Nov 2010 05:39:14 +0000 (21:39 -0800)]
Upgrade http-parser

14 years agoFix c-ares bug: reply to a CNAME query
Ben Noordhuis [Tue, 16 Nov 2010 20:38:13 +0000 (21:38 +0100)]
Fix c-ares bug: reply to a CNAME query

doesn't contain addresses, causing ares_parse_a_reply() to bail out with
ARES_ENODATA.

14 years agoSupport CNAME lookups in DNS module.
Ben Noordhuis [Tue, 16 Nov 2010 20:50:24 +0000 (21:50 +0100)]
Support CNAME lookups in DNS module.

14 years agoApple's threaded write()s bug
Jorge Chamorro Bieling [Wed, 17 Nov 2010 09:41:30 +0000 (10:41 +0100)]
Apple's threaded write()s bug

fixes test/simple/test-fs-sir-writes-alot.js on mac

14 years agoFix mac build
Ryan Dahl [Mon, 22 Nov 2010 04:33:04 +0000 (20:33 -0800)]
Fix mac build

14 years agorequire() should work with `node --eval`.
Ben Noordhuis [Tue, 16 Nov 2010 14:44:06 +0000 (15:44 +0100)]
require() should work with `node --eval`.

with tests

Fix module path resolve bug.  Normally the module path is taken from
realpath(__filename) but with eval there is (of course) no filename

14 years agoUse sys.executable to call python
Nikhil Marathe [Thu, 18 Nov 2010 08:22:21 +0000 (13:52 +0530)]
Use sys.executable to call python

14 years agoFix compiler warnings.
Ben Noordhuis [Sat, 20 Nov 2010 12:35:56 +0000 (13:35 +0100)]
Fix compiler warnings.

14 years agoCompile with `-Wno-unused-parameter -D_FORTIFY_SOURCE=2`
Ben Noordhuis [Sat, 20 Nov 2010 12:35:41 +0000 (13:35 +0100)]
Compile with `-Wno-unused-parameter -D_FORTIFY_SOURCE=2`

14 years agoDocs for util.inherits
Marco Rogers [Sun, 21 Nov 2010 05:28:19 +0000 (00:28 -0500)]
Docs for util.inherits

14 years agorequireNative made independent on module system
Herbert Vojčík [Mon, 22 Nov 2010 02:03:21 +0000 (03:03 +0100)]
requireNative made independent on module system

14 years agoPrint deprecation warning on process.compile
Ryan Dahl [Sun, 21 Nov 2010 23:22:08 +0000 (15:22 -0800)]
Print deprecation warning on process.compile

14 years agoUse runInNewContext instead of process.compile
Ryan Dahl [Sun, 21 Nov 2010 23:16:02 +0000 (15:16 -0800)]
Use runInNewContext instead of process.compile

14 years agoLoad 'path' module with requireNative
Ryan Dahl [Sun, 21 Nov 2010 23:07:34 +0000 (15:07 -0800)]
Load 'path' module with requireNative

(now that requireNative does not depend on path module)

14 years agorequireNative doesn't depend on rest of module system
Ryan Dahl [Sun, 21 Nov 2010 23:06:20 +0000 (15:06 -0800)]
requireNative doesn't depend on rest of module system

14 years agoVarious doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World...
Silas Sewell [Sun, 21 Nov 2010 22:22:34 +0000 (17:22 -0500)]
Various doc tweaks (2-spaces vs tabs, EOL-whitespace, repl prompt, "world" vs "World", etc...)

14 years agosimplify lazy constant loading
Ryan Dahl [Sun, 21 Nov 2010 22:20:22 +0000 (14:20 -0800)]
simplify lazy constant loading

14 years agofix style in path.js
Ryan Dahl [Sun, 21 Nov 2010 22:13:54 +0000 (14:13 -0800)]
fix style in path.js

14 years agoPrint friendly error message when main module is ENOENT
Ryan Dahl [Sun, 21 Nov 2010 21:58:47 +0000 (13:58 -0800)]
Print friendly error message when main module is ENOENT

14 years agostream.pipe should remove listeners on dest close
Ryan Dahl [Sun, 21 Nov 2010 07:08:45 +0000 (23:08 -0800)]
stream.pipe should remove listeners on dest close

14 years agoRevert "Merge branch 'writev'"
Ryan Dahl [Sun, 21 Nov 2010 04:49:44 +0000 (20:49 -0800)]
Revert "Merge branch 'writev'"

This reverts commit cd9515efd99dfa6510e72342a2621bb4b291a89c, reversing
changes made to df46c8e698b9400abaabd77ec836c7cdadf9735c.

Too slow. Needs more work.

14 years agoRevert "Actually don't need to limit sendmsg size on unix - seems okay."
Ryan Dahl [Sun, 21 Nov 2010 04:45:30 +0000 (20:45 -0800)]
Revert "Actually don't need to limit sendmsg size on unix - seems okay."

This reverts commit 464ced4a86e89163ec68a0c2f020720dc82b0191.

14 years agoRevert "fd_to_send needs to be cleared if *any* data was sent"
Ryan Dahl [Sun, 21 Nov 2010 04:45:22 +0000 (20:45 -0800)]
Revert "fd_to_send needs to be cleared if *any* data was sent"

This reverts commit a93634007a0c5366d415782c2a1f164a6d7ecbc5.

14 years agoupdate repl to distinguish JSON.parse SyntaxErrors from the rest
Marco Rogers [Sat, 20 Nov 2010 23:44:58 +0000 (18:44 -0500)]
update repl to distinguish JSON.parse SyntaxErrors from the rest

14 years agoInline Buffer::Length and Buffer::Data
Ryan Dahl [Sat, 20 Nov 2010 08:04:22 +0000 (00:04 -0800)]
Inline Buffer::Length and Buffer::Data

14 years agofd_to_send needs to be cleared if *any* data was sent
Ryan Dahl [Sat, 20 Nov 2010 07:05:13 +0000 (23:05 -0800)]
fd_to_send needs to be cleared if *any* data was sent

14 years agoActually don't need to limit sendmsg size on unix - seems okay.
Ryan Dahl [Sat, 20 Nov 2010 06:52:20 +0000 (22:52 -0800)]
Actually don't need to limit sendmsg size on unix - seems okay.

14 years agoAdd failing test for TLS server
Ryan Dahl [Fri, 19 Nov 2010 21:28:04 +0000 (13:28 -0800)]
Add failing test for TLS server

14 years agoAdd some comments to securepair
Ryan Dahl [Fri, 19 Nov 2010 21:02:14 +0000 (13:02 -0800)]
Add some comments to securepair

14 years agofix style for SecureStream::IsInitFinished
Ryan Dahl [Fri, 19 Nov 2010 20:58:00 +0000 (12:58 -0800)]
fix style for SecureStream::IsInitFinished

14 years agoUpgrade V8 to 2.5.7
Ryan Dahl [Fri, 19 Nov 2010 18:49:09 +0000 (10:49 -0800)]
Upgrade V8 to 2.5.7

14 years agoAdded documentation for Stream.pipe
Nikhil Marathe [Thu, 18 Nov 2010 08:41:44 +0000 (14:11 +0530)]
Added documentation for Stream.pipe

14 years agoFix style
Ryan Dahl [Fri, 19 Nov 2010 18:00:21 +0000 (10:00 -0800)]
Fix style

14 years agoFix OpenSSL SSL_library_init function check on OpenBSD.
Brian White [Fri, 19 Nov 2010 03:33:31 +0000 (22:33 -0500)]
Fix OpenSSL SSL_library_init function check on OpenBSD.

14 years agoUpdate TODO
Ryan Dahl [Fri, 19 Nov 2010 00:57:46 +0000 (16:57 -0800)]
Update TODO

14 years agoMerge branch 'writev'
Ryan Dahl [Fri, 19 Nov 2010 00:49:39 +0000 (16:49 -0800)]
Merge branch 'writev'

14 years agoFix typo
Ryan Dahl [Fri, 19 Nov 2010 00:28:10 +0000 (16:28 -0800)]
Fix typo

14 years agoOnly try to flush big buffers once
Ryan Dahl [Thu, 18 Nov 2010 22:19:09 +0000 (14:19 -0800)]
Only try to flush big buffers once

14 years agoAdd todo about test-pipe.js and throwing on resume()
Ryan Dahl [Thu, 18 Nov 2010 20:04:33 +0000 (12:04 -0800)]
Add todo about test-pipe.js and throwing on resume()

14 years agoFix socket.end() problem on non-empty queue
Ryan Dahl [Thu, 18 Nov 2010 19:59:15 +0000 (11:59 -0800)]
Fix socket.end() problem on non-empty queue

14 years agoFix a bug regarding queueSize, add asserts
Ryan Dahl [Thu, 18 Nov 2010 19:45:32 +0000 (11:45 -0800)]
Fix a bug regarding queueSize, add asserts

14 years agoSmall clean ups
Ryan Dahl [Thu, 18 Nov 2010 19:18:07 +0000 (11:18 -0800)]
Small clean ups

14 years ago'connect' event may disconnect socket
Ryan Dahl [Wed, 17 Nov 2010 19:50:51 +0000 (11:50 -0800)]
'connect' event may disconnect socket

14 years agoDump after ev_loop
Ryan Dahl [Wed, 17 Nov 2010 19:40:43 +0000 (11:40 -0800)]
Dump after ev_loop

14 years agoEmit drain and stop IOWatcher even on empty buffer
Ryan Dahl [Wed, 17 Nov 2010 18:58:45 +0000 (10:58 -0800)]
Emit drain and stop IOWatcher even on empty buffer