platform/upstream/nodejs.git
13 years agoBetter way of getting rid of symlinks
Bert Belder [Fri, 26 Nov 2010 03:10:39 +0000 (04:10 +0100)]
Better way of getting rid of symlinks

Windows, especially msysgit, doesn't like 'em

13 years agoUpdate TODO.w32
Bert Belder [Fri, 26 Nov 2010 02:27:44 +0000 (03:27 +0100)]
Update TODO.w32

13 years agonode_net: IsIP and CreateErrnoException just work
Bert Belder [Fri, 26 Nov 2010 02:19:30 +0000 (03:19 +0100)]
node_net: IsIP and CreateErrnoException just work

13 years agoBugfixes, more consistency in node_net error handling
Bert Belder [Fri, 26 Nov 2010 02:06:12 +0000 (03:06 +0100)]
Bugfixes, more consistency in node_net error handling

13 years agoMake node_net Connect work
Bert Belder [Fri, 26 Nov 2010 02:03:01 +0000 (03:03 +0100)]
Make node_net Connect work

13 years agoMake node_net Shutdown work on windows
Bert Belder [Fri, 26 Nov 2010 01:40:39 +0000 (02:40 +0100)]
Make node_net Shutdown work on windows

13 years agoAdd todo file for windows port
Bert Belder [Fri, 26 Nov 2010 01:10:04 +0000 (02:10 +0100)]
Add todo file for windows port

13 years agoRe-enable stat watchers on windows
Bert Belder [Fri, 26 Nov 2010 00:27:14 +0000 (01:27 +0100)]
Re-enable stat watchers on windows

This reverts commit b8a99f94167a25f63ae096d9d5e2cc9cf70cecef.

13 years agoLibeio should use correct stat/fstat as well
Bert Belder [Fri, 26 Nov 2010 00:24:04 +0000 (01:24 +0100)]
Libeio should use correct stat/fstat as well

13 years agoUse unicode and bigfile aware stat/fstat
Bert Belder [Fri, 26 Nov 2010 00:23:04 +0000 (01:23 +0100)]
Use unicode and bigfile aware stat/fstat

13 years agoFix error reporting and EAGAIN handling bug in net Write
Bert Belder [Thu, 25 Nov 2010 15:08:24 +0000 (16:08 +0100)]
Fix error reporting and EAGAIN handling bug in net Write

Clarify some comments as well

13 years agoRemove stray file
Bert Belder [Thu, 25 Nov 2010 05:00:44 +0000 (06:00 +0100)]
Remove stray file

13 years agoDon't break the linux build
Bert Belder [Thu, 25 Nov 2010 04:19:08 +0000 (05:19 +0100)]
Don't break the linux build

13 years agoMake Read and Write in node_net.cc actually work on sockets
Bert Belder [Thu, 25 Nov 2010 04:06:31 +0000 (05:06 +0100)]
Make Read and Write in node_net.cc actually work on sockets

13 years agoMake Socket, Bind, Listen, Accept work for windows
Bert Belder [Thu, 25 Nov 2010 04:05:35 +0000 (05:05 +0100)]
Make Socket, Bind, Listen, Accept work for windows

13 years agoMake SetNonBlock and SetSockFlags work on FDs instead of sockets
Bert Belder [Thu, 25 Nov 2010 04:03:39 +0000 (05:03 +0100)]
Make SetNonBlock and SetSockFlags work on FDs instead of sockets

However, don't use _get_osfhandle in Close()

13 years agoUse the c-ares pton/ntop hack in node_net.cc as well
Bert Belder [Thu, 25 Nov 2010 03:59:52 +0000 (04:59 +0100)]
Use the c-ares pton/ntop hack in node_net.cc as well

13 years agowscript: use "node.exe" and avoid symlinks on windows
Bert Belder [Thu, 25 Nov 2010 01:14:53 +0000 (02:14 +0100)]
wscript: use "node.exe" and avoid symlinks on windows

13 years agoPerformance-killing bug workaround for V8 on mingw
Bert Belder [Wed, 24 Nov 2010 22:51:32 +0000 (23:51 +0100)]
Performance-killing bug workaround for V8 on mingw

When V8 on mingw generates a _compiled_ call stub for an external api callback, it fucks up the stack.
It doesn't set the stack pointers properly. Could be due to subtly different calling conventions?
This patch disables the simple_api_call optimization. It hurts performance.

13 years agoIgnore eclipse project files
Bert Belder [Thu, 25 Nov 2010 00:57:15 +0000 (01:57 +0100)]
Ignore eclipse project files

13 years agoWafadmin: don't even think about using msvc
Bert Belder [Thu, 25 Nov 2010 00:55:29 +0000 (01:55 +0100)]
Wafadmin: don't even think about using msvc

13 years agoOn windows, link with Winsock and WinMM
Bert Belder [Thu, 25 Nov 2010 00:50:28 +0000 (01:50 +0100)]
On windows, link with Winsock and WinMM

13 years agoBackslashes in paths wreak havoc
Bert Belder [Thu, 25 Nov 2010 00:48:41 +0000 (01:48 +0100)]
Backslashes in paths wreak havoc

13 years agoNo -rdynamic and -pthread flags when building with mingw
Bert Belder [Thu, 25 Nov 2010 00:45:32 +0000 (01:45 +0100)]
No -rdynamic and -pthread flags when building with mingw

13 years agoAlways use statically linked c-ares on windows; fix build
Bert Belder [Thu, 25 Nov 2010 00:43:33 +0000 (01:43 +0100)]
Always use statically linked c-ares on windows; fix build

On win32 CARES is always static, so we can call internal functions like ares_inet_pton et al.
CARES_STATICLIB must be defined or gcc will try to make DLL stub calls

13 years agoMingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)
Bert Belder [Thu, 25 Nov 2010 00:41:28 +0000 (01:41 +0100)]
Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)

13 years agoUse ares_socket_t instead of int for sockets
Bert Belder [Thu, 25 Nov 2010 00:40:42 +0000 (01:40 +0100)]
Use ares_socket_t instead of int for sockets

13 years agoFix header files for node_cares.cc
Bert Belder [Thu, 25 Nov 2010 00:40:17 +0000 (01:40 +0100)]
Fix header files for node_cares.cc

13 years agoOn windows, there's no support (yet) for chown and symlink functions
Bert Belder [Thu, 25 Nov 2010 00:27:37 +0000 (01:27 +0100)]
On windows, there's no support (yet) for chown and symlink functions

13 years agoOn windows, stat() doesn't give you block (size) info
Bert Belder [Thu, 25 Nov 2010 00:26:19 +0000 (01:26 +0100)]
On windows, stat() doesn't give you block (size) info

13 years agoOn windows, mkdir() doesn't take a mode parameter
Bert Belder [Thu, 25 Nov 2010 00:25:46 +0000 (01:25 +0100)]
On windows, mkdir() doesn't take a mode parameter

13 years agoFix fsync/fdatasync for windows
Bert Belder [Thu, 25 Nov 2010 00:25:25 +0000 (01:25 +0100)]
Fix fsync/fdatasync for windows

13 years agoOn windows use eio__pread and eio__pwrite (hack)
Bert Belder [Thu, 25 Nov 2010 00:24:59 +0000 (01:24 +0100)]
On windows use eio__pread and eio__pwrite (hack)

13 years agoInclude windows.h in node_file.cc
Bert Belder [Thu, 25 Nov 2010 00:23:07 +0000 (01:23 +0100)]
Include windows.h in node_file.cc

13 years agoMost of node_net is not yet available on windows
Bert Belder [Thu, 25 Nov 2010 00:21:30 +0000 (01:21 +0100)]
Most of node_net is not yet available on windows

13 years agoMake SetNonBlock and SetSockFlags work on mingw
Bert Belder [Thu, 25 Nov 2010 00:20:08 +0000 (01:20 +0100)]
Make SetNonBlock and SetSockFlags work on mingw

13 years agoFix headers for node_net.cc
Bert Belder [Thu, 25 Nov 2010 00:19:13 +0000 (01:19 +0100)]
Fix headers for node_net.cc

13 years agoS_IFLNK, S_IFSOCK and SIGCHLD are not available on windows
Bert Belder [Thu, 25 Nov 2010 00:13:52 +0000 (01:13 +0100)]
S_IFLNK, S_IFSOCK and SIGCHLD are not available on windows

13 years agoStat watchers don't work on windows yet
Bert Belder [Thu, 25 Nov 2010 00:13:23 +0000 (01:13 +0100)]
Stat watchers don't work on windows yet

13 years agoThere is no child process support for windows yet
Bert Belder [Thu, 25 Nov 2010 00:11:14 +0000 (01:11 +0100)]
There is no child process support for windows yet

13 years agoFix header files for node_buffer.cc
Bert Belder [Thu, 25 Nov 2010 00:09:33 +0000 (01:09 +0100)]
Fix header files for node_buffer.cc

13 years agoDisable node.cc functions that are not supported on windows
Bert Belder [Thu, 25 Nov 2010 00:09:06 +0000 (01:09 +0100)]
Disable node.cc functions that are not supported on windows

13 years agoThere's no SIGCHLD on windows
Bert Belder [Thu, 25 Nov 2010 00:04:31 +0000 (01:04 +0100)]
There's no SIGCHLD on windows

13 years agoProperly intialize winsock
Bert Belder [Thu, 25 Nov 2010 00:03:51 +0000 (01:03 +0100)]
Properly intialize winsock

13 years agoFix headers for node.cc
Bert Belder [Thu, 25 Nov 2010 00:02:55 +0000 (01:02 +0100)]
Fix headers for node.cc

13 years agoAdd errno.h to platform_win32.cc
Bert Belder [Thu, 25 Nov 2010 00:02:05 +0000 (01:02 +0100)]
Add errno.h to platform_win32.cc

13 years agonode_stdio stub for windows
Bert Belder [Wed, 24 Nov 2010 23:59:40 +0000 (00:59 +0100)]
node_stdio stub for windows

13 years agoMacros for warning about unimplemented APIs
Bert Belder [Wed, 24 Nov 2010 23:54:14 +0000 (00:54 +0100)]
Macros for warning about unimplemented APIs

13 years agoAvoid WCHAR string conversion warning
Bert Belder [Wed, 24 Nov 2010 23:47:42 +0000 (00:47 +0100)]
Avoid WCHAR string conversion warning

13 years ago`errno` is reserved; use `errorno`
Bert Belder [Wed, 24 Nov 2010 23:45:11 +0000 (00:45 +0100)]
`errno` is reserved; use `errorno`

13 years agoNo implementation for OS::GetExecutablePath and OS::GetMemory yet
Bert Belder [Wed, 24 Nov 2010 23:43:26 +0000 (00:43 +0100)]
No implementation for OS::GetExecutablePath and OS::GetMemory yet

13 years agoMake winapi_perror public
Bert Belder [Wed, 24 Nov 2010 23:42:33 +0000 (00:42 +0100)]
Make winapi_perror public

13 years agoStub out platform_win32.h
Bert Belder [Wed, 24 Nov 2010 23:39:46 +0000 (00:39 +0100)]
Stub out platform_win32.h

13 years agoDynamically link with pthreads-w32
Bert Belder [Wed, 24 Nov 2010 22:19:23 +0000 (23:19 +0100)]
Dynamically link with pthreads-w32

Adds some explanation what would need to be done to link pthreads statically

13 years agoV8: Don't attempt to build w/ snapshot, doesn't seem to work on mingw32
Bert Belder [Thu, 25 Nov 2010 00:44:41 +0000 (01:44 +0100)]
V8: Don't attempt to build w/ snapshot, doesn't seem to work on mingw32

13 years agoFix v8 build on mingw32
Bert Belder [Wed, 24 Nov 2010 22:46:22 +0000 (23:46 +0100)]
Fix v8 build on mingw32

13 years agourl.parse(url, true) defaults query field to {}
Jeremy Martin [Mon, 20 Dec 2010 21:21:02 +0000 (16:21 -0500)]
url.parse(url, true) defaults query field to {}

13 years agoAdd callback to CryptoStream.write
Ryan Dahl [Mon, 20 Dec 2010 19:08:51 +0000 (11:08 -0800)]
Add callback to CryptoStream.write

13 years agoAdd doc for Buffer.isBuffer
Ryan Dahl [Sun, 19 Dec 2010 02:44:04 +0000 (18:44 -0800)]
Add doc for Buffer.isBuffer

13 years agocleartext.socket always exists
Ryan Dahl [Sun, 19 Dec 2010 00:38:32 +0000 (16:38 -0800)]
cleartext.socket always exists

13 years agoTLS: check we're not disconnected before Cleartext blow
Ryan Dahl [Sat, 18 Dec 2010 23:34:10 +0000 (15:34 -0800)]
TLS: check we're not disconnected before Cleartext blow

13 years agoParse issuer and subject from CryptoStream.getPeerCertificate
Ryan Dahl [Sat, 18 Dec 2010 19:18:33 +0000 (11:18 -0800)]
Parse issuer and subject from CryptoStream.getPeerCertificate

13 years agoAdd optional filters to stream.pipe()
Ryan Dahl [Fri, 17 Dec 2010 21:56:47 +0000 (13:56 -0800)]
Add optional filters to stream.pipe()

13 years agoNow working on v0.3.3-pre
Ryan Dahl [Fri, 17 Dec 2010 17:24:24 +0000 (09:24 -0800)]
Now working on v0.3.3-pre

13 years agoBump version to v0.3.2 v0.3.2
Ryan Dahl [Thu, 16 Dec 2010 20:19:45 +0000 (12:19 -0800)]
Bump version to v0.3.2

13 years agoRemove toJSON usage - it was removed from V8
Ryan Dahl [Fri, 17 Dec 2010 17:50:41 +0000 (09:50 -0800)]
Remove toJSON usage - it was removed from V8

13 years agoUpgrade V8 to 3.0.3
Ryan Dahl [Fri, 17 Dec 2010 17:29:19 +0000 (09:29 -0800)]
Upgrade V8 to 3.0.3

13 years agoFix compilation on OpenBSD and FreeBSD
Brian White [Fri, 17 Dec 2010 03:57:41 +0000 (22:57 -0500)]
Fix compilation on OpenBSD and FreeBSD

While it compiles fine on FreeBSD, at least on amd64 node dies with:
"CALL_AND_RETRY_0 allocation failed - process out of memory"

13 years agoRevert "Simplify next tick logic by looping around ev_loop"
Ryan Dahl [Fri, 17 Dec 2010 02:40:23 +0000 (18:40 -0800)]
Revert "Simplify next tick logic by looping around ev_loop"

This reverts commit 241ea7e5954e4a049af85cd8d51b84202cf0ea3a.

Fixes GH-511: https://github.com/ry/node/issues/issue/511

13 years agoAdd failing test for GH-511
Jorge Chamorro Bieling [Fri, 17 Dec 2010 02:40:06 +0000 (18:40 -0800)]
Add failing test for GH-511

13 years agoAdd os module to repl's built-in lib list
Brian White [Fri, 17 Dec 2010 00:41:38 +0000 (19:41 -0500)]
Add os module to repl's built-in lib list

13 years agoAdd oprofile patch to repo
Ryan Dahl [Thu, 16 Dec 2010 22:25:02 +0000 (14:25 -0800)]
Add oprofile patch to repo

13 years agoAdd solaris patch file
Ryan Dahl [Thu, 16 Dec 2010 22:22:41 +0000 (14:22 -0800)]
Add solaris patch file

13 years agoPatch V8 to compile on solaris
Ryan Dahl [Thu, 16 Dec 2010 22:03:04 +0000 (22:03 +0000)]
Patch V8 to compile on solaris

13 years agoAdd 5 sec timeout to test-tls-securepair-client
Ryan Dahl [Thu, 16 Dec 2010 20:22:30 +0000 (12:22 -0800)]
Add 5 sec timeout to test-tls-securepair-client

This test is broken for people who don't have OpenSSL 1.0.0 - but it's just
a bug in OpenSSL. Add this timeout so that it doesn't take super long to run
the tests.

13 years agoApply V8 r5951 to fix Mac build
Ryan Dahl [Fri, 10 Dec 2010 19:21:47 +0000 (11:21 -0800)]
Apply V8 r5951 to fix Mac build

From f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
 and then trimming it when the length is known.  This way we only have to
 traverse the input once.
 Review URL: http://codereview.chromium.org/5556012

13 years agoUpgrade V8 to 3.0.2
Ryan Dahl [Thu, 16 Dec 2010 19:52:08 +0000 (11:52 -0800)]
Upgrade V8 to 3.0.2

13 years agoAdd callback paramenter to socket.connect()
Ryan Dahl [Wed, 15 Dec 2010 23:57:13 +0000 (15:57 -0800)]
Add callback paramenter to socket.connect()

13 years agoAdd callback to socket.write()
Ryan Dahl [Wed, 15 Dec 2010 23:47:02 +0000 (15:47 -0800)]
Add callback to socket.write()

13 years agobetter option parsing for socket.write()
Ryan Dahl [Wed, 15 Dec 2010 23:15:27 +0000 (15:15 -0800)]
better option parsing for socket.write()

13 years agoPrint 'make clean' commands
Ryan Dahl [Tue, 14 Dec 2010 06:13:51 +0000 (22:13 -0800)]
Print 'make clean' commands

13 years agoMake oprofile work
Ryan Dahl [Tue, 14 Dec 2010 06:04:54 +0000 (22:04 -0800)]
Make oprofile work

13 years agoUpgrade V8 to 3.0.1
Ryan Dahl [Tue, 14 Dec 2010 06:03:33 +0000 (22:03 -0800)]
Upgrade V8 to 3.0.1

13 years agolink windows/cygwin build to the wiki docs
isaacs [Sun, 12 Dec 2010 19:13:38 +0000 (11:13 -0800)]
link windows/cygwin build to the wiki docs

Suggested by temp01 in IRC.
http://irc.npmjs.org/node.js/2010-12-12#NODE-JS-2010-12-12T18-59-36-270Z
18:59:36 temp01: I feel like the build section on nodejs.org should link
there
19:11:18 isaacs: temp01: yeah, that'd be helpful

13 years agoPrefer require.cache over native module cache
Felix Geisendörfer [Mon, 13 Dec 2010 22:56:16 +0000 (23:56 +0100)]
Prefer require.cache over native module cache

This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.

The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.

13 years agoTLS: server should die on junk
Ryan Dahl [Sat, 11 Dec 2010 10:45:38 +0000 (02:45 -0800)]
TLS: server should die on junk

13 years agoRandom doc fixes
Ryan Dahl [Sat, 11 Dec 2010 10:32:48 +0000 (02:32 -0800)]
Random doc fixes

13 years agoAdd docs for tls.connect()
Ryan Dahl [Sat, 11 Dec 2010 10:26:48 +0000 (02:26 -0800)]
Add docs for tls.connect()

13 years agoRename node::SecureStream to node::crypto::Connection
Ryan Dahl [Sat, 11 Dec 2010 10:13:24 +0000 (02:13 -0800)]
Rename node::SecureStream to node::crypto::Connection

node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)

13 years agoTLS: Simplify code from suck and blow
Ryan Dahl [Sat, 11 Dec 2010 09:42:34 +0000 (01:42 -0800)]
TLS: Simplify code from suck and blow

13 years agoAdd CryptoStream.destroy()
Ryan Dahl [Sat, 11 Dec 2010 09:21:25 +0000 (01:21 -0800)]
Add CryptoStream.destroy()

13 years agoFactor out CryptoStream.end; support data on end()
Ryan Dahl [Sat, 11 Dec 2010 09:18:32 +0000 (01:18 -0800)]
Factor out CryptoStream.end; support data on end()

13 years agoFix typo
Ryan Dahl [Sat, 11 Dec 2010 08:56:58 +0000 (00:56 -0800)]
Fix typo

13 years agoAdd os module and getHostname
Brian White [Sat, 11 Dec 2010 08:49:38 +0000 (03:49 -0500)]
Add os module and getHostname

13 years agoFactor out some _cycle functionality into Cleartext and EncrypteStreams
Ryan Dahl [Sat, 11 Dec 2010 06:29:46 +0000 (22:29 -0800)]
Factor out some _cycle functionality into Cleartext and EncrypteStreams

13 years agoAdd receivedShutdown() binding
Ryan Dahl [Sat, 11 Dec 2010 06:09:46 +0000 (22:09 -0800)]
Add receivedShutdown() binding

13 years agoAdd EncryptedStream and CleartextStream classes
Ryan Dahl [Sat, 11 Dec 2010 02:25:12 +0000 (18:25 -0800)]
Add EncryptedStream and CleartextStream classes

Towards half-closed secure sockets.

13 years agoRename the securepair test to be prefixed with tls
Ryan Dahl [Sat, 11 Dec 2010 02:03:39 +0000 (18:03 -0800)]
Rename the securepair test to be prefixed with tls

13 years agoStart a simple TLS client verification test
Ryan Dahl [Sat, 11 Dec 2010 02:02:51 +0000 (18:02 -0800)]
Start a simple TLS client verification test

13 years agoApply V8 r5951 to fix Mac build
Ryan Dahl [Fri, 10 Dec 2010 19:21:47 +0000 (11:21 -0800)]
Apply V8 r5951 to fix Mac build

From f3973972b727df480697443871d780596aba0201 Mon Sep 17 00:00:00 2001
From: erik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Date: Wed, 8 Dec 2010 16:23:25 +0000
Subject: [PATCH] Speed up quoting of JSON strings by allocating a string that is big enough
 and then trimming it when the length is known.  This way we only have to
 traverse the input once.
 Review URL: http://codereview.chromium.org/5556012