Ryan Dahl [Tue, 28 Jun 2011 11:56:02 +0000 (13:56 +0200)]
Fix test-tcp-wrap-listen
Henry Rawas [Fri, 24 Jun 2011 19:32:09 +0000 (12:32 -0700)]
Fix test-net-pingpong.js on windows
Ryan Dahl [Wed, 22 Jun 2011 12:06:26 +0000 (14:06 +0200)]
koichik [Tue, 21 Jun 2011 14:53:02 +0000 (23:53 +0900)]
Fix mismatch createConnection and Socket.connect
net.createConnection() is wrapper for net.Socket.connect(),
but There is mismatch between them.
net.createConnection(port, [host])
net.Socket.connect(port, [host], [callback])
Fixes #1208.
Ben Noordhuis [Sat, 25 Jun 2011 13:30:17 +0000 (15:30 +0200)]
Test case for issue #1218: uncatchable exception on TLS connection error.
Ben Noordhuis [Wed, 22 Jun 2011 22:29:03 +0000 (00:29 +0200)]
Prevent "undefined symbol: ev_rt_now" link errors in third-party modules.
Fixes #1181.
Ryan Dahl [Mon, 20 Jun 2011 13:51:03 +0000 (15:51 +0200)]
net_uv: child process use net_legacy; recognize NODE_USE_UV=1 env var
Ryan Dahl [Mon, 20 Jun 2011 12:48:00 +0000 (14:48 +0200)]
net_uv: Don't add listenerCallback when null
Ben Noordhuis [Fri, 17 Jun 2011 20:40:29 +0000 (22:40 +0200)]
Fixes #1197. Fix failing os.getNetworkInterfaces() test in test-os.js
Sam Shull [Sun, 19 Jun 2011 06:06:33 +0000 (02:06 -0400)]
Fixes #1204. Add missing headers files to include
This commit fixes install of required dependencies for native
extensions.
Ryan Dahl [Fri, 17 Jun 2011 17:52:31 +0000 (19:52 +0200)]
Upgrade libuv.
Also remove c-ares since it's included in libuv now.
libuv version
b7b7df090ca285e53eb51bf518c4e5064876596
Ryan Dahl [Fri, 17 Jun 2011 16:09:15 +0000 (18:09 +0200)]
net_uv: Export Socket and Stream
Ryan Dahl [Fri, 17 Jun 2011 15:10:12 +0000 (17:10 +0200)]
net_uv: Implement end(), destroySoon()
Ryan Dahl [Fri, 17 Jun 2011 12:27:02 +0000 (14:27 +0200)]
net_uv: shim up more methods
Ryan Dahl [Fri, 17 Jun 2011 12:01:27 +0000 (14:01 +0200)]
Revert "Add --cov code coverage option"
This can be done in user space. EG https://github.com/cloudkick/whiskey
This reverts commit
da9b3340ebb7501ebb8a2896d2c259ffabdab340.
This reverts commit
b4ff36a41b242c0b379d3c27fb30818de54fe2d4.
Conflicts:
src/node.cc
Ryan Dahl [Fri, 17 Jun 2011 11:51:40 +0000 (13:51 +0200)]
Add --use-uv command-line flag to use libuv backend
Ryan Dahl [Fri, 17 Jun 2011 11:36:16 +0000 (13:36 +0200)]
Support eof in net_uv
Ryan Dahl [Thu, 16 Jun 2011 19:11:05 +0000 (21:11 +0200)]
Initial pass at new net.js for libuv
Ryan Dahl [Thu, 16 Jun 2011 14:08:17 +0000 (16:08 +0200)]
tcp_wrap: implement shutdown
Ryan Dahl [Thu, 16 Jun 2011 14:00:29 +0000 (16:00 +0200)]
tcp_wrap: Don't return req object on error.
Ryan Dahl [Thu, 16 Jun 2011 13:49:44 +0000 (15:49 +0200)]
tcp_wrap: add writeQueueSize
Ryan Dahl [Thu, 16 Jun 2011 13:33:47 +0000 (15:33 +0200)]
tcp_wrap: implement socket.connect()
Ryan Dahl [Thu, 16 Jun 2011 13:12:57 +0000 (15:12 +0200)]
tcp_wrap: onread oncomplete parameter massage
Ryan Dahl [Thu, 16 Jun 2011 11:16:54 +0000 (13:16 +0200)]
tcp_wrap: implement write
Ryan Dahl [Wed, 15 Jun 2011 12:43:37 +0000 (14:43 +0200)]
Merge branch 'v0.4'
Conflicts:
doc/api/modules.markdown
test/simple/test-crypto.js
Ryan Dahl [Tue, 14 Jun 2011 16:02:58 +0000 (18:02 +0200)]
tcp_wrap: Initial wrap of uv_read_start
Ryan Dahl [Tue, 14 Jun 2011 11:18:32 +0000 (13:18 +0200)]
Remove confusing comment in node_buffer.h
Ryan Dahl [Tue, 14 Jun 2011 11:02:15 +0000 (13:02 +0200)]
libuv wraps: Dispose of JS object on close()
Mark Cavage [Thu, 9 Jun 2011 01:20:17 +0000 (18:20 -0700)]
Support for signature verification with RSA/DSA public keys
Fixes #1166.
Ryan Dahl [Tue, 14 Jun 2011 10:46:10 +0000 (12:46 +0200)]
tcp_wrap: Remove listener deck
isaacs [Sun, 12 Jun 2011 17:36:05 +0000 (10:36 -0700)]
AMD compatibility for node, with docs and tests
Closes #1173
Closes #1170
Trevor Burnham [Sun, 1 May 2011 18:03:08 +0000 (14:03 -0400)]
Documenting `require.main`, fixing #997
Bert Belder [Sun, 12 Jun 2011 18:53:04 +0000 (20:53 +0200)]
Compensate for uv_async_init api change
Ryan Dahl [Sat, 11 Jun 2011 06:51:48 +0000 (08:51 +0200)]
Massage util.inherits for perf increase
Ryan Dahl [Fri, 10 Jun 2011 16:25:06 +0000 (18:25 +0200)]
Bind uv_listen()
Ryan Dahl [Thu, 9 Jun 2011 13:31:51 +0000 (15:31 +0200)]
Initial binding to uv_tcp_t
Ryan Dahl [Thu, 9 Jun 2011 13:14:58 +0000 (15:14 +0200)]
Upgrade libuv
Bert Belder [Wed, 8 Jun 2011 01:46:29 +0000 (03:46 +0200)]
Avoid tick spinner spinning forever
Bert Belder [Wed, 8 Jun 2011 02:41:28 +0000 (04:41 +0200)]
Build on windows again
Bert Belder [Wed, 8 Jun 2011 02:01:07 +0000 (04:01 +0200)]
Get rid of node_idle_watcher
Bert Belder [Wed, 8 Jun 2011 02:36:31 +0000 (04:36 +0200)]
Get rid of the old timer binding
Bert Belder [Wed, 8 Jun 2011 02:35:50 +0000 (04:35 +0200)]
Use timer_wrap instead of the old timer binding
Bert Belder [Wed, 8 Jun 2011 01:57:15 +0000 (03:57 +0200)]
Compatibility issue and warning in x-forwarded-for dtrace probe
Ryan Dahl [Tue, 7 Jun 2011 16:37:27 +0000 (18:37 +0200)]
isaacs [Sat, 4 Jun 2011 17:41:41 +0000 (10:41 -0700)]
typo
isaacs [Sat, 4 Jun 2011 17:38:49 +0000 (10:38 -0700)]
Avoid instanceof for native object types
For classes defined in the module, this is fine. For 'Error'
it's probably not very hazardous. However, testing 'Object'
and 'String' is much more reliable using typeof, to work with
the repl and NODE_MODULE_CONTEXT modes.
Dave Pacheco [Sat, 4 Jun 2011 14:04:38 +0000 (16:04 +0200)]
DTrace probes: support X-Forwarded-For
INTRO-385
Ryan Dahl [Fri, 3 Jun 2011 14:37:56 +0000 (16:37 +0200)]
Merge branch 'v0.4'
Siddharth Mahendraker [Thu, 2 Jun 2011 20:08:18 +0000 (23:08 +0300)]
debugger: don't allow users to input non-valid commands
Fixes #1144.
Ryan Dahl [Fri, 3 Jun 2011 12:38:55 +0000 (14:38 +0200)]
Disabling SSL compression is dependent on OpenSSL version 0.9.8
Fixes #1087.
Ryan Dahl [Fri, 3 Jun 2011 12:12:14 +0000 (14:12 +0200)]
Ryan Dahl [Fri, 3 Jun 2011 11:19:06 +0000 (13:19 +0200)]
Doc improvements
Fixes #1147.
Fixes #1139.
Fixes #1126.
Thanks ctide, kext, disfated.
Jérémy Lal [Fri, 3 Jun 2011 06:35:11 +0000 (08:35 +0200)]
Option to disable SSL v2
Fixes #880
Ryan Dahl [Fri, 3 Jun 2011 06:14:35 +0000 (08:14 +0200)]
document require.cache
Fuji, Goro [Sat, 28 May 2011 17:04:36 +0000 (02:04 +0900)]
`node -e ''` should mean eval(''), not invoke REPL
Fixes #1116
Ryan Dahl [Sat, 28 May 2011 20:44:03 +0000 (13:44 -0700)]
Move MakeCallback and SetErrno to node.cc
Ryan Dahl [Sat, 28 May 2011 20:21:03 +0000 (13:21 -0700)]
TimerWrap: mimic libev ref count semantics
Ryan Petrello [Fri, 20 May 2011 04:50:35 +0000 (00:50 -0400)]
Close #562 Close #1078 Parse file:// urls properly
The file:// protocol *always* has a hostname; it's frequently
abbreviated as an empty string, which represents 'localhost'
implicitly.
According to RFC 1738 (http://tools.ietf.org/html/rfc1738):
A file URL takes the form:
file://<host>/<path>
where <host> is the fully qualified domain name of the system on
which the <path> is accessible...
As a special case, <host> can be the string "localhost" or the empty
string; this is interpreted as 'the machine from which the URL is
being interpreted'.
Ryan Dahl [Wed, 25 May 2011 17:16:36 +0000 (10:16 -0700)]
Implement new wrap for uv timer
Ben Noordhuis [Mon, 23 May 2011 11:10:00 +0000 (13:10 +0200)]
Fix resource leaks in node_crypto.cc
Fixes #1097.
Brian White [Wed, 25 May 2011 04:26:57 +0000 (21:26 -0700)]
Crypto documentation fixes
Fixes #1104.
Ryan Dahl [Tue, 24 May 2011 20:43:03 +0000 (13:43 -0700)]
Fixes #1102. Install ev.h into $PREFIX/include/node/ev/ev.h
Felix Geisendörfer [Sat, 14 May 2011 10:24:48 +0000 (12:24 +0200)]
Remove 'connect' event from server side sockets
Sockets emitted by the 'connection' event are always connected, having
them emit the 'connect' event makes no sense. It only confused people,
as it's not clear if you have to listen to 'connect' or not.
That try..catch block was also very scary. It would silently swallow
exceptions in 'connect' listeners and destroy the socket. Makes no
sense.
Fixes #1047.
Felix Geisendörfer [Mon, 23 May 2011 09:02:53 +0000 (11:02 +0200)]
Fix error handling bug in stream.pipe()
Problem: Since stream.pipe() is registering it's own error handlers on
the source and destination stream, it needs to replicate the
EventEmitter 'error' emitting semantics of throwing an error if there
are no other listeners. However, there was a off-by-one error because
the check for remaining listeners was done after cleanup() which means
the pipe's own listener was no longer included.
This would cause 'error' events on either the dest or the source to
throw if there was one other error listener, and while swallowing
the 'error' event if there was no other listener.
Solution: I added a test demonstrating the two issues and fixed the
problem by correcting the off-by-one error.
Fixes #1095.
Brian White [Tue, 24 May 2011 05:40:09 +0000 (22:40 -0700)]
Fix incorrect documentation for assert.fail()
Fixes #1100.
Ryan Dahl [Tue, 24 May 2011 00:38:55 +0000 (17:38 -0700)]
Fix windows EOL chars
Bert Belder [Mon, 23 May 2011 23:42:22 +0000 (01:42 +0200)]
Batch of ev -> uv changes
Ryan Dahl [Mon, 23 May 2011 22:38:54 +0000 (15:38 -0700)]
Guard tick_spinner start/stop
All tests passing on OSX. Thanks to Bert for debugging this.
Ryan Dahl [Mon, 23 May 2011 22:25:21 +0000 (15:25 -0700)]
Ryan Dahl [Sun, 22 May 2011 20:05:48 +0000 (13:05 -0700)]
Ryan Dahl [Sun, 22 May 2011 20:02:06 +0000 (13:02 -0700)]
Merge branch 'v0.4'
Conflicts:
src/node_version.h
Ryan Dahl [Sat, 21 May 2011 07:10:23 +0000 (00:10 -0700)]
Now working on v0.4.9
Ryan Dahl [Sat, 21 May 2011 02:40:06 +0000 (19:40 -0700)]
Bump to v0.4.8
Ryan Dahl [Sat, 21 May 2011 02:25:30 +0000 (19:25 -0700)]
Merge branch 'v8-3.1' into v0.4
Ryan Dahl [Sat, 21 May 2011 02:24:37 +0000 (19:24 -0700)]
Upgrade V8 to 3.1.8.16
Ryan Dahl [Fri, 20 May 2011 22:39:48 +0000 (15:39 -0700)]
Fix TJ's assert error
Unable to reproduce but connect's "make test TESTS=test/static.test.js" does
it occasionally.
Mark Cavage [Fri, 20 May 2011 21:38:49 +0000 (14:38 -0700)]
Additional docs for net.listenFD()
Fixes #1080.
Ryan Dahl [Fri, 20 May 2011 17:27:39 +0000 (10:27 -0700)]
Merge branch 'v0.4'
Conflicts:
lib/crypto.js
lib/tls.js
Ryan Dahl [Fri, 20 May 2011 17:08:08 +0000 (10:08 -0700)]
CryptoStream.prototype.readyState shoudn't reference fd
Fixes #1069
Brian White [Thu, 19 May 2011 22:09:10 +0000 (15:09 -0700)]
Remove unused variable
Fixes #1077
Robert Mustacchi [Fri, 20 May 2011 02:51:30 +0000 (19:51 -0700)]
Use same make as when originally invoked
Robert Mustacchi [Fri, 20 May 2011 01:32:05 +0000 (18:32 -0700)]
Rework getNetworkInterfaces() for Linux, SunOS, Mac OS X
David Trejo [Thu, 19 May 2011 23:50:12 +0000 (16:50 -0700)]
Add test for agent upgrade and example in docs
Ryan Dahl [Fri, 20 May 2011 00:50:13 +0000 (17:50 -0700)]
Alexandre Marangone [Thu, 19 May 2011 19:20:08 +0000 (21:20 +0200)]
(char *) casting for all strings args to kstat function to avoid warnings
Fixes #1071.
Alexandre Marangone [Thu, 19 May 2011 19:15:12 +0000 (21:15 +0200)]
Adding os.totalmem() and os.freemem() for SunOS
Fedor Indutny [Thu, 19 May 2011 19:42:13 +0000 (02:42 +0700)]
Share SSL context between server connections
Fixes #1073.
Ryan Dahl [Thu, 19 May 2011 19:41:17 +0000 (12:41 -0700)]
Fix buffer test
Ryan Dahl [Thu, 19 May 2011 19:13:48 +0000 (12:13 -0700)]
makeFastBuffer should not segfault but rather throw on non-buffer
Ryan Dahl [Thu, 19 May 2011 17:37:51 +0000 (10:37 -0700)]
Ryan Dahl [Thu, 19 May 2011 17:34:42 +0000 (10:34 -0700)]
Merge branch 'v0.4'
David Trejo [Thu, 19 May 2011 01:39:06 +0000 (18:39 -0700)]
readline docs
David Trejo [Thu, 19 May 2011 01:39:06 +0000 (18:39 -0700)]
readline docs
Ryan Dahl [Tue, 17 May 2011 21:55:26 +0000 (14:55 -0700)]
Remove libev/macos kqueue override - goes in libuv
Ryan Dahl [Tue, 17 May 2011 20:22:34 +0000 (13:22 -0700)]
Changes for job bullets
Ryan Dahl [Tue, 17 May 2011 17:51:30 +0000 (10:51 -0700)]
fork: Use utf8 for channel encoding
Ryan Dahl [Tue, 17 May 2011 02:29:02 +0000 (19:29 -0700)]
Merge branch 'v0.4'
Conflicts:
src/node_crypto.cc
Ryan Dahl [Mon, 16 May 2011 22:00:33 +0000 (15:00 -0700)]
Remove 'binary' encoding assert - add tests
Don't write large characters to buffers with binary encoding. You will be
silently injured.
isaacs [Mon, 16 May 2011 11:56:40 +0000 (04:56 -0700)]
Close #1054 More clear documentation for module system
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.