- Nov 04, 2013
-
-
Ben Noordhuis authored
|i| and |j| arent't used when building without crypto support. Hat tip to Brian White. Rename |l| to |k| while we're here because it's quite hard to discern from |i| or |j| with some fonts.
-
- Oct 30, 2013
-
-
Erik Dubbelboer authored
Switch test fixtures to 1024 bit keys.
-
- Nov 02, 2013
-
-
Trevor Norris authored
-
- Nov 01, 2013
-
-
Ben Noordhuis authored
Test both "Content-Length: xxx" and "Transfer-Encoding: chunked" responses in the http/simple benchmark.
-
Trevor Norris authored
Documentation has been added on how to use the AsyncListener API.
-
Jacob Groundwater authored
-
Trevor Norris authored
The domain module has been switched over to use the domain module API as much as currently possible. There are still some hooks in the EventEmitter, but hopefully we can remove those in the future.
-
Trevor Norris authored
-
Trevor Norris authored
pbkdf2_req has been renamed to PBKDF2Request and converted to a class. It now uses AsyncWrap::MakeCallback. Also includes, using env()->ondone_string() instead of "ondone" and using malloc instead of new char[].
-
Trevor Norris authored
Since RandomBytesRequest makes a call to MakeCallback, needed it to be a class so AsyncWrap could handle any async listeners. Also added a simple test for an issue had during implementation where the memory was being released and returned.
-
Trevor Norris authored
Now it's possible to add/remove an async listener to an individual handle created by UDP, TCP, Pipe or Timer.
-
Trevor Norris authored
Making WeakObject inherit from AsyncWrap allows us to peak into almost all the MakeCallback calls in Node internals.
-
Trevor Norris authored
AsyncListener is a JS API that works in tandem with the AsyncWrap class to allow the user to be alerted to key events in the life cycle of an asynchronous event. The AsyncWrap class has its own MakeCallback implementation that core will be migrated to use, and uses state sharing techniques to allow quicker communication between JS and C++ whether the async event callbacks need to be called.
-
Fedor Indutny authored
-
- Oct 30, 2013
-
-
Ben Noordhuis authored
Profiling suggested that on Linux sometimes over 10% of CPU time was being spent inside the systemtap probe entry points in the binding layer, even when the process was not actively being traced with the `stap` tool. That's why this commit makes it possible to use the *_ENABLED() macros and bail out early when we're not being traced, reducing the overhead of unused probes to (almost) zero. Said macros were already being generated by `dtrace -h` but were not usable because they rely on external definitions. To remedy that, we now generate the accompanying object files with `dtrace -G`. This commit includes a change to libuv that has been landed upstream in commit joyent/libuv@3c172ea.
-
- Oct 31, 2013
-
-
Fedor Indutny authored
-
Fedor Indutny authored
When `tls.connect()` is called with `socket` option, it should try to reuse hostname previously passed to `net.connect()` and only after that fall back to `'localhost'`. fix #6409
-
Nick Simmons authored
Currently fs.watch does not have an option to specify if a directory should be recursively watched for events across all subdirectories. Several file watcher APIs support this. FSEvents on OS X > 10.5 is one example. libuv has added support for FSEvents, but fs.watch had no way to specify that a recursive watch was required. fs.watch now has an additional boolean option 'recursive'. When set to true, and when supported, fs.watch will return notifications for the entire directory tree hierarchy rooted at the specified path.
-
- Oct 30, 2013
-
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
* uv: Upgrade to v0.11.14 * v8: upgrade 3.21.18.3 * assert: indicate if exception message is generated (Glen Mailer) * buffer: add buf.toArrayBuffer() API (Trevor Norris) * cluster: fix premature 'disconnect' event (Ben Noordhuis) * crypto: add SPKAC support (Jason Gerfen) * debugger: count space for line numbers correctly (Alex Kocharin) * debugger: make busy loops SIGUSR1-interruptible (Ben Noordhuis) * debugger: repeat last command (Alex Kocharin) * debugger: show current line, fix for #6150 (Alex Kocharin) * dgram: send() can accept strings (Trevor Norris) * dns: rename domain to hostname (Ben Noordhuis) * dns: set hostname property on error object (Ben Noordhuis) * dtrace, mdb_v8: support more string, frame types (Dave Pacheco) * http: add statusMessage (Patrik Stutz) * http: expose supported methods (Ben Noordhuis) * http: provide backpressure for pipeline flood (isaacs) * process: Add exitCode property (isaacs) * tls: socket.renegotiate(options, callback) (Fedor Indutny) * util: format as Error if instanceof Error (Rod Vagg)
-
Timothy J Fontaine authored
-
Timothy J Fontaine authored
-
Trevor Norris authored
Going back to the original names of Wrap/Unwrap now that most all the class members that duplicate the name and functionality have been removed.
-
Trevor Norris authored
Instead use the template functions in util.h.
-
Trevor Norris authored
Switch out to use UnwrapObject from util.h.
-
Trevor Norris authored
Remove the NODE_{WRAP,UNWRAP} macros and instead use template functions. -
Trevor Norris authored
There was no need to share state between C++ and JS for these two values. So they have been moved to their respective locations. This will help performance only a tiny bit, but it does help code complexity much more.
-
Scott Blomquist authored
-
Scott Blomquist authored
We need to keep ObjectWrap around for module authors (we think), but v8 3.21 broke node_object_wrap.h with respect to MSVC. Coincidentally, we no longer use ObjectWrap at all in core, and native modules might as well use their own entirely internal implementation if they need it.
-
Scott Blomquist authored
Turns out that we don't use node_object_wrap.h any more in core, and, with v8 3.21, it's breaking our Windows build. Removing refs to it everywhere (and adding node.h in one case where it was the only way node.h was being included), we have restored the Windows build.
-
- Oct 29, 2013
-
-
Thom Seddon authored
Previous behaviour was to drop to an openssl prompt ("Enter PEM pass phrase:") when supplying a private key with a passphrase. This change adds a fourth, optional, paramter that will be used as the passphrase. To include this parameter in a backwards compatible way it was necessary to expose the previously undocumented (and unexposed) feature of being able to explitly setting the output encoding. -
Trevor Norris authored
Strings passed to Socket#send() will be passed to Buffer and parsed as UTF8.
-
isaacs authored
-
isaacs authored
-
- Oct 28, 2013
-
-
isaacs authored
This addresses a current shortcoming of the V8 SetNamedPropertyHandler function. It does not provide a way to intercept Object.defineProperty(..) calls. As a result, these properties are not copied onto the contextified sandbox when a new global property is added via either a function declaration or a Object.defineProperty(global, ...) call. Note that any function declarations or Object.defineProperty() globals that are created asynchronously (in a setTimeout, callback, etc.) will happen AFTER the call to copy properties, and thus not be caught. The way to properly fix this is to add some sort of a Object::SetNamedDefinePropertyHandler() function that takes a callback, which receives the property name and property descriptor as arguments. Luckily, such situations are rare, and asynchronously-added globals weren't supported by Node's VM module until 0.12 anyway. But, this should be fixed properly in V8, and this copy function should be removed once there is a better way. Fix #6416
-
Ben Noordhuis authored
The list of supported HTTP methods is available in JS land now so there is no longer any need to pass a stringified version of the method to the parser callback, it can look up the method name for itself. Saves a call to v8::Eternal::Get() in the common case and a costly v8::String::NewFromOneByte() in the uncommon case.
-
Ben Noordhuis authored
Expose the list of supported HTTP methods as a property on the 'http' module object. Fixes #6422.
-
Phillip Alexander authored
-
- Oct 27, 2013
-
-
Ryan Graham authored
Expands on when to use module.exports vs. exports. This is a recurring question on mailing list and continues to confuse new devs.
-